indexers.dataclasses.VectorStoreSearchInput
indexers.dataclasses.VectorStoreSearchInput(data)DataFrame-like object for forming and validating search query input data.
This class validates and represents input queries for vector store searches. Each row contains a unique query identifier and the associated query text.
Attributes
| Name | Type | Description |
|---|---|---|
| id | pd.Series | Unique identifier for each query. |
| query | pd.Series | The query text to search for. |
Methods
| Name | Description |
|---|---|
| from_data | Create a validated VectorStoreSearchInput from a dictionary or DataFrame. |
| validate | Validate an existing DataFrame against the schema and return a VectorStoreSearchInput. |
from_data
indexers.dataclasses.VectorStoreSearchInput.from_data(data)Create a validated VectorStoreSearchInput from a dictionary or DataFrame.
validate
indexers.dataclasses.VectorStoreSearchInput.validate(df)Validate an existing DataFrame against the schema and return a VectorStoreSearchInput.