# I built a memory for my AI that says "not sure" instead of making things up

> Source: <https://dev.to/jose_heras_45914f114047c9/i-built-a-memory-for-my-ai-that-says-not-sure-instead-of-making-things-up-3hom>
> Published: 2026-12-06 20:37:45+00:00

**Recommendation:** Add an abstention threshold to your retrieval layer so the model says "uncertain" when top facts conflict, and use embeddings over keyword-only matching to lift answer accuracy.
More in the playbook "Retrieval and RAG": <https://wpnews.pro/playbooks/rag-retrieval>

Every new chat, I explained the same things again: how my project deploys, what we decided last week, which tools I prefer. The built-in memories didn't fix it. Each one is locked to one app, hard to inspect, and sometimes states something stale with full confidence.

So I built Synapse: one memory that Claude, Cursor, Claude Code and any MCP app share. You teach it once and it's there everywhere. A live map shows exactly what it knows.

Most memory tools return the closest match and let the model run with it. That is how you get confident nonsense.

Synapse answers only when the best fact clearly beats every fact that gives a different answer. Otherwise it reports "uncertain" or "unknown", and your AI asks you instead of guessing.

I measured it on [ABCD](https://github.com/asappresearch/abcd), a public customer-support dataset: 1,004 held-out conversations to route to one of 55 procedures, through the real MCP server.

| Recall mode | Answers | Right when it answers | Right procedure first | 
|---|---|---|---|
| Keywords only | 24% | 53% | 39% | 
| Local embeddings (Ollama + EmbeddingGemma) | 57% | 86% | 67% | 

With embeddings, when it answers it's right 86% of the time. The rest of the time it says it isn't sure. I'd rather have that than a 100% answer rate with a third of the answers wrong.

```
npx synapse-brain init
```

It finds Claude Code, Claude Desktop, Cursor and Windsurf, adds Synapse to each, keeps your other servers and saves a `.bak` of every file it touches. Restart the app and tell your assistant something worth remembering.

To look first, `npx synapse-brain demo` opens the map on a demo memory, kept apart from yours.

For good recall, run [Ollama](https://ollama.com) with:

```
ollama pull embeddinggemma
```

Synapse picks it up automatically and falls back to keywords when it isn't running.

It's one SQLite file per memory, no dependencies, MIT licensed.

**Repo:** [https://github.com/farithjhg/synapse-brain](https://github.com/farithjhg/synapse-brain)

I'd love feedback, especially on cases where it said "not sure" and shouldn't have, or answered when it should have abstained.
