> ## 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.

# Knowledge Preset • Rust AI Agent SDK

> KnowledgePreset: Knowledge preset configuration

# KnowledgePreset

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

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

Knowledge preset configuration

## Fields

| Name                | Type     | Description       |
| ------------------- | -------- | ----------------- |
| `embedder`          | `String` | Embedder model    |
| `chunking_strategy` | `String` | Chunking strategy |
| `chunk_size`        | `usize`  | Chunk size        |
| `chunk_overlap`     | `usize`  | Chunk overlap     |
| `retrieval_k`       | `usize`  | Retrieval k       |
| `rerank`            | `bool`   | Enable reranking  |

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Knowledge" icon="book" href="/docs/rust/knowledge" />

  <Card title="Rust Documents" icon="file-lines" href="/docs/rust/documents" />

  <Card title="Rust RAG" icon="magnifying-glass" href="/docs/rust/rag" />
</CardGroup>
