VITAL-RAG tackles wasted space in the code retrieved for an AI Agent modeA mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.Full definition →. Several fragments can describe the same underlying code object, occupying the model's limited input budget with overlapping information. Simply discarding every extra fragment can also remove details needed for the task.
The method groups evidence by code object and keeps one additional, query-relevant fragment only when it contributes information not already represented. On RepoBench, the authors report Recall@4K rising from 39.59% to 63.67% while evidence tokens fell by 35.63%. The result concerns finding relevant code within the RetrievalSelecting evidence relevant to the current request.Full definition → budget, connecting reduced duplication with better evidence coverage.
Terms in this piece · Glossary
RAG — Retrieval-augmented generation — fetching relevant documents first and pasting them into the model's context so it answers from your data instead of memory.
Agent mode — A mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.
Retrieval — Selecting evidence relevant to the current request.
Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.