pack
Assemble a compact context block from queries by retrieving, reranking, and budgeting top memories for prompt injection.
Instructions
Assemble a compact, prompt-ready context block from one or more queries: retrieves, reranks, and budgets the top memories into injectable text. Read-only. This is the retrieval path for putting memory into an agent's prompt; use search instead when you want individual scored records rather than an assembled block.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Restrict retrieval to memories carrying these tags. | |
| space | No | Restrict retrieval to a single memory space (namespace). | |
| title | No | Heading for the assembled pack. Default "context". | |
| queries | Yes | One or more natural-language queries to retrieve and merge into the pack. Required. | |
| max_chars | No | Character budget for the assembled pack. Default 6000. | |
| min_score | No | Drop memories scoring below this threshold; the pack abstains (returns empty) when nothing clears it. Default 0 (no floor). | |
| max_memories | No | Maximum memories to include in the pack. Default 10. | |
| query_expansion | No | Default false. Deterministically add subqueries before retrieval. | |
| max_thread_seeds | No | Default 3. | |
| thread_expansion | No | Default false. Add same-entity/same-claim neighbors to the rerank pool. | |
| max_query_variants | No | Default engine maximum. | |
| max_thread_neighbors | No | Default 3. |