Local-first course knowledge bases for AI agents: index your materials, study grounded, share the index.
Project description
Groundly
Local-first course knowledge bases for AI agents. Index your course materials once; then any MCP-capable agent — Claude Code, Claude Desktop, Codex — can answer questions grounded in the actual course content with page-level citations, generate execution-verified tests and flashcards, quiz your weak areas, and track your mastery. Share the finished knowledge base with your coursemates as a single file.
Bachelor thesis project, Universitatea Politehnica Timișoara.
$ groundly index <SUBJECT> ./slides/
✓ 12 PDFs → 384 chunks → embedded (bge-m3, local) → indexed
$ # wire into Claude Code: { "command": "groundly", "args": ["mcp"] }
Then, inside your agent: "What did lecture 4 say about deadlock prevention?" → answer cited to lecture-04.pdf, page 12, "Deadlocks › Prevention" — or "not covered by the course materials", never a hallucination.
Why not NotebookLM / a Claude Project?
- Verified generation — every test question and flashcard passes a verifier: answerable from the cited sources, answer key checked, and code questions' reference solutions actually executed before acceptance.
- Enforced citations — structural, page-level, with honest refusal when the corpus doesn't cover it.
- A portable index —
groundly export <SUBJECT>→ one file; a coursemate imports it and their agent uses it directly. The expensive artifacts (knowledge graph, verified decks) are built once and shared. - Cross-host progress — mastery per topic and study memory persist in local files, whatever agent you talk to. Your queries and results never leave your machine and are never part of an export.
Features
- Grounded Q&A — hybrid retrieval (bge-m3 dense + learned sparse + BM25, reranked; optional GraphRAG for synthesis questions), via MCP tools or
groundly ask - Verified quizzes & coding challenges — generated by Groundly (your API key) or by your agent (no key needed) — either way, nothing unverified is stored
- Flashcards → Anki — verified decks exported as
.apkg - Mastery map & study memory — per-topic mastery from quiz results; "continue studying" warm starts in any host
- Import/export — the whole knowledge base as one shareable file, with pinned-model compatibility
Install
uv tool install groundly
Local-first honestly stated: first run downloads the embedding models (~2.7GB total). Indexing and search need no API key; grounded answer generation and graph builds use your own OpenAI-compatible provider (cloud key, LM Studio, or Ollama).
Setup guides: connect Claude Code / Codex to the MCP server · use LM Studio as a zero-key local provider
Thesis core: four-arm RAG vs GraphRAG evaluation on real RO/EN course corpora, plus a measured comparison of enforced vs agent-mediated grounding.
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 groundly-0.6.5.tar.gz.
File metadata
- Download URL: groundly-0.6.5.tar.gz
- Upload date:
- Size: 337.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98ad19abf60bf117b0c4de75b509d0c4f81a20395e35b1ea4593317752e6d25c
|
|
| MD5 |
e2475183122a9556a617489ec22f6cda
|
|
| BLAKE2b-256 |
1366dda13c54cdbea86b8d71dd3d6aa6ae32244fa8d9f2acb840721a590ddfe9
|
File details
Details for the file groundly-0.6.5-py3-none-any.whl.
File metadata
- Download URL: groundly-0.6.5-py3-none-any.whl
- Upload date:
- Size: 55.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3d609c75f1fe1040a1d6e377d4383af060c205b37c53dbd99d050aece786e1a
|
|
| MD5 |
f01bd83e30807e5a9d0c64c8b02dbc93
|
|
| BLAKE2b-256 |
fc39e76ccd819d6a28c7bd9d180b178a14ab996f2f6a0134a22750f648adcad9
|