Prerequisites before you begin:
- Python 3.10 or later — check with
python --version - Ollama installed and running — download from ollama.com
- A local Ollama model pulled — Hillock defaults to
llama3.2. Runollama pull llama3.2if you haven’t already. Any Ollama-compatible model works; smaller models likephi3:minialso run well.
1
Install Hillock
The fastest way to install is via pip:Alternatively, use the one-click launcher to clone the repo, create a virtual environment, install all dependencies, and start the console automatically:If you cloned manually and want to install in editable mode:
- Linux / macOS
- Windows
2
Start Ollama
Pull the default model and make sure the Ollama server is running:Ollama listens on
http://localhost:11434 by default. Hillock connects to this endpoint automatically — no additional configuration needed unless you change the port.3
Launch the CLI
If you installed via pip:If you’re running from source:You’ll see Hillock’s banner, a list of available local Ollama models, and the interactive prompt. The Knowledge Graph is created automatically at
hillock_kg.db in your working directory on first launch.4
Ingest a document
Feed a document into Hillock’s memory using the TALON processes the document in parallel blocks (5 sentences per block, 2 sentences of overlap), extracts Subject-Predicate-Object triples using spaCy and GLiREL, resolves coreferences, and writes the resulting facts into the SQLite Knowledge Graph. For a typical 30-sentence document, this takes roughly 5 seconds.After ingestion, Hillock may launch the Active Disambiguation Quiz — see the tip below.
/ingest command. Both plain text (.txt) and PDF (.pdf) files are supported:5
Ask a question
Type any question about the content you just ingested:If you ask something Hillock doesn’t have verified facts for, the HDC gate blocks the query and returns an honest refusal instead of a fabricated answer:You can also use these CLI commands to explore and tune Hillock’s behaviour:
Configuration
Hillock’s key settings live inconfig.py. The defaults work for most setups, but you can edit them directly for your hardware and workflow:
Raising
HDC_THRESHOLD above 0.55 makes the gate stricter — fewer facts pass, but false positives decrease. Lowering it below 0.55 lets more candidate facts through but increases the risk of the LLM receiving weakly matched context. The default of 0.55 was calibrated to eliminate hallucination leaks on the test suite.Next steps
Architecture Deep Dive
Understand how the SQLite Knowledge Graph, Hebbian plasticity engine, and HDC reservoir interact at query time.
Python Library
Embed
IntegratedHillock directly in your Python application for programmatic ingestion and querying.