notecast¶
A local note engine that uses a small LLM to organise your notes into a knowledge graph. Point it at a folder of Markdown or text files: it summarises each note, tags it with keywords, sorts it into themes, splits themes that grow too big into subthemes, and links themes that keep appearing together. Ollama-first, CLI-only, one SQLite file, no cloud.
Docs: https://muratcanozdemir.github.io/notecast-py/
1 2 3 | |
Python 3.12 or newer. Needs Ollama running locally,
and Graphviz for notecast graph
(apt install graphviz / brew install graphviz).
What it does¶
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
1 2 | |
| Stage | |
|---|---|
| process | one LLM call per note: summary + keywords; plus an embedding |
| classify | each note into the theme that fits it best (up to 3) |
| organize | themes over split_threshold notes get 2–4 subthemes, reusing existing ones |
| consolidate | themes sharing most of their notes get linked; empty ones pruned; no LLM |
If Ollama goes away mid-scan, the scan stops and leaves notes queued; bad model output fails only the note it was for. See The pipeline.
Examples¶
examples/ has a quickstart, a folder import, a nightly cron
job and a Python script, with sample notes. The test suite runs all of
them against a stand-in Ollama.
Differences from the original¶
A Python port of AlexWasHeree/NoteCast (TypeScript/Bun):
- No Bun/TypeScript: pure Python, standard library where possible.
- No YAKE: keywords come from the LLM during summarisation (one call instead of two).
- No LanceDB: vectors stored as JSON in SQLite, cosine similarity in pure Python. Fine for <10k notes.
- No server: CLI only, talks directly to SQLite.
- No .env / API keys: Ollama at
localhost:11434by default; settings in SQLite vianotecast config set. - FTS5: full-text search via
notecast search. notecast scan: auto-chains process → classify → organize → consolidate based on thresholds.- Graphviz:
notecast graphrenders the theme DAG.
Development¶
1 2 | |
See Development for checks, tests and releases.
Call graph¶
Symbol-level coupling across the repository, coloured by Leiden community (generated by codegraph-lsp):
License¶
MIT