Retriever Protocol • Rust AI Agent SDK
RetrieverProtocol: Protocol for retriever implementations.
RetrieverProtocol
Defined in the knowledge module.
Rust AI Agent SDK
Protocol for retriever implementations.
Methods
retrieve
async fn retrieve(&self, query: &str, limit: usize) -> Result<RetrievalResult>Retrieve relevant documents
Parameters:
| Name | Type |
|---|---|
query | &str |
limit | usize |
strategy
fn strategy(&self) -> RetrievalStrategyGet retrieval strategy
Source
View on GitHubpraisonai/src/knowledge/mod.rs at line 0