You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 248eeec
Browse filesBrowse the repository at this point in the historyBrowse files
feat(memory-lancedb): make auto-recall selectivity configurable
Auto-recall selectivity is hardcoded: minimum similarity 0.3, a candidate
overfetch of 10, and an injection cap of 3. Operators cannot tune
precision/recall for their own data without editing plugin source.
Surface the three knobs as config (recallMinScore, recallResultCap,
autoRecallOverfetch) with manifest uiHints and defaults equal to the previous
hardcoded values, and thread them through the live-config merge so operator
values take effect at the before_prompt_build hook, not only at startup.
Behavior-preserving when unset. The two count settings are declared `integer`
in the manifest and the runtime parser rejects (rather than silently floors)
non-integer values for them, so both validation layers enforce the same
contract; a parity test pins manifest and runtime to the same bounds and
failure modes. Add a regression test proving configured values survive the
live-config merge into auto-recall (an overfetch of 4 and a minScore of 0.85
reach the search instead of silently reparsing as defaults), and document the
three settings including the prompt-budget note for elevated caps.
Extracted from the scope PR (#108782) following its review recommendation to
split the tuning improvement from the partitioning contract.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
0 commit comments