Enable local embeddings and hybrid people search #23
No reviewers
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp!23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/svd-dev-peoplemind-mcp-7-local-embeddings-on-by-default-3e27f1f9"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add pinned, hash-verified model fetching, default-on embedding configuration, schema v5 Person vectors, content-based refresh, and single-threaded ONNX inference. Wire sync backfill and lazy API loading into lexical, hybrid, and semantic search while preserving exact-handle priority and lexical fallback.
Cover refresh, merge and Forget cleanup, disabled and missing-model behavior, HTTP ranking, fetch integrity, and worker isolation. Validation: 246 passed, 5 skipped (3 Radicale, 2 model); mypy, ruff, formatting, and native package build passed.
Closes #7
Co-Authored-By: gpt-6.1-sol noreply@openai.com
Architect verification (scratch worktree at
f17282d, outside the repo dir):make modelwith the pre-fetched files present:model=okvia the hash-match path; the download path into an empty directory also returnedmodel=okwith both filesuv lock --checkresolved 107 packagesmodels/.gitignoreis*; write set is exactly the 16 Primary Filescodex-svd integrate: readyForMerge true, testResult green, CI absent (repo has no CI)Gate rulings confirmed in the diff: the model pins match mailmind ADR 0005 §2 byte for byte; the fetch script is stdlib Python with staged atomic placement; CLS pooling, L2-normalised, no query prefix, one text per run, one thread; relation labels enter
person_text;Error: code=embed-offandon covered=N; API-side lazy load behind a lock, reset bybuild_app; sync clears the table when disabled and never refuses boot on a missing model;person_vectorscascades frompersons; no plaintext stored, codes and counts only on stdout and in logs; migration 5 appended, schema literals bumped in the three tests; conftest defaults[embed] enabled = false.One nit, accepted:
scripts/fetch_model.pywrites a.gitignoreof*into the parent of whichever destination it is given. For the defaultmodels/path that is the intended effect.Ready for the operator to merge. ADR 0006 Amendment 1 and the README update follow in an architect PR.