Commit Graph
31 Commits
Author SHA1 Message Date
jay77721 bea5b62faa fix(ingestion): contain process-fatal errors and bound parser work (#21480) 2026-10-26 17:32:47 +08:00
jay77721 1b8ab33c2c fix(deepdoc): keep native PDF text when OCR detection misses it (#21399) 2026-10-26 11:17:28 +08:00
jay77721 fd675ebde2 fix(deepdoc): preserve complete PDF figures (#21390) 2026-10-23 17:06:46 +08:00
jay77721 17f173c288 refactor(parser): remove dead output_format readers (#21336) 2026-10-22 17:40:41 +08:00
jay77721 5753d7b27f fix(parser): keep short-line body pages out of PDF TOC removal (#20988) 2026-10-15 19:06:26 +08:00
ciel accddd32d3 fix(deepdoc): judge PDF header/footer and TOC removal against the full document instead of the parsed page subset (#20719) 2026-10-10 16:24:22 +08:00
xugangqiang 02b668c1de fix(pdf): rejoin line-break hyphens / strip U+FFFD in Go layout (temporary workaround) (#20274) 2026-09-28 13:27:39 +08:00
xugangqiang 483b892bb5 perf(deepdoc): bucket substring-dedup scan by page and column (#20122) 2026-09-23 20:41:00 +08:00
xugangqiang 8a3d26e78a fix(deepdoc): scope table/box overlap to the same page to avoid cross-page expansion (#20089) 2026-09-23 18:41:37 +08:00
jay77721 328fadf1f8 fix(parser): replace slog.Debug with common.Debug+zap in toc_header_footer (#20071) 2026-09-23 10:16:00 +08:00
jay77721 dae8016532 fix(parser): catch tight page numbers and site-promo headers/footers (#20019) 2026-09-23 09:45:34 +08:00
jay77721 338703565a refactor(go): unify Go logging on the zap logger (#20026) 2026-09-22 19:40:08 +08:00
jay77721 c779b15d9c feat(parser): upgrade PDF header/footer removal with 3D cascaded fusion (#19957) 2026-09-21 14:45:29 +08:00
jay77721 5f1a69ff0d fix(parser): move PDF TOC and header/footer removal to box level (#19779) 2026-09-18 11:29:28 +08:00
Taranum Wasu ee3360bccb fix(pdf): strip tiled watermark text from text-layer extraction (#18308) 2026-08-25 19:52:34 +08:00
jay77721 f9e86b1bb1 fix(parser): crop media sections in PDF JSON path, unify Data URI and markdown rendering (#18742) 2026-08-25 19:47:02 +08:00
Jack 290a8d8f79 fix(deepdoc): prevent cross-page table over-merge from page-local Y coordinates (#18688) 2026-08-25 10:18:01 +08:00
Jack aa6e19e70f fix(deepdoc): resolve OCR text gaps — char loss/duplication in pdf parser (#18643) 2026-08-23 10:22:00 +08:00
Jack 6483f84d0c fix(deepdoc): close ocr_real text-gap divergences and pin char-to-box matching (#18630) 2026-08-21 20:12:56 +08:00
Jack f793a44f99 fix(deepdoc): dedup OCR substring fragments regardless of whitespace divergence (#18568) 2026-08-20 19:59:05 +08:00
Jack 20ee2dad22 fix(deepdoc): drop nested OCR boxes before table cell fill + expose 13/14 parity gaps (#18524) 2026-08-20 15:57:58 +08:00
Jack c90a0b7a87 feat(deepdoc): Python-intermediate replay parity harness + table cell-fill fixes (#18516) 2026-08-19 21:45:45 +08:00
Jack 7646afab1b fix(pdf/layout): recover title-bridged & gutter-less double columns (2D rescue + L3) (#18150)
Incremental follow-up to #18023 (gap + balance-gate hybrid). Adds two
complementary column detectors to `AssignColumn` that run **only after**
the gap detector and the balance gate both fail, so already-correct
pages are never touched.
2026-08-12 17:59:50 +08:00
Jack b4dd0f7a0c fix(pdf/layout): replace KMeans-only column detection with gap + KMeans hybrid (#18023) 2026-08-11 22:13:42 +08:00
Jin Hai d7661b676d Go: fix context and warnings (#18097)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-08-11 16:18:49 +08:00
Jin Hai 86021932ae Go: fix warnings (#17738)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-08-03 21:30:01 +08:00
zcxGGmu 1c0432a816 Fix centered PDF title reading order (#17009) 2026-07-18 01:31:27 +08:00
deadtrickster 982b9c7b25 fix(deepdoc): recover word boundaries for non-Latin scripts; skip OCR fallback the recogniser can't serve (#16958) 2026-07-18 00:36:25 +08:00
Zhichang Yu 12787996d1 feat(agent): Go ingestion pipeline progress mirroring and DeepDOC parser hardening (#16795)
feat(ingestion): mirror Go pipeline progress into the document table;
harden resume guards
- pipeline: bind the owning document via WithDocumentID; after each
TrackProgress event aggregate ingestion_task_log progress and mirror
progress/run/progress_msg back into the document table, so GET
/api/v1/datasets/{dataset_id}/documents reflects live Go pipeline
progress without a bespoke endpoint.
- canvas: extend the S3 resume guard to reject legacy no-op nodes (e.g.
ExitLoop) so component_total equals the count of progress-reporting
components and the aggregate percent can reach 100%.
- runtime/canvas: route progress through TrackProgress; add interrupt
test coverage (r3_interrupt_test.go).
- dao/entity: add IngestionTask.DocumentID column and AggregateProgress
support used by the mirror; IngestionTaskLog keeps a Checkpoint column
alongside the progress fields.

feat(deepdoc): cache DocAnalyzer inference results in Redis (1h TTL)
- Redis-backed DocAnalyzerCache decorator over inference.Client; cache
key = "ddoc:cache:<method>:" + sha256 of the JPEG-encoded image bytes
(deterministic).
- TTL = 1h; hits skip the inner HTTP call and return cached JSON; inner
errors are not cached.

refactor(deepdoc): align figure cropping with Python cropout + bounded
page caches
- CropSectionByDLA mirrors Python cropout: best-overlap DLA
figure/equation region, fallback to section bbox per page, vertical
concat on gray background.
- sliding-window page-image cache bounds peak memory to the recent
window instead of the whole PDF.
- rename DLADebug -> DLARegions across parser/chunker/tests.

refactor(parser): drop lib_type selector; align NewXxxParser with
NewPDFParser
- remove config["lib_type"] lookup and the libType param/field/switch
from all nine constructors; surface the CGO-required error at
ParseWithResult time instead of construction time; drop resolveLibType,
its test, and the four lib_type constants.

feat(utility): add a reusable workerpool for bounded concurrent
execution
- internal/utility/workerpool.go (+ tests).

refactor: translate Chinese prose comments to English in non-harness Go
files.

chore: upgrade github.com/cloudwego/eino from v0.9.9 to v0.9.12.
2026-07-10 10:36:10 +08:00
Jack 1d3c100acb Refactor: pdf parser (#16625)
### Summary

PDF parser refactor
2026-07-05 20:45:35 +08:00
JackandClaude 98323e7910 Refactor: oss parser go refactor (#16391)
### What problem does this PR solve?

Package refactor and PDF post process.

### Type of change

- [x] Refactoring

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-06-29 18:46:41 +08:00