Document
Defined in the knowledge module.Rust AI Agent SDK A document in the knowledge base.
Fields
| Name | Type | Description |
|---|---|---|
id | String | Document ID |
content | String | Document content |
metadata | HashMap<String | Document metadata |
source | Option<String> | Source path or URL |
filename | Option<String> | Filename if from file |
created_at | Option<u64> | Creation timestamp |
updated_at | Option<u64> | Update timestamp |
Methods
new
| Name | Type |
|---|---|
content | impl Into<String> |
metadata
| Name | Type |
|---|---|
key | impl Into<String> |
value | impl Into<String> |
source
| Name | Type |
|---|---|
source | impl Into<String> |
filename
| Name | Type |
|---|---|
filename | impl Into<String> |
Source
View on GitHub
praisonai/src/knowledge/mod.rs at line 36
