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
groundloopbaseline (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. Runpython 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d390d1e2a1e66bfef5cb8a2be9727dedf77fed1b2b1eb614304fdee55dd93a0a
|
|
| MD5 |
a27bc858fc9029e1462d75750c2cb822
|
|
| BLAKE2b-256 |
308f6548a3b2a34095d38f170c16ff86daae83e4d37cff8f5de2a99d16bdd650
|
Provenance
The following attestation bundles were made for groundloop-0.1.0.tar.gz:
Publisher:
publish.yml on knowlytix/beyond-chunk-and-pray
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
groundloop-0.1.0.tar.gz -
Subject digest:
d390d1e2a1e66bfef5cb8a2be9727dedf77fed1b2b1eb614304fdee55dd93a0a - Sigstore transparency entry: 1770310716
- Sigstore integration time:
-
Permalink:
knowlytix/beyond-chunk-and-pray@a524f5677d72d747b6294e0477f9175d542a70ee -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/knowlytix
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a524f5677d72d747b6294e0477f9175d542a70ee -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d3835c7077c70a198f35c57f5eed789a57583a8a4910d0d7c3fa600f5e785f1
|
|
| MD5 |
b4afb1cf19bc0aa048c25ec7b1b99182
|
|
| BLAKE2b-256 |
f7d1573d7abc6c3fd8c76b4daff3bbbca74b049f32eebefc043068a419fb78d9
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
groundloop-0.1.0-py3-none-any.whl -
Subject digest:
1d3835c7077c70a198f35c57f5eed789a57583a8a4910d0d7c3fa600f5e785f1 - Sigstore transparency entry: 1770311829
- Sigstore integration time:
-
Permalink:
knowlytix/beyond-chunk-and-pray@a524f5677d72d747b6294e0477f9175d542a70ee -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/knowlytix
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a524f5677d72d747b6294e0477f9175d542a70ee -
Trigger Event:
release
-
Statement type: