RAG

Grounding a model in your own data: the pipeline, the failure modes, and the frameworks.

Sign in to track your progress across sections.

17 articles

Chunking strategies that survive production

Listed inChunkingRAGon

Structural, recursive and semantic splitting compared, with the sizes to start from for short lookups and for prose. Chunk size sets a ceiling on what retrieval can return, and several common mistakes lower it further.

Intermediate8 min
#rag
#retrieval
#pipeline

Introducing contextual retrieval

Listed inChunkingRAGon

Prepending model-generated context to each chunk before embedding, and the measured drop in failed retrievals it produced.

External
Anthropic · anthropic.com
#rag
#retrieval

Text splitters

Listed inLangChainRAGon

LangChain's concept doc on the splitter family — what each one optimises for and when to reach for it.

External
LangChain · python.langchain.com
#frameworks
#pipeline

Storing in a Vector DB

Listed inStoring in a Vector DBRAGon

A namespace is a hard partition, not a tag. Changing the embedding model invalidates every vector, so plan the rebuild before you need it.

Intermediate4 min
#rag
#vector-search

RAGFlow

Listed inRAGFlowRAGon

Parse the layout before chunking, because a flat extractor turns a pricing table into numbers with no headers and nothing downstream can repair it.

Intermediate5 min
#rag
#ingestion

Chunking

Listed inChunkingRAGon

Splitting documents so retrieved passages are both findable and self-contained.

Intermediate8 minDraft
#pipeline

LlamaIndex

Listed inLlamaIndexRAGon

Documents and Nodes, and a query stage that separates retrieval, postprocessing and response synthesis. Postprocessing is the step hand-written pipelines usually skip, and it is where reranking and filtering belong.

Intermediate4 min
#rag
#frameworks

RAG Use Cases

Listed inRAG Use CasesRAGon

Four problem shapes retrieval fits and four it does not, why counting questions fail quietly, and how a million-token window moved the threshold.

Beginner7 min
#use-cases

RAG with Dynamic Filters

Listed inRAG with Dynamic FiltersRAGon

A forgotten metadata filter returns everyone's documents; a forgotten namespace returns an error. When the filter is a tenancy boundary, that asymmetry is the whole argument for a partition.

Advanced4 min
#pipeline
#multi-tenancy

Haystack

Listed inHaystackRAGon

Pipeline-oriented framework with strong retrieval components.

Intermediate5 minDraft
#frameworks

LangChain

Listed inLangChainRAGon

The largest orchestration framework, and when its abstractions pay for themselves.

Intermediate7 minDraft
#frameworks

What is RAG?

Listed inWhat is RAG?RAGon

Retrieval-augmented generation: fetch relevant context, then answer from it.

Beginner7 minDraft
#concepts

Generation

Listed inGenerationRAGon

Composing retrieved context into a prompt that forces grounded answers.

Intermediate7 minDraft
#pipeline