Skip to main content

CiteNexus

Multilingual RAG that answers only when the evidence is strong.

Evidence-first, multilingual, S3-native RAG for domains where a wrong answer is worse than no answer (legal, medical, finance/compliance, enterprise search). CiteNexus answers only from retrieved evidence — every claim is grounded in a bbox-cited source passage, and it refuses or states uncertainty when evidence is weak, missing, or conflicting. The guarantee is "no ungrounded claim," not "zero hallucination."

The library bundles no models — embedding, LLM, reranker, and vision are injected endpoints. CiteNexus owns orchestration, storage, retrieval, fusion, grounding, and evaluation.

CiteNexus supports pluggable vector databases. Storage is two protocols — VectorStore (dense) and TextSearch (lexical) — and each backend is a named (vector, text) pair:

Backend Vector Text When
Lance (recommended) LanceVectorStore LanceTextSearch (BM25-lite) Zero infra, S3-native: point at a bucket and go
Postgres PostgresVectorStore (pgvector) PostgresTextSearch (native tsvector) You already run Postgres — pip install 'citenexus[postgres]', set vector_store.backend: "postgres"
Yours implement VectorStore implement TextSearch Qdrant, Weaviate, Elasticsearch, Tantivy, …

The seams are independent: mix LanceDB vectors with an Elasticsearch text_search=, or let one Postgres serve both.

from citenexus import CiteNexus, S3

rag = CiteNexus(
    S3(bucket="my-bucket"),
    embedder=my_embedding_endpoint,
    generator=my_llm_endpoint,
)
rag.ingest("policy.pdf")                         # any supported input type
answer = rag.ask("Can the employee disclose this information?")
print(answer)                                    # grounded answer; .sources are bbox-cited

See the workspace root README for the full polyglot (python/ golang/ js/ rust/) layout.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

citenexus-0.4.0.tar.gz (297.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

citenexus-0.4.0-py3-none-any.whl (145.8 kB view details)

Uploaded Python 3

File details

Details for the file citenexus-0.4.0.tar.gz.

File metadata

  • Download URL: citenexus-0.4.0.tar.gz
  • Upload date:
  • Size: 297.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for citenexus-0.4.0.tar.gz
Algorithm Hash digest
SHA256 40c2ea69569ed1c4f4c17f07842dfa90b885e2f7fccd998ec947dd05ea742d59
MD5 d8045e04786821a97cfd6958bf5c789d
BLAKE2b-256 9b97a230f1961b78619d1cdd6e8f5e4f8c8d45b2a4a77dd622ebe3a9cc5ca9a9

See more details on using hashes here.

File details

Details for the file citenexus-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: citenexus-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 145.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for citenexus-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8dc1d0e43d18ecab466bf19d9c1f0b01352ad12a56feaf3e07b2a7c85600d2af
MD5 5ee4652f198ba7fa9b2dd592fa2425fb
BLAKE2b-256 18f014cb8897727dc78d7b8e5eac8cf2a7352815b31b9cf0977e9ea91028772e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.12.0

2 files

0.11.0

2 files

0.10.1

2 files

0.10.0

2 files

0.9.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page