Installation
Quick start
The following walkthrough shows a production workflow for LLM memory and context assembly — one of the many use cases HexxlaDB supports. Every code block is copy-pasteable.1. Open a database
2. Store a record with its embedding
Every record gets a cell with content, tags, provenance, and optionally a vector embedding from your model of choice.3. Find relevant records by meaning
When a new query arrives, embed it and search. HexxlaDB uses the HNSW graph for fast approximate nearest-neighbor lookup, then applies your filters as post-predicates.4. Retrieve user preferences
Preferences are just cells with a"preference" tag. Query them separately so they always appear in your context, regardless of what the user is asking about.
5. Assemble a budgeted context window
Take the top search results as seed coordinates and expand outward. The assembler walks concentric rings, fills your budget, and automatically replaces superseded cells with their successors.6. Track contradictions and preference changes
When preferences change, HexxlaDB doesn’t silently overwrite — it records the relationship so context assembly can handle it automatically.Next steps
Learn core concepts
Understand cells, seams, edges, facets, and coordinates.
API reference
Explore the complete API surface.
Storage internals
Learn about the storage layout and key encoding.
Production operations
Backups, encryption, changefeed, and retention.
That’s the full pipeline. Embed → search → filter → assemble → output.
Every step runs in-process, deterministically, with no network calls to the
database layer. See the llm_context_engine
example
for a complete runnable version of this LLM memory workflow with advanced
patterns including multi-signal retrieval, preference supersession, and full
prompt assembly.