Glossary · Retrieval & memory
Top-k retrieval
Top-k retrieval is returning the k highest-scoring results for a query, where k is a chosen number that trades off between including enough relevant context and adding noise.
Top-k retrieval sits in the Retrieval & memory part of the Agentik {OS} glossary, which defines the words used to build and run AI agent systems.
Also called top-k.