Token Efficiency Encyclopedia

Selective Context Inclusion

Send only the files, sections, or conversation turns relevant to the current query. Requires a retrieval or routing step to decide what to keep.

How It Works

Before constructing the prompt, a retrieval system ranks available content by relevance to the current task. Only the top-ranked items are included. Relevance can be determined by embedding similarity, keyword matching, or a learned ranker.

What to Select

Trade-offs

See Also

Tools