SMF·MEM-AI
Can a prompt replace Mem?
Notes & knowledge management — notes, wikis and personal knowledge bases
Exhibit tracking slip
Verdict
Automatically surfacing related notes as you write, using embedding similarity instead of manual [[wiki-links]], is a real weekend build with your own model API key, on top of this catalogue's other local notes tools. What doesn't survive: Mem's specific AI-chat-over-your-notes polish and its collaborative team features.
Exhibit A — The prompt
Received on31.07.2026Build a notes app that automatically surfaces related notes by embedding similarity, not manual links — Mem's actual differentiating idea. Use Next.js/TypeScript with Postgres and the pgvector extension for storing and querying embeddings. Store notes as Markdown, and on save, generate an embedding for the note's content using an embeddings API from your Anthropic or OpenAI key's provider, or a dedicated embeddings endpoint. As the user writes a new note, query pgvector for the most similar existing notes by embedding distance, and show them as a live 'related notes' sidebar, updating as the user types, debounced, not on every keystroke. Support manual [[wiki-links]] too as a fallback for explicit connections, alongside the automatic similarity suggestions. Add a simple 'ask your notes' chat box: embed the user's question, retrieve the most similar notes, and send them as context to an LLM for an answer grounded in the retrieved notes. Do not build a polished mobile app, team collaboration, or automatic tagging beyond similarity suggestions — those are out of scope. Requires an Anthropic or OpenAI API key for embeddings and chat, plus hosting and a Postgres database with pgvector.
Opening prefills the prompt — press enter to run it.
Exhibit B — What you lose
- B.1 a polished AI chat interface over your whole note collection
- B.2 collaborative team notes
- B.3 mobile app polish
- B.4 automatic tagging beyond similarity-based suggestions
Prior art
Exhibit C — Why people still pay: sync, collaboration, and capture polish
Computing embedding similarity is an API call; a genuinely pleasant chat interface over your entire note history, and keeping that fast as the collection grows into the thousands, is the ongoing product refinement.
Questions
Do I need to manually link notes together?
Not primarily — related notes are surfaced automatically by embedding similarity as you write, though manual [[wiki-links]] still work as a fallback for explicit connections you want to force.
Can I ask questions across all my notes?
Yes — a basic 'ask your notes' feature retrieves the most relevant notes by similarity and sends them to an LLM for a grounded answer, though it's simpler than Mem's own more polished chat interface.
Does it work without an API key?
No — embedding generation and the chat feature both need a model API key; there's no keyless fallback in this build, unlike some other AI-optional entries in this catalogue.
What does it cost to run?
Hosting, a Postgres database, and API usage for embeddings and chat, billed per token — embeddings are cheap per note, but costs scale with how much you write and how often you use the chat feature.
Related tools
Receipt