From 45a6540cc487a4b47cadbc914209b77cc4c001b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A7=CE=B3=CF=86=CF=84=20Kompanion?= Date: Mon, 13 Oct 2025 00:07:53 +1300 Subject: [PATCH] docs: memory plan (sqlite+faiss) --- docs/MEMORY.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/MEMORY.md diff --git a/docs/MEMORY.md b/docs/MEMORY.md new file mode 100644 index 0000000..b462ea5 --- /dev/null +++ b/docs/MEMORY.md @@ -0,0 +1,5 @@ +# Memory Plan (sqlite + FAISS) +- sqlite: embeddings.db with tables: chunks(id, file, sha, lineno, text, ts), vectors(id, dim, data BLOB) +- faiss: faiss.index for fast ANN; sqlite is source of truth +- provenance mandatory; ripgrep is canonical text source +- journal is never overwritten; only append