🥳 This week, we published a demo on combining @LangChainAI and #Weaviate
📚 https://t.co/sWAGGbvUIN
📹 Or watch @ecardenas300's demo: https://t.co/GVRcPhwyQU

🧵 Check out the 4 CombineDocument techniques implemented in #LangChain that solve the limited input token lengths👇

@LangChainAI @ecardenas300 🧸 Stuffing is the simplest method
🗃️ All relevant documents from the database are stuffed into the prompt
@LangChainAI @ecardenas300 📑 Map Reduce applies an initial prompt to each chunk of data, and it passed through the LLM to generate multiple responses
✨ Another prompt is created to combine all of the initial outputs into one
@LangChainAI @ecardenas300 💬 Refine asks the language model to summarize the documents one by one
🧠 It then uses its local memory with the summaries generated so far to influence the next output
🔄 This is repeated until all documents have been processed
@LangChainAI @ecardenas300 📈 Map-Rerank runs an initial prompt that asks the model to give a relevance score for each document
💯 The language model then assigns a score based on the certainty of the answer and ranks them
💬 The top two documents are stuffed into the model to generate a single response

More from All

You May Also Like

IMPORTANCE, ADVANTAGES AND CHARACTERISTICS OF BHAGWAT PURAN

It was Ved Vyas who edited the eighteen thousand shlokas of Bhagwat. This book destroys all your sins. It has twelve parts which are like kalpvraksh.

In the first skandh, the importance of Vedvyas


and characters of Pandavas are described by the dialogues between Suutji and Shaunakji. Then there is the story of Parikshit.
Next there is a Brahm Narad dialogue describing the avtaar of Bhagwan. Then the characteristics of Puraan are mentioned.

It also discusses the evolution of universe.(
https://t.co/2aK1AZSC79 )

Next is the portrayal of Vidur and his dialogue with Maitreyji. Then there is a mention of Creation of universe by Brahma and the preachings of Sankhya by Kapil Muni.


In the next section we find the portrayal of Sati, Dhruv, Pruthu, and the story of ancient King, Bahirshi.
In the next section we find the character of King Priyavrat and his sons, different types of loks in this universe, and description of Narak. ( https://t.co/gmDTkLktKS )


In the sixth part we find the portrayal of Ajaamil ( https://t.co/LdVSSNspa2 ), Daksh and the birth of Marudgans( https://t.co/tecNidVckj )

In the seventh section we find the story of Prahlad and the description of Varnashram dharma. This section is based on karma vaasna.