indexers.dataclasses.VectorStoreReverseSearchOutput

indexers.dataclasses.VectorStoreReverseSearchOutput(data)

DataFrame-like object for storing reverse search results.

This class represents the output of vector store reverse search operations, containing knowledgebase examples with the same label as in the query.

Attributes

Name Type Description
query_id pd.Series Identifier for the input label for lookup in the knowledgebase.
doc_id pd.Series Identifier for the knowledgebase example retrieved.
doc_text pd.Series The text content of the retrieved example.

Methods

Name Description
from_data Create a validated VectorStoreReverseSearchOutput from a dictionary or DataFrame.
validate Validate an existing instance against the schema and return a VectorStoreReverseSearchOutputs.

from_data

indexers.dataclasses.VectorStoreReverseSearchOutput.from_data(data)

Create a validated VectorStoreReverseSearchOutput from a dictionary or DataFrame.

validate

indexers.dataclasses.VectorStoreReverseSearchOutput.validate(df)

Validate an existing instance against the schema and return a VectorStoreReverseSearchOutputs.