SearchResult represents a single result from an embedding similarity search. Contains the similarity score, matched text, and associated metadata.
Object
getMetadata()
Returns the metadata associated with this result as a JS Object.
Number
getScore()
Returns the similarity score for this result.
String
getText()
Returns the matched text for this result.
Returns: Object The metadata object.
Returns: Number The similarity score.
Returns: String The matched text.
Last updated 1 month ago
Was this helpful?