Skip to content

Preserve documents on partial extraction and keep keyword search model-free - #2

Merged
lychee888 merged 2 commits into
mainfrom
fix/review-follow-ups
Sep 30, 2026
Merged

lychee888 merged 2 commits into
mainfrom
fix/review-follow-ups

Conversation

@lychee888

@lychee888 lychee888 commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Re-ingestion preserves the entire previous source snapshot when enabled visual extraction is incomplete, including visual chunks and earlier text. CLI and both watcher paths expose errors and partial status. Successfully empty extraction still removes old rows; explicitly disabling VLM opts into text-only replacement. Keyword-only queries avoid constructing an embedding engine, including source-filtered queries. README clarifies the scope of offline model-file transfer.

Visual-region discovery, PDF rendering, and DOCX image-read failures now propagate instead of being silently accepted. An embedded-image fallback is accepted only when it recovers every required visible raster image and the page has no unrecovered vectors, inline images, masks, annotations, or widgets. Blank PDF pages and short native text without visuals need no OCR/VLM; scanned content and checked form controls still use extraction fallback.

The independent outside review found inline-image, checkbox, and alpha-mask edge cases. All were fixed, along with explicit color-key masks. New real-document/LanceDB regressions cover whole-snapshot preservation through CLI and both watchers, successful opaque raster recovery, partial image recovery, DOCX image reads, blank pages, short text, separator pages, scanned content, inline images, checked widgets, and masked charts. These tests are included in the focused CI suite.

Local final validation on LanceDB 0.25.0: 69 focused tests passed. With the existing PDF image-extraction tests included, 72 passed. The broader model-backed suite is exercised by CI using a downloaded embedding model followed by offline execution. CI runs the focused suite on Windows/Linux and Python 3.11/3.13.

Live VLM/OCR quality and OS autostart installation were not exercised locally. The broader safe suite excludes autostart and legacy watcher tests that modify startup state; the isolated replacement regressions exercise both watcher implementations.

Verified CI on final head 81950fc: all 5 checks passed (run). Leave this PR open for review.

@lychee888
lychee888 merged commit 4107ba1 into main Sep 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant