Skip to content

refactor(server): read the graph-rerank and jaccard keys of [recall] (#1416) - #1417

Merged
ajianaz merged 1 commit into
developfrom
refactor/server-recall-graph-jaccard-1355
Oct 9, 2026
Merged

ajianaz merged 1 commit into
developfrom
refactor/server-recall-graph-jaccard-1355

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

What

uteke-serve now reads and applies four more keys of [recall], with the CLI's meaning and defaults: graph_density_weight, graph_authority_weight, graph_rerank_enabled (passed to the store at open through GraphRerankConfig) and jaccard_weight (set_jaccard_weight, clamped to 0..=1 by the core). The values come from the existing RecallFileSection (new optional fields); absent keys keep the previous behaviour.

Why

Closes #1416, step B of #1355. The same uteke.toml configures both binaries but the server silently ignored half of [recall]. Deliberately not included: salience_weight / recency_weight (in the CLI they apply only with an explicit --salience/--recency; the server has no such flag, so the semantics need an owner decision) and [tier] (next step).

Testing

  • fmt, clippy -D warnings, cargo test --workspace green; 4 new unit tests (defaults equal the core/CLI defaults and a [recall] section without the new keys changes nothing, file values are applied, a partial section keeps the other defaults, existing recall keys still parse next to the new ones)
  • End to end, run locally with the built uteke-serve and a fake OpenAI-compatible embedder: without the key, --explain on a hybrid recall shows jaccard_boost = None and final 1.125; with [recall] jaccard_weight = 0.2 it shows jaccard_boost = 0.02857 and final 1.1536
  • Observation, not a change: the default fusion strategy showed no jaccard boost in either run, so jaccard_weight only changes hybrid results today (same as in the CLI)
  • Behaviour change: a server whose uteke.toml already sets these keys now applies them (jaccard_weight > 0 changes the ranking of hybrid recalls)

🤖 Generated with Claude Code

…1416)

uteke-serve now applies graph_density_weight, graph_authority_weight,
graph_rerank_enabled and jaccard_weight from [recall], as the CLI does. Defaults
are unchanged when the keys are absent. Second step of #1355.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 90e1012 into develop Oct 9, 2026
15 checks passed
@ajianaz
ajianaz deleted the refactor/server-recall-graph-jaccard-1355 branch October 9, 2026 09:26
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.

refactor(server): read the graph-rerank and jaccard keys of [recall] (#1355 step B)

1 participant