epic: make the vector store a reconciled projection, then widen what enters it
メンテナーはふだん 1 日以内に返信
@samarthsinh2660 がすでに取り組んでいます。
2026年10月12日 から。
評価
調査の方向性
This is an umbrella issue and explicitly tracks no code of its own. Read docs/SHIVA/rag.md under “PDF documents” and the design at docs/superpowers/specs/2026-09-19-pdf-rag-design.md, then choose an open sub-issue (#231–#236) to work on. Done for this issue means its planned work is handled through those sub-issues; there is no standalone implementation or test target here.
索引モデルが issue の本文から書いたものです。
説明
PDF content support landed in #226: a PDF attached to a note is now extracted, chunked, embedded and citable down to the page. Building it surfaced a set of gaps that are deliberately out of that issue's scope — some are pre-existing problems in the note side of the vector pipeline that only became visible once documents started retrieving reliably, others are capabilities the v1 design consciously deferred.
This issue is the umbrella for that follow-up work. It tracks no code of its own.
The idea
Retrieval is only as good as what made it into the vector store, and today the store is written once and never reconciled. A note embedded before the embedder existed stays unsearchable forever; a vector written by one tostore version can read back empty after a package bump; a chunk whose document was deleted leaves its vector behind with no way to reclaim it. None of these announce themselves — retrieval just quietly returns less.
The through-line for the next phases: make the vector store a reconciled, self-healing projection of what the user actually has, then widen what can enter it.
Ordered by what unblocks the most:
Phase A — make existing content searchable (correctness, the highest value work here)
Notes that never got a vector, and stores that silently read empty after an upgrade. Until this is fixed, every retrieval quality measurement is against an unknown fraction of the library.
Phase B — keep it healthy over time
Orphaned vectors, and the dimension the app declares versus the one the model emits.
Phase C — widen what documents contribute
A document's content reaches retrieval but not the knowledge graph, and a Manas-scoped chat cannot reach documents at all.
Phase D — reach and polish
Formats beyond PDF, and jumping to a cited page in-app.
Sub-issues
Phase A
- #231 — Backfill: re-embed notes that have no vector
- #232 — Version-stamp the vector store path so a package upgrade cannot read empty
Phase B
- #233 — Rebuild path for orphaned chunk vectors
- #234 — Reconcile the declared embedding dimension with what the model emits
Phase C
- #235 — Documents contribute to the knowledge graph
- #236 — A Manas-scoped chat should reach its notes' attached documents
Phase D
- #237 — Jump to the cited page in-app
- #238 — Support formats beyond PDF
Phase E — beyond text documents
- #240 — Images: search the text inside attached images (on-device OCR)
- #242 — Selective OCR for PDF and Word: scanned pages and pasted pictures only (measure on a device first)
Deliberately not planned
OCR for scanned documents. A PDF with no text layer stays attached, openable and marked not searchable. This is a product decision, not a backlog item — a scan's extracted text is unreliable enough that citing a page from it would be worse than not citing at all.
Reconsidered: OCR is now used for text inside images (#240), and is planned for scanned PDF pages and pictures pasted into Word files (#242) — page by page, never for a whole document, because a PDF's own text is exact and OCR's is not. #242 must be measured on a device before it is built.
Reference
- Parent feature: #226
- Design:
docs/superpowers/specs/2026-09-19-pdf-rag-design.md - Current behaviour, with diagrams:
docs/SHIVA/rag.md, section "PDF documents"
- 主要言語
- Dart
- スター
- 2
- フォーク
- 2
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 35
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
basictech01/uniun のほかの issue
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
basictech01/uniun#300 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue P2-Medium
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
basictech01/uniun#296 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue P2-Medium
難易度 4/5 1〜2日 初心者へのやさしさ 22/100
basictech01/uniun#293 ·
メンテナーはふだん 1 日以内に返信
-
bug P1-High
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
basictech01/uniun#286 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
P3-Low
難易度 4/5 1〜2日 初心者へのやさしさ 30/100
basictech01/uniun#282 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
basictech01/uniun の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
chriskelly/wish-together#36 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AppFlowy-IO/AppFlowy#9075 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Paste asks for iOS paste permission because the default context menu ignores SystemContextMenu対応中かも @dorklein が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
maheshj01/searchfield#267 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
jhomlala/betterplayer#1616 ·
メンテナーはふだん 1 日以内に返信