k (int) – Number of results to return. Defaults to 4.
filter (Optional[dict]) – Filter by metadata. Defaults to None.
Returns
List of documents most similar to the querytext with distance in float.
Return type
List[Tuple[Document, float]]
wait_for_indexing(timeout: float = 5, ndocs: int = 1) → None[source]¶
Wait for the search index to contain a certain number of
documents. Useful in tests.
Examples using XataVectorStore¶
Xata chat memory
Xata