Skip to content

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
uv tool install notecast      # or: pipx install notecast
ollama pull llama3.2:3b       # summaries, classification, subtopics
ollama pull nomic-embed-text  # embeddings for "similar notes"

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
git clone https://github.com/muratcanozdemir/notecast-py && cd notecast-py
uv sync --group dev
uv run notecast --help

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
export NOTECAST_DB=~/.notecast.db

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
notecast theme add Tech --base --desc "software, infrastructure, tools"
notecast theme add Work --base --desc "planning, process, operations"
notecast theme add Personal --base

Import your notes. Look first with --dry-run: it prints the title each file would get.

1
2
notecast add-batch ~/notes --dry-run
notecast add-batch ~/notes -x README.md -x '.obsidian/*'

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 --stage process -v
notecast scan --stage classify -v
notecast status
notecast theme list

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 scan runs it.
  • Examples: complete scripts, including a cron job.