Skip to content

feat(rerank): installer --rerank + reorder-only default + docs (v3.9.1)#51

Merged
Vahlame merged 1 commit into
mainfrom
polish/rerank-install-docs-evidence
Jun 20, 2026
Merged

feat(rerank): installer --rerank + reorder-only default + docs (v3.9.1)#51
Vahlame merged 1 commit into
mainfrom
polish/rerank-install-docs-evidence

Conversation

@Vahlame

@Vahlame Vahlame commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Summary

Completes and hardens the v3.9.0 cross-encoder reranker delivery.

  • Installer --rerank: one-command enable — installs the [rerank] extra and sets OBSIDIAN_MEMORY_RERANK=1 in the hybrid MCP env (Cursor / Claude / Codex). Strictly opt-in (not in --full): downloads a model on first use and needs a content-language-matched model. New --rerank-margin power-user flag. +1 installer test.
  • Safer default — reorder-only: rerank_margin now defaults to None. Development measurement showed a margin cut with a weak or wrong-language reranker drops correct answers; cutting is now an explicit opt-in for a validated model. The default reorders for precision but never silently drops a hit. ADR-0026 updated; +1 test locks the no-drop default.
  • Docs: npm README, how-it-works ES/EN, and --help document the reranker + new knobs and the honest model–language-fit caveat.

Honest note

The reranker's gain needs a strong, language-matched model (the multilingual default; the sibling legal vault's jina-reranker-v2) and a candidate pool that already contains the answer. A small English model on a Spanish/synonym corpus did not help and, with the old margin cut, hurt — hence the reorder-only default. The deterministic retrieval-bench gate is unchanged (reranking stays off by default).

Verification

Local CI-exact gates green: go test, pytest (104), npm test (35+50), version:check (3.9.1), sync-agents:check, prettier, markdownlint, linkcheck (110), retrieval-bench gate.

🤖 Generated with Claude Code

Completes and hardens the 3.9.0 cross-encoder reranker delivery.

- Installer: `create-obsidian-memory --rerank` installs the [rerank] extra and sets
  OBSIDIAN_MEMORY_RERANK=1 in the hybrid MCP env (cursor/claude/codex). Strictly
  opt-in — NOT part of --full (downloads a model on first use; needs a
  language-matched model). New `--rerank-margin` power-user flag. +1 installer test.
- Safer default: rerank_margin now None (reorder-only). Measured during dev that a
  margin cut with a weak/wrong-language reranker DROPS correct answers; the cutoff is
  now explicit opt-in. The reorder-only default reorders for precision, never drops a
  hit. ADR-0026 updated; +1 test locking the no-drop default.
- Docs: npm README, how-it-works ES/EN, --help document the reranker + new knobs and
  the honest model-language-fit caveat. Removed the experimental English rerank bucket
  (the small model can't demonstrate the gain; the fake-reranker unit tests cover the
  mechanism). All six version markers -> 3.9.1.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Vahlame Vahlame merged commit f4fc4f3 into main Jun 20, 2026
14 checks passed
@Vahlame Vahlame deleted the polish/rerank-install-docs-evidence branch June 20, 2026 11:39
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.

1 participant