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