Docs
Sign in

Context Pack

Context Pack shows you the bundle of memories and knowledge chunks Cortex would give an AI model to answer a question, trimmed to fit a size limit.

Screenshot to add: Context Pack with the query settings on the left and the packed result on the right.

What it is for

An AI model can only read so much at once. Cortex finds the best-matching memories and knowledge chunks, scores them, and packs as many as fit into a token budget. A token is a small piece of text, roughly a word or part of one. Use this page to preview that bundle and check that it holds the right material.

The Query panel

FieldWhat it doesRange and default
QueryWhat the pack should be about. The placeholder reads "What should this pack be about?"Required
Memory top_kThe most memories to consider0 to 25, default 5
KB top_kThe most knowledge-base chunks to consider0 to 25, default 3
Token budgetThe size limit for the whole pack200 to 16000 in steps of 100, default 4000

Click Build context pack (or press Ctrl+Enter, Cmd+Enter on Mac). While it works the button reads Composing…. It is disabled until you type a query.

The Context pack panel

Before your first run it says No pack built yet. After a run you see:

PartWhat it shows
Token usageTokens used out of the budget, with a meter that turns to a warning above 90 percent. It adds (truncated) when content had to be cut, and may show the counting method used
Synthesized packThe combined text, with an item count. If nothing was packed it says "No items packed for this query."
MemoriesA table of packed memories: a rank such as M1, the Content with a short ID, Score and Tokens. Click a row to open the memory
KB chunksThe same table for knowledge chunks, ranked KB1, KB2 and so on. Rows here do not open a side panel

If there are no knowledge chunks, the empty message explains that the knowledge index returns nothing until knowledge ingestion has run on the corpus.

Once a pack exists, Copy pack as JSON appears at the top of the page. Failures show Build failed with the reason and a retry option.

  1. Open the page

    Go to System, then Intelligence, then Context pack.

  2. Enter a query

    Describe the topic or question the pack is for.

  3. Set the limits

    Adjust the two top_k sliders and the Token budget, or keep the defaults.

  4. Build the pack

    Click Build context pack and review what was included.