services/context_builder library
Context assembly for LLM prompts.
ContextBuilder takes search results and assembles them into an optimized context string within a token budget.
Classes
- AssembledContext
- Assembled context ready for LLM consumption.
- ContextBuilder
- Builds optimized context for LLM prompts.
Enums
- ContextStrategy
- Strategy for selecting and ordering chunks.