> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Context Pack • Rust AI Agent SDK

> ContextPack: A pack of context chunks for RAG.

# ContextPack

> Defined in the [**RAG**](../modules/rag) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

A pack of context chunks for RAG.

## Fields

| Name           | Type                      | Description              |
| -------------- | ------------------------- | ------------------------ |
| `chunks`       | `Vec&lt;ContextChunk&gt;` | Retrieved chunks         |
| `total_tokens` | `usize`                   | Total token count        |
| `query`        | `String`                  | Query used for retrieval |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/rag/mod.rs#L87">
  `praisonai/src/rag/mod.rs` at line 87
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Context Management" icon="layer-group" href="/docs/rust/context-management" />

  <Card title="Rust Token Management" icon="coins" href="/docs/rust/token-management" />
</CardGroup>
