Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
KnowledgeBuilder
Defined in the knowledge module.
Rust AI Agent SDK
Builder for Knowledge
Fields
| Name | Type | Description |
|---|
config | KnowledgeConfig | - |
Methods
config
fn config(mut self, config: KnowledgeConfig) -> Self
Set config
Parameters:
| Name | Type |
|---|
config | KnowledgeConfig |
chunking
fn chunking(mut self, config: ChunkingConfig) -> Self
Set chunking config
Parameters:
| Name | Type |
|---|
config | ChunkingConfig |
retrieval_strategy
fn retrieval_strategy(mut self, strategy: RetrievalStrategy) -> Self
Set retrieval strategy
Parameters:
| Name | Type |
|---|
strategy | RetrievalStrategy |
build
fn build(self) -> Result<Knowledge>
Build the Knowledge instance
Source
View on GitHub
praisonai/src/knowledge/mod.rs at line 861