Reverse searches the VectorStore using a VectorStoreReverseSearchInput object and returns matched results in VectorStoreReverseSearchOutput object. If using partial matching, matches if document label starts with query label.
Parameters
Name
Type
Description
Default
query
VectorStoreReverseSearchInput
A VectorStoreReverseSearchInput object containing the text query or list of queries to search for with ids.
required
max_n_results
int
[optional] Number of top results to return for each query, set to -1 to return all results. Defaults to 100.
100
partial_match
bool
[optional] If True, the search behaviour is set to return results where the document_id is prefixed by the query. Defaults to False.
False
Returns
Name
Type
Description
VectorStoreReverseSearchOutput
A VectorStoreReverseSearchOutput object containing reverse search results with columns for query_id, query_text, document_id, document_text and any associated metadata columns.