✳flâneur — a map of the web's best reading
LangChain ParentDocumentRetriever: Strike a Balance between large vs small chunks | ClusteredBytes
clusteredbytes.pages.dev · 891 words · saved by 1 readers
Looking at LangChain ParentDocumentRetriever to strike a balance between large vs small document chunks while retrieving related documents.
Table of Contents Small vs Large Document chunks ParentDocumentRetriever Two splitters instead of one Storing both larger and smaller chunks Create the ParentDocumentRetriever Adding the documents Retrieving relevant documents Small vs Large Document chunks # For Retrieval Augmented Generation (RAG), we split the raw text into multiple chunks and embed them using an embedding model (e.g. OpenAI Embeddings). Then we use a retriever to retrieve the most relevant chunks to user's query and feed them chunks to the LLM alongside the input. But what should be the ideal length of each chunk? What's t
Explore this link on the map →saved by
related reading
- LongLLMLingua Prompt Compression Guide | LlamaIndexblog.llamaindex.ai
- Advanced Retriever Techniques to Improve Your RAGs | Towards Data Sciencetowardsdatascience.com
- Vinija's Notes • NLP • Retrieval Augmented Generationvinija.ai
- Patterns for Building LLM-based Systems & Productseugeneyan.com
- Retrieval-Augmented Generation for Large Language Models: A Surveyarxiv.org
- Building Performant RAG Applications for Production | Developer Documentationdocs.llamaindex.ai
- RAG Chunk Size Guide: Find The Best Setting | LlamaIndexblog.llamaindex.ai
- Using Document Layout Structure for Efficient RAGambikasukla.substack.com
- Aman's AI Journal • Primers • Retrieval Augmented Generationaman.ai
- Building A RAG Pipeline for Semi-structured Data with Langchain - Analytics Vidhyaanalyticsvidhya.com
- Rerankers and Two-Stage Retrieval | Pineconepinecone.io
- RAG with Deep Agents - Docs by LangChainpython.langchain.com