Delta retain matches chunks by position, so an insertion near the top re-extracts the rest of the document
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Read hindsight_api/engine/retain/orchestrator.py around _classify_chunk_diff (lines 4064–4080) and the full-retain fallback around line 4310. Trace how stored and new chunks are matched and how chunk_id depends on the index; reproduce with the 20-paragraph document described in the issue. Done means inserting one paragraph at the start triggers extraction only for that new chunk, without the full-retain fallback.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug Description
_classify_chunk_diff compares each new chunk with the stored chunk at the same chunk_index (engine/retain/orchestrator.py L4064-L4080). Text inserted or removed early in a document shifts every later chunk to a new index, so chunks whose content_hash matches a stored chunk count as changed and are extracted again. If no chunk keeps its index, delta falls back to a full retain (L4310).
#6763 raised positional identity more broadly; #6807 fixed the stale-replace case and left the rest out of scope. This is the narrower case inside one document.
Steps to Reproduce
- Retain a document of 20 paragraphs of about 2,900 characters each (one chunk each at the default
retain_chunk_size). - Retain it again with one new paragraph inserted first.
- Read
GET /v1/default/banks/{bank_id}/llm-requests?scope=retain_extract_facts&document_id={document_id}for the second retain, and the worker log.
Expected Behavior
One extraction call, for the new chunk.
Matching by content_hash before index would avoid it; chunk_id is derived from the index, so a matched chunk that moves would need its id rewritten.
Actual Behavior
21 extraction calls, and the worker logs Delta retain: no unchanged chunks for {document_id}, falling back to full retain.
On one of our pages, 116 of 131 chunks had the same text as a stored chunk and were extracted again.
Version
1.3.1
LLM Provider
Gemini (Vertex AI)
- Lingua principale
- Python
- Stelle
- 45.2k
- Fork
- 5.9k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di vectorize-io/hindsight
-
core
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
vectorize-io/hindsight#7254 ·
-
Control Plane shows different calendar dates for the same occurrence in Constellation and TimelineApertacore
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
vectorize-io/hindsight#7240 · 1 commento ·
-
core
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
vectorize-io/hindsight#7233 ·
-
core
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
vectorize-io/hindsight#7231 ·
-
Flaky system test: test_embedding_and_rerank_calls_are_in_request_history raises StopIterationApertacore
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
vectorize-io/hindsight#7228 · 1 commento ·
Tutte le issue di vectorize-io/hindsight
Issue simili
-
Test: to_hijri() accepts datetime.datetime and uses only the date partForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertagood first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
omarelshamy25x/shamy-hijri#63 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
polish
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scoresForse già presa @AshutoshSingh840 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
UKGovernmentBEIS/control-arena#992 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
mvalentsev/awesome-free-ai-coding#70 ·
I maintainer di solito rispondono entro 1 giorno