docs: fix drift in Hybrid Search - #268
Draft
jack-arturo wants to merge 1 commit into
Draft
Conversation
Verified against automem@8ff266e6. - SEARCH_WEIGHT_RELEVANCE weights consolidation relevance_score, not the context bonus; the context bonus is added unweighted - final_score is never renormalized to [0.0, 1.0] - missing importance/confidence contribute 0.0, not 0.5/0.7 - recency reads timestamp only, and the window/curve are configurable - refreshed 9 stale source-note permalinks Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XQCAKtAw2NRatRuYVEfDcv
Deploying automem-website with
|
| Latest commit: |
62f9cc9
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://33fe591c.automem-website.pages.dev |
| Branch Preview URL: | https://docs-audit-core-concepts-hyb-j9mw.automem-website.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated docs-accuracy audit of
docs/core-concepts/hybrid-search. This page was flagged for re-verification after PR #202 was closed as superseded; this is that pass. Draft because the fixes rewrite explanatory prose and two mermaid diagrams.context_bonus × SEARCH_WEIGHT_RELEVANCE, and the weights table describesSEARCH_WEIGHT_RELEVANCEas the "Context profile scoring bonus"SEARCH_WEIGHT_RELEVANCEmultipliesrelevance_score— the consolidation-decay field on the memory.context_bonusis a separate term added with no env weight at all, using fixed sub-weights (tag 0.45, type 0.25, keyword 0.2, anchor 0.9).Normalizenode in the flowchart)_compute_metadata_score()returns the raw weighted sum and recall assigns it straight through (result["final_score"] = final_score), then sorts on it. Entity-expanded results even getfinal_score + 0.15, which can push past 1.0.importancedefaults to 0.5", "Missingconfidencedefaults to 0.7"0.0when absent or non-numeric — a missing field contributes nothing, it does not get a mid-range priorlast_accessedfalls back totimestamp"; recency "based on the time since last access (or creation if never accessed)"_compute_recency_score()is called withmemory.get("timestamp")and never readslast_accessedtimestampSEARCH_RECENCY_WINDOW_DAYS(180) andSEARCH_RECENCY_CURVE(linear|exp, whereexptreats the window as a half-life)Also refreshed all 9 source-note links from the short SHA
0720da2to the full permalink8ff266e6.Verified against: verygoodplugins/automem@8ff266e
Checked and found correct, left untouched: all ten
SEARCH_WEIGHT_*defaults (and the 1.95 sum), everyRECALL_*default in the expansion/limit table, and the function names_vector_search(),_graph_trending_results(),fetch_relations(),_build_qdrant_tag_filter(),_compute_metadata_score(),_extract_entities_from_results().Questions
Unverified
Follow-ups
Beyond the 5-fix cap:
SEARCH_WEIGHT_TEMPORAL(default 0.1) is added by the recency re-rank, which is inert whileRECALL_RECENCY_BIAS=off(the default) — so "10-component" is defensible at defaults but incomplete. Already tracked in docs: "9-component scoring" stale across multiple pages; new SEARCH_WEIGHT_TEMPORAL weight undocumented everywhere #241; not touched here.RECALL_RELEVANCE_GATEis undocumented on this page. When enabled it linearly ramps down importance, confidence, recency, tag, and relevance for results with weak topical evidence — a material scoring behavior with no mention in the scoring section.SEARCH_TAG_SCORE_TOKEN_CAPis undocumented. It caps the denominator of the tag-overlap score so long queries aren't penalized.Generated by Claude Code