SimilarityResult
Defined in the embedding module.Rust AI Agent SDK Similarity search result.
Fields
| Name | Type | Description |
|---|---|---|
text | String | The text that was compared |
score | f32 | Similarity score (0.0 to 1.0) |
index | usize | Index in the original list |
Source
View on GitHub
praisonai/src/embedding/mod.rs at line 133
