KnowledgeConfig
Defined in the knowledge module.Rust AI Agent SDK Knowledge configuration.
Fields
| Name | Type | Description |
|---|---|---|
chunking | ChunkingConfig | Chunking configuration |
retrieval_strategy | RetrievalStrategy | Retrieval strategy |
default_limit | usize | Default search limit |
enable_reranking | bool | Enable reranking |
user_id | Option<String> | User ID for scoping |
agent_id | Option<String> | Agent ID for scoping |
Methods
new
chunking
| Name | Type |
|---|---|
config | ChunkingConfig |
retrieval_strategy
| Name | Type |
|---|---|
strategy | RetrievalStrategy |
default_limit
| Name | Type |
|---|---|
limit | usize |
enable_reranking
| Name | Type |
|---|---|
enable | bool |
user_id
| Name | Type |
|---|---|
id | impl Into<String> |
agent_id
| Name | Type |
|---|---|
id | impl Into<String> |
Source
View on GitHub
praisonai/src/knowledge/mod.rs at line 633
