indexers.dataclasses.VectorStoreReverseSearchInput

indexers.dataclasses.VectorStoreReverseSearchInput(data)

DataFrame-like object for forming and validating reverse search query input data.

This class validates and represents input for reverse searches, which find similar documents to a given document in the vector store.

Attributes

Name Type Description
id pd.Series Unique identifier for the reverse search query.
doc_id pd.Series The document ID to find similar documents for.

Methods

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

from_data

indexers.dataclasses.VectorStoreReverseSearchInput.from_data(data)

Create a validated VectorStoreReverseSearchInput from a dictionary or DataFrame.

validate

indexers.dataclasses.VectorStoreReverseSearchInput.validate(df)

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