Does AI memory need an LLM? What runs when cachly stores and searches
Many people assume that an AI memory sends everything it stores to a language model. This page says which models run in cachly, when each one runs, and what you can switch on or off.
Does storing and searching need a language model?
No, not to store or search. Storing a lesson and finding it again use two smaller models: an embedding model, which turns text into number vectors, and a small ranking model, which scores how well a lesson fits a question. By default, no generative AI model reads or rewrites your lessons. A small ranking model in the EU only scores them.
- Embedding model
- Turns the text of a lesson and the text of a question into number vectors, so search can match by meaning. Runs on cachly's EU service by default.
- Reranker
- A small transformer ranking model (a cross-encoder). It reads question and lesson together and returns a score per pair. It scores; it does not read out, summarize or rewrite. Runs on cachly's own server in France (EU); lesson text does not leave that network.
- Language model (opt-in)
- Only for Extended protection, per Brain, and only for the optional human layer when a server operator configures it. Not part of storing or searching.
Sources in the repository: api/internal/handler/rerank_handler.go for the reranker and sdk/mcp/src/embeddings.ts for the embedding providers.
When does a language model read my lessons?
A language model reads lessons only if you switch on Extended protection. It is per Brain and off by default. Only the owner can switch it on, after a consent step. Then new and changed lessons go to a language model in an EU data centre, which checks them for smuggled instructions.
A lesson that looks like an attack is not deleted. It stays in the Brain and reaches no AI assistant. What the check looks for and what it misses: prompt injection in AI coding rules. Code: api/internal/erweitertschutz.
What is the optional human layer?
The human layer is an optional second version of a lesson: a plain-language title and two to three sentences for non-technical teammates. A language model writes it. In the code it is off by default and runs only when a server operator configures a model endpoint. The technical lesson is stored either way.
Code: api/internal/brainsearch/humanlayer.go. It is switched on with CACHLY_HUMAN_LAYER=on plus a model endpoint. It never blocks a write.
Can I choose my own embedding provider?
Yes. Set CACHLY_EMBED_PROVIDER to openai, gemini, mistral, cohere or ollama. For the first four, the text of lessons goes to that provider, so check its terms. Ollama runs where you run it. Without this setting, the client uses cachly's own EU embedding service once you are signed in.
The setting is read by the MCP server on your machine. Where each processing step runs, and what stays local: EU-hosted MCP memory server.
What do the benchmark numbers say?
On the public OmniMemEval LoCoMo table, cachly ranks first of 18 reproduced entries (90.71, as of 17 November 2026). The benchmark uses answer and judge models, the same for all entries. It measures recall of facts from long chats, not what runs inside your Brain.
On LongMemEval, cachly ranks second of 16 reproduced entries (89.6). Both tables test recall of facts from long chats. Source and method: OmniMemEval, LoCoMo and the benchmark page.
Frequently asked questions
Does a language model read my lessons?
By default, no generative AI model reads or rewrites your lessons. A small ranking model in the EU only scores them. Storing and searching use an embedding model and that reranker; it returns scores, not text. A language model reads them only with Extended protection, or when you name an outside embedding provider yourself, which is not a language model but still receives the text.
Where does Extended protection run?
In an EU data centre. It is off by default for each Brain, and only the owner can switch it on, with a consent step in the dashboard. The default wait for the check is 10 minutes.
Does the memory still work if I use Ollama?
Yes. cachly also works without any embedding: keyword search and exact key lookup stay available, and embedding is an optional boost for semantic search. With Ollama, the vectors are computed on the machine that runs it.
Does this page compare cachly with other memory tools?
No. It describes what runs inside cachly and cites the public benchmark table for context. For where each step runs, see the EU-hosted page.
More: EU-hosted MCP memory server · All docs