Skip to content

docs: vector subsystem evaluation#2

Open
sternryan wants to merge 1 commit into
mainfrom
vector-subsystem-eval
Open

docs: vector subsystem evaluation#2
sternryan wants to merge 1 commit into
mainfrom
vector-subsystem-eval

Conversation

@sternryan
Copy link
Copy Markdown
Owner

Keep internal/vector/ (Subsystem B). Delete internal/embedding/ + internal/ai/ (Subsystem A).

Subsystem A is hardcoded to Azure OpenAI — a paid cloud API required for every search query, including at search time — which is architecturally incompatible with msgvault's offline/local-first goal. Subsystem B accepts any OpenAI-compatible endpoint, including local servers (Ollama, llama.cpp), and runs search fully offline once the index is built.

See docs/vector-subsystem-decision.md for the full analysis: comparison matrix across offline-alignment, maintainability, test coverage, and performance; migration plan for keeping B; and a concrete deletion checklist for A (files, schema migrations, flag removals, doc updates).


Generated by Claude Code

Analyzes both parallel vector-search implementations that coexist after
the upstream merge (internal/embedding/ vs internal/vector/) and makes
an opinionated recommendation: keep upstream's internal/vector/, delete
the fork's internal/embedding/ + internal/ai/.

Primary driver: internal/embedding/ is hardcoded to Azure OpenAI and
requires an internet-connected paid API for every search query —
fundamentally incompatible with msgvault's offline/local-first goal.
internal/vector/ accepts any OpenAI-compatible endpoint including local
servers (Ollama, llama.cpp).

Secondary drivers: ~12× more test coverage in B, generation lifecycle
management, crash-safe pending queue, structured query filters, and a
single-CTE hybrid path. The merge already rerouted --hybrid to B.

Doc includes comparison matrix, migration plan for keeping B, and a
concrete deletion checklist for A.

https://claude.ai/code/session_01DSeN4Gajp1JpsDdLgnREjU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants