SearchResultItem
Defined in the knowledge module.Rust AI Agent SDK A single search result item.
Fields
| Name | Type | Description |
|---|---|---|
id | String | Result ID |
text | String | Result text content |
score | f32 | Relevance score |
metadata | HashMap<String | Metadata (always a HashMap, never None) |
source | Option<String> | Source |
filename | Option<String> | Filename |
created_at | Option<u64> | Creation timestamp |
updated_at | Option<u64> | Update timestamp |
Methods
new
| Name | Type |
|---|---|
id | impl Into<String> |
text | impl Into<String> |
score | f32 |
Source
View on GitHub
praisonai/src/knowledge/mod.rs at line 97
