llama-index-vector-stores-cairn
LlamaIndex vector store for Cairn, the hybrid search database where a deletion is final.
pip install llama-index-vector-stores-cairn
from cairn_db import Client
from llama_index.core import StorageContext, VectorStoreIndex
from llama_index.vector_stores.cairn import CairnVectorStore, collection_schema
admin = Client("http://localhost:7200", api_key=ADMIN_KEY)
admin.create_collection("docs", collection_schema(1536, filterable={"source": "Enum"}))
store = CairnVectorStore(Client("http://localhost:7200", api_key=KEY).collection("docs"))
index = VectorStoreIndex.from_documents(documents, storage_context=StorageContext.from_defaults(vector_store=store))
index.as_retriever(similarity_top_k=4).retrieve("what changed in 2024?")
index.delete_ref_doc("handbook.pdf") # the document and all its nodes, everywhere
- Storage. Each node is stored under its node id, with its source document in
parent, sodelete(ref_doc_id)is a single deletion by filter. The node's own serialization is kept, so nodes come back whole. - Filters. Metadata filters on
filterablefields:EQ,NE,GT,GTE,LT,LTE,IN,NIN,ANY,ALL,CONTAINS,IS_EMPTY, combined withAND,ORorNOT, and nested.doc_idsrestricts the query to those source documents. - Query modes.
DEFAULT(vector),HYBRID(vector + BM25, fused) andTEXT_SEARCH(BM25). - Not supported.
TEXT_MATCHfilters, and queries bynode_ids(useget_nodes). - Deletions are final. The client carries its consistency token, so later queries never return deleted nodes, on any node.
Metadata
Release files for llama-index-vector-stores-cairn 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llama_index_vector_stores_cairn-0.3.2.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_vector_stores_cairn-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / llama_index_vector_stores_cairn-0.3.2.tar.gz
| Download URL | llama_index_vector_stores_cairn-0.3.2.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27b2c0980ea2db9e54e7a672937dfa070780e0c92a8b58331ca039a728ec3cdf
|
|
BLAKE2b-256 checksum How to use checksums |
be062ed457da2766604e07ccd618745b32a5ffa60ef19bfaceb6b56e4d339eee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.
Transparency logRelease files / llama_index_vector_stores_cairn-0.3.2-py3-none-any.whl
| Download URL | llama_index_vector_stores_cairn-0.3.2-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13adb553cd9e9c39e77dd3dc492dd9cd4b68178426558fc332f8ce3c5d533ff7
|
|
BLAKE2b-256 checksum How to use checksums |
c3aee68194b570def7f13cfd564171f3a5408457ae6ae1c7f8a817520d33b111
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.
Transparency log