Skip to main content

Classes

VectorSearchResult

A standardized data structure for a single search result. All provider implementations must return a list of these objects.

Parameters

ParameterTypeDefaultDescription
idUnion[str, int]-The unique identifier for this search result
scorefloat-The similarity score for this search result
payloadOptional[Dict[str, Any]]NoneAdditional payload data associated with this result
vectorOptional[List[float]]NoneThe vector representation of this result
textOptional[str]NoneThe text content of this result
I