Skip to main content

matrx-rag

Multi-tenant RAG: hybrid retrieval, chunking, embeddings, ingestion, PDF + image + repo pipelines, agent-extraction indexing, NER/KG writes, priority-aware ranking — extracted from aidream/services/rag/ so any host (aidream's cloud server, matrx-local) can consume the same stack.

Cross-repo system-of-record: /Users/armanisadeghi/code/common-docs/systems/knowledge/rag/STATE.md — read it before touching this feature in ANY repo.

Editing rules for this package: CLAUDE.md · matrx_rag/FEATURE.md.

What it does

  • Ingestion: ingest_source(source_kind, source_id, ...) — chunk → embed → upsert; NER inline for non-code sources.
  • PDF / image / code repo pipelines with provenance.
  • Hybrid search: pgvector HNSW + lexical FTS → RRF → optional Cohere → MMR.
  • Priority-aware ranking: agent-extracted chunks with non-zero priority.
  • Agent-extraction → RAG: extraction_indexing materializes page-extraction payloads as chunks.
  • Data stores: curated buckets with scoped search.
  • Eval harness: retrieval + answer quality assessment.

Host integration

  • aidream wires the package in aidream/package_integration.py::_configure_matrx_rag (NER extractor, embedding cache, ORM models, search callable).
  • aidream/services/rag/ is a re-export shim; HTTP routes live in aidream/api/routers/rag.py.
  • Auto-ingest (gates, budget, scope suggestions) lives in aidream/services/auto_ingest/ — not in this package.

Schema

Migrations: matrx_rag/migrations/ (mirrored in db/migrations/ until package owns the runner).
ORM / pgvector notes: /Users/armanisadeghi/code/common-docs/systems/knowledge/projects/knowledge-system/README.md.

Package development

See CLAUDE.md for injection seams, test baselines, and the no-aidream-imports rule.

Metadata

Release files for matrx-rag 0.1.393

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

Source distribution (sdist)

Source distribution for matrx-rag 0.1.393
File Size Uploaded Provenance Actions
matrx_rag-0.1.393.tar.gz 594.3 kB With provenance Details for matrx_rag-0.1.393.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for matrx-rag 0.1.393
File Interpreter ABI Platform Actions
matrx_rag-0.1.393-py3-none-any.whl Python 3 none any Details for matrx_rag-0.1.393-py3-none-any.whl

Total release size: 1.1 MB

Release files / matrx_rag-0.1.393.tar.gz

Download URL matrx_rag-0.1.393.tar.gz
Size 594.3 kB
Tags Source
SHA-256 checksum
How to use checksums
752bc76206f350f20d145a8670fdbfa4d9b2ff112ac0b914df9d185afd10bbe1
BLAKE2b-256 checksum
How to use checksums
3fd2388c5e11c1c2e09999416c1f6518334d1b34923a7c5f01a7e0285f9b96a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / matrx_rag-0.1.393-py3-none-any.whl

Download URL matrx_rag-0.1.393-py3-none-any.whl
Size 555.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff29c3c2b6c6d4cbe5f92149960e1091e3ed0053f39ec28dcafd45f2015cd5f1
BLAKE2b-256 checksum
How to use checksums
670e5a6f252b45c267eeda5e689d72ef86d2f250db69d5eb4275df5f3eba4148
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Security for matrx-rag 0.1.393

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for matrx_rag-0.1.393.tar.gz

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 Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.393 This release

2 release files Full provenance

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