Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#236 9 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Mayukhga83 đang làm issue này rồi.

Từ ngày 6/10/2026.

  • #289 của @Mayukhga83 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
Dart
Star
2
Fork
2
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
35

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của basictech01/uniun

Tất cả issue của basictech01/uniun

Issue tương tự

Thêm issue về Dart

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.