Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat: a Manas-scoped chat should reach its notes' attached documents

Chiusa
#236 9 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Mayukhga83 ci sta già lavorando.

Dal 6/10/2026.

  • #289 di @Mayukhga83 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement P2-Medium

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 / searchAll is where note scoping is applied today
  • NoteModel.attachments carries one MediaAttachment per NIP-92 imeta tag; the sha256 there is the join key to DocumentChunkModel.sha256
  • RagPipeline currently 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

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 basictech01/uniun

Tutte le issue di basictech01/uniun

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.