Recall quality: unrelated observations outrank a relevant fact and dominate short Hermes turns

Aperta
#6,917 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
ai, search

Direzione di ricerca

Start by reading the recall implementation and tests for POST /v1/{bank_id}/memories/recall, then trace how observations are scored and ordered when reranking is disabled. Reproduce the two reported cases with a controlled memory bank, since the private bank and summarized texts are unavailable. Done means relevant observations rank ahead of unrelated ones in the specific tariff case, while short contextual turns do not spuriously inject unrelated memories into Hermes auto-recall.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

integration:hermes

Environment

  • Self-hosted Hindsight API 1.2.0; Hermes Hindsight plugin manifest version 1.2.4.
  • German queries, one existing mixed-topic memory bank, observation-only recall, recall_sync: true in Hermes. Server reranking disabled for this bank; returned reranker scores were null. No minimum score configured in Hermes.
  • The counts and ranks below are from direct HTTP requests to POST /v1/default/banks/{bank_id}/memories/recall, not from an instrumented Hermes turn. They come from one small test on a private bank. Returned texts are summarized, not quoted. The bank is not available as a public fixture, so the exact rankings are not independently reproducible from the request alone.

Case 1: short turns with no need for historical facts

During a conversation about memory retrieval, Was nun? (“What now?”) referred to the current discussion. An additional search of older memories was not needed to answer it. We replayed the exact short queries below in direct requests, without preceding turns. For each query we used this request shape:

{
  "query": "Was nun?",
  "types": ["observation"],
  "budget": "mid",
  "max_tokens": 4096,
  "prefer_observations": false
}

Actual:

  • Was nun?: 43 observations. The top two concerned identity distinctions and conversation attribution, not what to do next.
  • Mach das bitte (“Please do that”): 34 observations. The top four concerned an unrelated project and earlier audio work.
  • Danke (“Thanks”): 44 observations. The top results concerned identity, an earlier integration and project metadata.

Expected in Hermes auto-recall: when the current conversation already resolves the short turn and there is no useful older fact to add, inject no memory. This is not a request to return zero results for every short message: a short but specific query can still have relevant matches. Nor is it an assertion that a raw standalone API query could infer the missing dialogue context.

Case 2: relevant observation already retrieved, but below unrelated ones

Exact query: Welcher Strompreis gilt bei uns bis Ende 2026 und ab 1. Januar 2027 in Home Assistant?

Expected: the observation containing both electricity prices and their effective dates ranks ahead of unrelated project and identity observations. The actual prices are omitted here; the relevant observation included both values and both date ranges.

Actual: 35 observations. The expected observation was at rank 8 with a final score of about 1.080. The top three were unrelated to the tariff and had scores of 1.131, 1.123 and 1.120. Replaying the same query with request-local "min_scores": {"final": 1.1} returned only those three unrelated observations and dropped the expected one. This is not a complaint about incorrect threshold behavior: a minimum cannot remove higher-scoring distractors while retaining a lower-scoring answer.

Scope

These are two small examples for recall-quality investigation, not a general failure rate or evidence about configurations with reranking enabled. No request to change or consolidate stored memories, or to add a model call to every Hermes turn. Relevant handoff: maintainer discussion requesting concrete recall failures.

Lingua principale
Python
Stelle
45.2k
Fork
5.9k
Merge medio
6h 18m
PR unite (30g)
354

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vectorize-io/hindsight

Tutte le issue di vectorize-io/hindsight

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.