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
id pd.Series Identifier for the input label for lookup in the knowledgebase.
searched_doc_label pd.Series Identifier for the knowledgebase label being looked up.
doc_label pd.Series Identifier for the retrieved document with the same label.
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.