Skip to main content

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?

  1. 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.
  2. Enforced citations — structural, page-level, with honest refusal when the corpus doesn't cover it.
  3. A portable indexgroundly 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.
  4. 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


Download files

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

Source Distribution

groundly-0.6.1.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

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

groundly-0.6.1-py3-none-any.whl (49.8 kB view details)

Uploaded Python 3

File details

Details for the file groundly-0.6.1.tar.gz.

File metadata

  • Download URL: groundly-0.6.1.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • 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

Hashes for groundly-0.6.1.tar.gz
Algorithm Hash digest
SHA256 364926400c3316129ea1c3a455b30db2fe3180623ee6599e5490ff2935f0e30e
MD5 978bc838fb98482db62e8237e3afd305
BLAKE2b-256 c894679e80f836a4e3c54a75021f9afed8c99d8fc2e068217f1ac5640757232f

See more details on using hashes here.

File details

Details for the file groundly-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: groundly-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 49.8 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

Hashes for groundly-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bab3c5e775c58c483d8078a002d850125f6fef1cff2fe1a0c0fb1cab10c3d447
MD5 a3df9500816896d06fd19e3ab9967ff2
BLAKE2b-256 dc7204bb716023f032574c4a7046d6668cac3e5b0e30b1fa6b16fd6066e4cd80

See more details on using hashes here.

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