Skip to main content

Trustworthy RAG with geometric memory — grounded, cited, byte-exact, abstaining. GMS-optional.

Project description

Beyond Chunk and Pray

Building trustworthy RAG with geometric memory.

Most RAG is "chunk and pray" — split the docs, embed them, retrieve the top-k by similarity, and pray the model grounds its answer instead of hallucinating. This is the open alternative. Retrieval is triple-mediated: questions are answered through a verified knowledge graph with provenance, not by a vector lookup the generator is trusted to use well. The dense index is distrusted — optional, off by default, flagged when used. Every answer is verifiable and cited, numbers are byte-exact, and the system abstains rather than guess when it can't ground a claim.

The baseline runs with no license and no GMS. For production-grade grounding — geometric retrieval, Exact Numerical Memory, contradiction detection, signed answers — the optional GMS backend (knowlytix) snaps in via a lazy seam. Clone it, run the baseline, see exactly where GMS lifts grounding and recall.

Part of the "Beyond … and Pray" series: governed agents · trustworthy RAG · test & validate · LLMs from scratch

Status: the open groundloop baseline (naive chunk→embed→top-k RAG, the deliberate "before") is implemented — numpy-only TF-IDF retrieval + a stuff-and-pray answerer that never abstains. On the Northwind cohort it scores ~20% answer accuracy and 0% abstention: the gap GEODE/GMS closes. Run python demos/naive_rag.py.

What's inside

  • Grounded retrieval — answers mediated through a verified knowledge graph
  • Provenance + citations — every claim traces to its source
  • Byte-exact numbers — Exact Numerical Memory, not "close enough"
  • Abstention — says "I can't ground that" instead of guessing
  • Distrusted dense index — optional, flagged when used
  • GMS-optional — baseline runs free; geometric guarantees via knowlytix

Install

pip install groundloop                # naive RAG baseline (the "before")
pip install "groundloop[ml]"          # + embedders / open-weight models
pip install "groundloop[gms]"         # + the licensed GMS backend (knowlytix)

The GMS upgrade (open-core)

groundloop runs fully without a license. GEODE-RAG — geometric retrieval, Exact Numerical Memory, provenance — requires the licensed knowlytix package, imported lazily:

import groundloop.gms as gms
gms.available()   # True if the licensed backend is installed

The production-grade, GMS-native edition is the Beyond Chunk and Pray, Pro Edition — see knowlytix.ai.

License

Apache-2.0. © 2026 Knowlytix.

Project details


Download files

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

Source Distribution

groundloop-0.1.0.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

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

groundloop-0.1.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file groundloop-0.1.0.tar.gz.

File metadata

  • Download URL: groundloop-0.1.0.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for groundloop-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d390d1e2a1e66bfef5cb8a2be9727dedf77fed1b2b1eb614304fdee55dd93a0a
MD5 a27bc858fc9029e1462d75750c2cb822
BLAKE2b-256 308f6548a3b2a34095d38f170c16ff86daae83e4d37cff8f5de2a99d16bdd650

See more details on using hashes here.

Provenance

The following attestation bundles were made for groundloop-0.1.0.tar.gz:

Publisher: publish.yml on knowlytix/beyond-chunk-and-pray

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file groundloop-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: groundloop-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for groundloop-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d3835c7077c70a198f35c57f5eed789a57583a8a4910d0d7c3fa600f5e785f1
MD5 b4afb1cf19bc0aa048c25ec7b1b99182
BLAKE2b-256 f7d1573d7abc6c3fd8c76b4daff3bbbca74b049f32eebefc043068a419fb78d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for groundloop-0.1.0-py3-none-any.whl:

Publisher: publish.yml on knowlytix/beyond-chunk-and-pray

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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