Getting started¶
Install¶
notecast needs Python 3.12 or newer, and two programs:
- Ollama, to run the models locally;
- Graphviz, only for
notecast graph(apt install graphviz/brew install graphviz).
1 2 3 | |
Its Python dependencies are click and graphviz; storage, the HTTP
client and the vector maths use the standard library.
From a checkout, for development:
1 2 3 | |
Pick a database¶
All state lives in one SQLite file. By default that is ./notecast.db in
the current directory, so set NOTECAST_DB once in your shell profile
to always use the same one:
1 | |
First run¶
Classification only puts notes into themes that exist, so start with a few broad base themes. They anchor the graph and are never pruned.
1 2 3 | |
Import your notes. Look first with --dry-run: it prints the title each
file would get.
1 2 | |
Run the pipeline. scan on its own runs whatever is due; on a first run,
going stage by stage shows what happens:
1 2 3 4 | |
notecast scan checks that Ollama is reachable and both models are
pulled before it starts. If Ollama goes away halfway, it stops and leaves
the remaining notes queued; run it again later.
Next¶
- The pipeline: what each stage does and when
scanruns it. - Examples: complete scripts, including a cron job.