UpstashVectorStore#
- class llama_index.vector_stores.UpstashVectorStore(url: str, token: str, batch_size: int = 128)#
Bases:
VectorStore
Upstash Vector Store.
Attributes Summary
Return the Upstash client.
Methods Summary
add
(nodes, **add_kwargs)Add nodes to the vector store.
delete
(ref_doc_id, **delete_kwargs)Delete node from the vector store.
query
(query, **kwargs)Query the vector store.
Attributes Documentation
- client#
Return the Upstash client.
- flat_metadata: bool = False#
- stores_text: bool = True#
Methods Documentation
- add(nodes: List[BaseNode], **add_kwargs: Any) List[str] #
Add nodes to the vector store.
- Parameters
nodes – List of nodes to add to the vector store.
add_kwargs – Additional arguments to pass to the add method.
- Returns
List of ids of the added nodes.
- classmethod class_name() str #
- delete(ref_doc_id: str, **delete_kwargs: Any) None #
Delete node from the vector store.
- Parameters
ref_doc_id – Reference doc id of the node to delete.
delete_kwargs – Additional arguments to pass to the delete method.
- query(query: VectorStoreQuery, **kwargs: Any) VectorStoreQueryResult #
Query the vector store.
- Parameters
query – Query to run against the vector store.
kwargs – Additional arguments to pass to the query method.
- Returns
Query result.