fleet-memory/hindsight-api-slim/hindsight_api/engine/search
Abdulkadirklc 26794aab09
feat(recall): add proof_count boost to combined scoring (#821)
* feat(recall): add proof_count boost to combined scoring

Observations with more supporting evidence now rank slightly higher
in recall results. proof_count is threaded through the retrieval
pipeline and applied as a multiplicative boost in reranking:

- types.py: add proof_count field to RetrievalResult
- retrieval.py: include proof_count in SELECT columns
- reranking.py: add log1p-normalized proof_count boost (alpha=0.1)

The boost uses the same multiplicative pattern as recency and temporal
signals. proof_count=1 is neutral, proof_count=50 gives ~+5% boost.
Non-observation fact types are unaffected (neutral 0.5).

* fix(retrieval): Apply proof_count boost to graph and temporal retrieval, normalize scaling

* fix(retrieval): correct proof_norm math to zero-center at count 1

* fix(retrieval): Apply proof_count boost to link_expansion retrieval

* fix: remove BFS zombie, clamp proof_norm to [0,1], fix test comment (log1p->math.log)
2026-04-07 09:32:44 +02:00
..
__init__.py breaking: remove BFS and MPFP graph retrieval strategies (#767) 2026-04-01 12:44:40 +02:00
fusion.py feat: introduce hindsight-api-slim and hindsight-all-slim packages (#560) 2026-03-13 13:50:03 +01:00
graph_retrieval.py fix(retain): preserve normalized experience fact types (#848) 2026-04-02 12:20:37 +02:00
link_expansion_retrieval.py feat(recall): add proof_count boost to combined scoring (#821) 2026-04-07 09:32:44 +02:00
reranking.py feat(recall): add proof_count boost to combined scoring (#821) 2026-04-07 09:32:44 +02:00
retrieval.py feat(recall): add proof_count boost to combined scoring (#821) 2026-04-07 09:32:44 +02:00
tags.py feat: compound tag filtering via tag_groups (#562) 2026-03-13 14:30:11 +01:00
temporal_extraction.py feat: introduce hindsight-api-slim and hindsight-all-slim packages (#560) 2026-03-13 13:50:03 +01:00
think_utils.py fix(retain): preserve normalized experience fact types (#848) 2026-04-02 12:20:37 +02:00
trace.py fix(retain): preserve normalized experience fact types (#848) 2026-04-02 12:20:37 +02:00
tracer.py fix(retain): preserve normalized experience fact types (#848) 2026-04-02 12:20:37 +02:00
types.py feat(recall): add proof_count boost to combined scoring (#821) 2026-04-07 09:32:44 +02:00