Vector Record • Rust AI Agent SDK
VectorRecord: A vector record in the store.
VectorRecord
Defined in the knowledge module.
Rust AI Agent SDK
A vector record in the store.
Fields
| Name | Type | Description |
|---|---|---|
id | String | Record ID |
text | String | Text content |
embedding | Vec<f32> | Embedding vector |
metadata | HashMap<String | Metadata |
Methods
new
fn new(id: impl Into<String>, text: impl Into<String>, embedding: Vec<f32>) -> SelfCreate a new vector record
Parameters:
| Name | Type |
|---|---|
id | impl Into<String> |
text | impl Into<String> |
embedding | Vec<f32> |
Source
View on GitHubpraisonai/src/knowledge/mod.rs at line 240