Skip to content

File-based storage

Keep the index on local disk. In Python the directory is the store: pass a path and CiteNexus writes vectors, manifests, structure, and provenance under it. Go and JavaScript have no managed store on the plain go get / npm install surface, so the local directory is yours — load it into a corpus and persist that corpus yourself.

from citenexus import CiteNexus
rag = CiteNexus("./citenexus-data", embedder=..., generator=...)
rag.ingest("corpus/nda.txt") # PDF, DOCX, PPTX, XLSX, HTML, MD, CSV, TXT
rag.ingest(text="Clause 4: 90 days notice.", document_id="clause-4")
print(rag.ask("What notice does termination require?").evidence.decision) # answered

The directory now holds the index — vectors, manifests, structure, and (when the signals are on) graph and wiki:

vector/workspace=default/lancedb/evidence_units.lance/…
manifests/workspace=default/etag_manifest.json
knowledge/workspace=default/structure/nda.json
graph/workspace=default/graph.json

See Ingest anything for the full intake surface (including crawl()), or switch to S3-native storage for a shared bucket.