Search & Heat
pkm builds a SQLite index from Markdown files. The index powers full-text search, backlinks, and heat scoring.
Search
Section titled “Search”Search uses SQLite FTS5 and includes note titles, bodies, tags, and aliases.
pkm search kafkapkm search --tags architecturepkm search "data pipeline" --type dag --scope projectFilters use AND logic for tags.
Heat is a relatedness score between notes. It combines content similarity, shared tags, direct links, and co-references.
pkm heat computepkm heat show "Architecture Decision: Switch to Kafka"Signals
Section titled “Signals”| Signal | Why it matters |
|---|---|
| Content similarity | Notes discuss similar terms |
| Shared tags | Notes are classified together |
| Direct backlinks | Notes explicitly reference each other |
| Co-references | Notes point to the same third note |
The score is not a truth metric. It is a discovery tool for surfacing nearby context.