Skip to main content

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, so delete(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 filterable fields: EQ, NE, GT, GTE, LT, LTE, IN, NIN, ANY, ALL, CONTAINS, IS_EMPTY, combined with AND, OR or NOT, and nested. doc_ids restricts the query to those source documents.
  • Query modes. DEFAULT (vector), HYBRID (vector + BM25, fused) and TEXT_SEARCH (BM25).
  • Not supported. TEXT_MATCH filters, and queries by node_ids (use get_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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-vector-stores-cairn 0.3.3
File Size Uploaded
llama_index_vector_stores_cairn-0.3.3.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-vector-stores-cairn 0.3.3
File Interpreter ABI Platform
llama_index_vector_stores_cairn-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.2 kB

Release files / llama_index_vector_stores_cairn-0.3.3.tar.gz

Download URL llama_index_vector_stores_cairn-0.3.3.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3b695ca9976556680ef3c828ceba9831deb6aad99b9af962106db725cacdfa3e
BLAKE2b-256 checksum
How to use checksums
9c21359abc8a0a4e19dfa701952762c00cd4c7f3a523d34ac0664a24fb2b1013
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

Release files / llama_index_vector_stores_cairn-0.3.3-py3-none-any.whl

Download URL llama_index_vector_stores_cairn-0.3.3-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35c96f65f29d452b138b3960646a77d12ecd9c65844f9c16466571708b344a1f
BLAKE2b-256 checksum
How to use checksums
da48118d5f69de48856e4f8b08d886649cc3cf43d619ebcd8f92adaa8ffc6a3e
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

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page