chapter seven
7 Retriever: Returning more relevant results
This chapter covers
- How the “scaling wall of context” and computational costs limit an agent's ability to process vast amounts of data
- Using the Retriever pattern to enable selective attention, bridging the gap between external data and focused, actionable context
- The structure and operation of Retriever instances, consisting of query processing, search execution, and result post-processing
- How Retriever impacts agent design, including improved grounding, reduced hallucinations, and material cost savings
- Common Retriever variants for balancing semantic and keyword search, and for active query refinement.
- Retriever in action in automated insurance adjudication, technical support routing, and dynamic few-shot exemplar selection