roandejager/Hillock

Local, gradient-free neuro-symbolic memory engine combining Hyperdimensional Computing (HDC/VSA), Hebbian plasticity, and graph triples for offline AI.

What it solves

Traditional local RAG setups are heavy and unreliable. They use massive vector databases, consume gigabytes of RAM, and when an answer doesn't exist, nearest-neighbor search still returns irrelevant chunks that force the LLM to hallucinate. Hillock replaces that with a fast SQLite knowledge graph and CPU bit math. It checks whether a factual relationship actually exists before calling the model. If the fact is missing or unsupported, it refuses to guess. It runs completely offline under 1.2 GB VRAM or purely on a normal laptop CPU.

How it works

Hillock uses three cooperating layers:

  1. A symbolic graph stored as subject-predicate-object triples in SQLite with write-ahead logging.
  2. Associative synaptic memory that strengthens concept connections via Hebbian learning and decays inactive ones.
  3. Vector symbolic gating: concepts and relations are mapped to 10,000-bit hypervectors packed into 157 uint64 words. When a question is asked, it computes late-interaction MaxSim scores using CPU bitwise XOR and popcount instructions in under a millisecond. If similarity and predicate alignment fail the threshold, the gate blocks the generation path entirely, so the LLM never gets a chance to make up an answer. The extraction uses lightweight encoder models (GLiREL Large and an ONNX-runtime MiniLM router) to ingest documents at dozens of sentences per second.

Who it’s for

Developers and hobbyists who want a private, local memory system for LLMs without heavy hardware. It’s ideal for edge devices, laptops, or anyone who wants to avoid cloud dependencies. It includes a built-in FastAPI server with OpenAI-compatible endpoints, so it can plug into anything like AnythingLLM or Open-WebUI. Also useful for building autonomous agents that need a deterministic fact database without an LLM (headless mode).

Highlights

  • Factual gating before generation: blocks prompts that ask about unverified entities or relations.
  • Runs fully locally on CPU, under 1.2GB VRAM, no GPU needed.
  • Uses SQLite knowledge graph with Hebbian learning and 10,000-bit hypervectors for fast similarity checks.
  • Drop-in OpenAI API with streaming support.
  • Includes CLI, API server, and headless Python interface.
  • Reproducible evaluation scripts: 21-point test suite, end-to-end retrieval evaluation, and multi-hop benchmark.
  • Dual-licensed under AGPL-3.0 and commercial.

Related

  • Project
  • Project
  • Project
  • Project