Skip to main content

SimilarityResult

Defined in the embedding module.
Rust AI Agent SDK Similarity search result.

Fields

NameTypeDescription
textStringThe text that was compared
scoref32Similarity score (0.0 to 1.0)
indexusizeIndex in the original list

Source

View on GitHub

praisonai/src/embedding/mod.rs at line 133