Correct roadmap: vetta/sqlite-vec are open candidates, not decided; keep requirements + one-way latch

This commit is contained in:
adm committed 2026-11-25 18:29:19 +01:00
1 parent f8853597d5
commit bc8dc54337
1 file changed
+27 -23
+27 -23
View File
@@ -267,31 +267,14 @@ Qoder-style vector database giving the agent long-term, cross-session semantic
recall, useful well beyond coding: embed and index conversation chunks, session recall, useful well beyond coding: embed and index conversation chunks, session
notes, uploaded documents and learned facts, then retrieve by similarity to inject notes, uploaded documents and learned facts, then retrieve by similarity to inject
the relevant context into a turn, plus explicit *remember* / *semantic search* the relevant context into a turn, plus explicit *remember* / *semantic search*
tools. Recommended shape, preserving the single-binary property: an embedded tools.
vector index inside the existing SQLite store (**sqlite-vec**) behind the `Store`
trait, fed by the team's `vetta-embedder` (BGE-M3 + reranker) over HTTP. The
planned ArangoDB backend already offers vector indexes, so the same seam carries
over when the store is swapped.
Agreed architecture (design ratified, implementation deferred): Decided so far — requirements, not products:
- **Embedder = the team's `vetta-embedder` (BGE-M3 + BGE-Reranker-v2-m3).** Already - **One general engine + one general embedder.** A single multilingual,
deployed on every Linux host (default `127.0.0.1:8091`, repo `vetta-semantics`): domain-agnostic embedding model and a single vector engine must decently cover
multilingual, dense + learned-sparse + ColBERT + a cross-encoder reranker in one any need; specialization lives *above* the index, never in a second engine or
C++/ggml process (Vulkan with CPU fallback, no Python/ONNX). strata-ctl reaches model.
it over HTTP exactly like it reaches the engine (config host/port), so no new
model is bundled. Verified live: `/embed` (1024-d) and `/rerank` discriminate
correctly.
- **Store = sqlite-vec inside the existing SQLite, behind `Store`.** Dense KNN +
metadata columns; retrieval pipeline = dense recall → `/rerank` cross-encoder
precision → inject. Learned-sparse (`/sparse`) is available later for exact-term
boost. Keeps memory co-located and transactional with sessions (single binary);
the team's Qdrant (used by Iris) and the planned ArangoDB remain alternate
backends behind the same seam, not the default.
- **Per-session, one-way opt-in.** Vector memory is off by default (casual chat
needs none); enabling it for a session is **irreversible** (a latch like
`name_locked`), because indexed memories must not be silently orphaned by a
later disable. Enabling requires the embedder to be reachable.
- **Layered directives.** An always-on **common core** (knowledge lifecycle: - **Layered directives.** An always-on **common core** (knowledge lifecycle:
recall when relevant, record durable lessons, verify against current evidence, recall when relevant, record durable lessons, verify against current evidence,
one topic per memory, prune duplicates) plus **enable-able domain guideline one topic per memory, prune duplicates) plus **enable-able domain guideline
@@ -301,6 +284,27 @@ Agreed architecture (design ratified, implementation deferred):
filters/boosts, exposed tools) so the same general engine serves specialized filters/boosts, exposed tools) so the same general engine serves specialized
retrieval. Packs integrate with the per-session settings (copy-on-create) and retrieval. Packs integrate with the per-session settings (copy-on-create) and
never override the core (core > pack). never override the core (core > pack).
- **Per-session, one-way opt-in.** Vector memory is off by default (casual chat
needs none); enabling it for a session is **irreversible** (a latch like
`name_locked`), so indexed memories are never silently orphaned by a later
disable. Enabling requires the embedder to be reachable.
Candidates under evaluation — the concrete engine / embedder / store choice is
**still open**, to be settled against the requirements above when we implement:
- **Embedder candidate: the team's `vetta-embedder`** (BGE-M3 dense 1024-d +
learned-sparse + ColBERT + a BGE-Reranker-v2-m3 cross-encoder sidecar), repo
`vetta-semantics`, already deployed on Linux hosts at `:8091` (C++/ggml, Vulkan
with CPU fallback, no Python/ONNX). Probed live: `/embed` and `/rerank` behave
correctly and multilingually; it would be reached over HTTP like the engine, so
no model is bundled. A strong candidate, **not yet chosen**. Alternative: a
small bundled multilingual embedder (ONNX/candle) if zero external services is
ever required.
- **Store candidate: sqlite-vec** inside the existing SQLite behind the `Store`
trait (dense KNN + metadata columns; recall → rerank → inject), keeping memory
co-located and transactional with sessions (single binary). Alternates behind
the same seam: the team's Qdrant (used by Iris) and the planned ArangoDB
(documents + vectors + search).
## License and credits ## License and credits