← RAG & Grounded Generation
Sentence-Window Retrieval
Sentence-window retrieval indexes documents at the individual sentence level for highly precise matching but returns a window of surrounding sentences to the generator rather than the matched sentence alone. The narrow indexing unit lets the retriever pinpoint a specific claim, while the wider returned window gives the language model enough adjacent context to reason accurately. This two-granularity approach balances retrieval sharpness with generational coherence and often outperforms fixed-size chunking strategies on dense, information-rich documents.