feat: a Manas-scoped chat should reach its notes' attached documents
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Document retrieval only happens in unscoped chat. A Manas-scoped chat searches documents not at all — it scopes by note membership, and a PDF blob has no membership of its own.
This is the wrong behaviour from the user's side. A Manas is a curated set of notes; if one of those notes has a PDF attached, that PDF's content is part of what the user curated. Scoping to the Manas currently makes the attachment less reachable than not scoping at all, which is the opposite of what narrowing should do.
What to build
Derive a document's scope from the notes that attach it: a chunk is in scope when any note in the selected Manas carries that sha256 as an attachment.
Pointers:
ManasContextLoader.merge/searchAllis where note scoping is applied todayNoteModel.attachmentscarries oneMediaAttachmentper NIP-92imetatag; the sha256 there is the join key toDocumentChunkModel.sha256RagPipelinecurrently gates document search on "no Manas selected" — that gate is what changes
Open questions
- A document attached to a note inside the Manas and a note outside it is in scope by this rule. That seems right — the content is the same content — but it is worth stating rather than discovering.
- Does the scoped top-K split between notes and chunks the same way unscoped does (
max(1, topK ~/ 2)), or should a narrow scope weight documents differently?
Part of #228 · Feature it follows from: #226
- Lingua principale
- Dart
- Stelle
- 2
- Fork
- 2
- Merge medio
- 1g 35m
- PR unite (30g)
- 36
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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 basictech01/uniun
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
basictech01/uniun#300 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
basictech01/uniun#301 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue P2-Medium
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
basictech01/uniun#296 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue P2-Medium
Difficoltà 4/5 1-2 giorni Idoneità per principianti 22/100
basictech01/uniun#293 ·
I maintainer di solito rispondono entro 1 giorno
-
bug P1-High
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
basictech01/uniun#286 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di basictech01/uniun
Issue simili
-
good-first-issue P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
flutter/dart-intellij-third-party#758 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug: Incorrect location coordinates on logged Sound Meter dataForse già presa @Jashan32 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
area/archive bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
DarkFlippers/qUnleashed#374 ·
I maintainer di solito rispondono entro 1 giorno
-
agent:in-progress agent:ready feature P2 · 中 区域: 悬浮窗
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
ASDW51/DanmuFloat#178 ·
I maintainer di solito rispondono entro 1 giorno
-
Missing workoutsApertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
InlitX/GymMane#237 · 1 commento ·
I maintainer di solito rispondono entro 5 giorni