How it works
No LLM.Every step explained.
Storing and recalling are made of small, inspectable steps. Scroll through each one — what it does, and the code that does it.
Store
From message to memory.
01Authenticate
The API key is hashed and looked up. A user key acts only as itself; service and admin keys may act for an end user. Writes are rate-limited per user.
02Skip duplicates
Identical content already visible to this agent is not stored again.
03Embed once
One embedding per message, stored with the model's name and reused by every later step.
04Extract facts
A rule grammar turns statements into (entity, relation, value) facts, each recording the rule and the exact words it came from. “The deadline” is resolved to the deadline mentioned earlier. A precision guard skips casual remarks such as “my cat is sleeping”.
05Tag the topic
The embedding is compared with example sentences for each topic (identity, preference, calendar, …).
06Score importance
Novelty (an exact nearest-neighbour scan, so it is reproducible), information content, specificity and cue words, combined by weights fitted on labelled data.
07Store
Row, embedding and full-text index in SQLite — the system of record — plus a timeline entry.
08Index
The vector joins the user's own HNSW index. It is searchable immediately and linked into the graph in the background.
Authenticate
principal = keys.lookup(request.headers["X-API-Key"]) user_id = acting_user(principal, body.user_id) rate_limit_writes(user_id)
What came out
Four messages, stored.
Stage times above are averages measured over the evaluation run, including the embedding model.
I'm allergic to peanuts and prefer dark chocolate.
importance 8.92 · preference · user::allergy = peanuts and prefer dark chocolate
My name is Priya and I live in Pune.
importance 8.03 · identity · user::name = Priya; user::location = Pune
Need to renew my passport before 1 June.
importance 9.44 · task
The weather is nice today.
importance 4.37 · general
Recall
From question to answer — or to “I don’t know.”
01Resolve aliases
If a memory says “X is also known as Y”, a question using the alias is rewritten to the canonical name.
02Find candidates
Full-text and entity matches restricted to this user inside the index, plus the user's vector index, filtered to memories this agent may see. Memories confirmed by earlier feedback for a similar question always join.
03Rank
A logistic model over explainable signals — meaning, keywords, entity and relation matches, who a statement is about, recency — fitted by cross-validation.
04Keep facts current
Memories stating the same fact are walked in time order: newer values win, and “X is not V” removes V only.
05Check the answer
A small reading-comprehension model (SQuAD 2.0) reads the memories in rank order, with “I” resolved to whoever said it, and stops at the first that contains an answer. If none does, Recallix declines. The threshold can be calibrated on your own questions, with a certificate.
06Check who it’s about
If the question names one of the people in the conversation, the reader asks it again about each other person. A memory that “answers” just as well for someone else is not evidence about this person.
07Write the receipt
Every recall explains its decision and the versions involved; every memory carries who said it, when, the rule and quote behind each fact, and how likely each fact is to still be true.
Resolve aliases
"What powers 'The Dragon's Breath'?" -> "What powers Galaxy X-77?"
Real run · status CONSISTENT
“What am I allergic to?”
I'm allergic to peanuts and prefer dark chocolate. · relevance 0.97
semantic 0.71 · lexical 1.00 · entity match 1.00 · subject match 1.00 · relation match 1.00 · slot match 1.00 · salience 0.89 · own private 1.00
My name is Priya and I live in Pune. · relevance 0.00
semantic 0.46 · entity match 1.00 · subject match 1.00 · relation conflict 1.00 · salience 0.80 · recency 0.33 · own private 1.00
Need to renew my passport before 1 June. · relevance 0.00
semantic 0.47 · entity match 1.00 · subject match 1.00 · salience 0.94 · recency 0.67 · own private 1.00
Agents
Private or shared. Enforced, not suggested.
A private memory is visible only to the agent that wrote it; a shared one to every agent of the same user. The rule is applied in the database on every read — and every user has a separate vector index.
Learning
It improves from your feedback.
Each recall records the signals of its top candidates.
recall_log.log(recall_id, user_id, ranked[:20])
Background
Quiet work between conversations.
World state
Latest facts about the user and the share of each topic.
workers.state_inference_minutes in config.yaml
Prediction
Which topic is likely next, from the user's history.
workers.prediction_minutes in config.yaml
Reflection
A short summary of the most representative long-term facts.
workers.replay_hours in config.yaml
Forgetting
Archives or removes old, never-recalled, low-importance memories — vectors included.
workers.forgetting_hours in config.yaml
Give your agents a memory.
Free to self-host. Source available. A few lines of code.