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

Returns the metadata associated with this result as a JS Object.

Returns the similarity score for this result.

Returns the matched text for this result.

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?