22 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
e96cba219c feat(docling): expose optional enrichments and version remote cache
Fixes #2518
2026-11-15 01:20:52 +08:00
Bingxi Zhao (Frank)
4889243501 Merge PR #2553: fix(parsing): preserve LiteParse page metadata
Format the parser regression tests; combined adapter suite passed.
2026-11-14 23:04:56 +08:00
lazytalk
406bcbf680 fix(parsing): preserve LiteParse page metadata 2026-11-09 21:49:28 +08:00
Bingxi Zhao (Frank)
11bc2c794f Merge #2328 from Antonio-Faure 2026-11-06 01:56:23 +08:00
Antonio-Faure
e3380f3756 fix(deps): make the Docling parser installable in the official image 2026-11-01 21:36:04 +01:00
RRFZ
1b41175cad fix(parsing): keep model-download jobs readable on non-UTF-8 Windows
The Docling and MinerU model downloads read their child's output with
text=True and no encoding, so the backend decoded it with the ANSI code
page. Under `deeptutor start` the backend gets PYTHONIOENCODING=utf-8
but not UTF-8 mode, so on a cp936/cp932 server the downloader writes
UTF-8 tqdm bars that the pump cannot decode. The first bar raised
UnicodeDecodeError, the pump stopped reading, the child blocked on the
full pipe and the job stayed "running" with an empty log.

Follow the MinerU parse subprocess: run the downloader with
PYTHONUTF8=1 and decode its output as UTF-8 with errors="replace".
2026-10-31 21:01:18 -04:00
Bingxi Zhao (Frank)
64ad8598de Merge commit 'cc9a60237bcc7e4213f574081824c49c92569ed8' into codex/validate-reviewed-integration 2026-10-31 18:53:15 +08:00
Bingxi Zhao (Frank)
def8bdc8c6 Merge commit '1876207b5c248eb4ee4375e34779ed332a11d284' into codex/validate-reviewed-integration 2026-10-31 18:52:30 +08:00
hongthana
cb9984d15c fix(settings): clarify offline parser installation guidance 2026-10-30 10:35:22 +07:00
朱鸿儒
e51c25f726 fix(docx): preserve native OMML equation structure 2026-10-30 10:41:28 +08:00
alphaliujin
0512aed5a1 fix(readiness): fail closed when MinerU model cache root is unreadable
The container backend runs as the unprivileged deeptutor user while
supervisor leaves HOME pointing at root's home. mineru_models_ready()
probed <HOME>/.cache/modelscope/hub/models outside its try/except, so
the PermissionError propagated into build_settings_readiness(), which
maps any exception to parser_probe_failed and shows no cause in the UI.

- mineru_models_ready(): treat an unreadable/absent cache root as
  "cannot confirm" and return False (models_missing) instead of raising.
- build_settings_readiness(): log the parser probe exception with a
  traceback before recording parser_probe_failed.
- Dockerfile: create /home/deeptutor and set HOME for the backend and
  frontend supervisor programs, so profile data resolves under the
  service user.
- Add a regression test for the unreadable-cache-root case.
2026-10-29 18:09:31 +08:00
Bingxi Zhao (Frank)
fbab59acbf feat: modularize installation and enforce feature dependency boundaries 2026-10-28 01:02:29 +08:00
Bingxi Zhao (Frank)
c129e9a0c5 fix: verify MinerU repository names in ModelScope cache 2026-09-27 02:23:10 +08:00
FriedorixNietzsche
fff69b43be fix: detect MinerU models in ModelScope cache layout 2026-09-25 13:41:59 +08:00
XZH
785f13cca7 feat(knowledge): add Zotero BibTeX search
Refs #1303.
2026-09-10 09:49:20 -07:00
Bingxi Zhao (Frank)
02ba56793e chore: checkpoint backend stabilization workspace 2026-09-01 21:28:15 +08:00
Bingxi Zhao (Frank)
da9492fbaf feat(parsing): integrate MinerU multi-format inputs (#1087) 2026-08-30 16:36:43 +08:00
Alok Saboo
6cb65a2a79 feat(parsing): add remote Apache Tika parsing engine (#875)
Follow-up to #845. Tika is remote-only: files are sent to a configured tika-server via PUT /tika and the extracted text is written as Markdown, so no local install or model download is needed.
2026-08-19 23:38:04 +08:00
Alok Saboo
5062924279 feat: Add remote Docling Serve parsing support (#845)
* feat: Add remote Docling Serve parsing support

* fix: close remote uploads and await settings saves

---------

Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
2026-08-16 19:25:53 +08:00
绝世这天下
9228d10abc feat(parsing): add LiteParse as a document parsing engine (#771)
* feat: integrate liteparse as a document parsing engine

* feat: implement background task dispatching for knowledge base processing

- Added `_dispatch_background_task` to run long-running tasks on a separate daemon thread, preventing blocking of the main event loop during knowledge base ingestion.
- Updated `upload_files` and `create_knowledge_base` functions to utilize the new background task dispatching method.
- Implemented rollback functionality for partially created knowledge bases in case of failures during file saving.
- Enhanced tests to verify the correct offloading of file saving and background task execution.

* update

* docs: add Open Source Partners section with PageIndex

* docs: replace partner blurb with PageIndex promo code

* docs: link PageIndex subscription to developer portal

* docs: point PageIndex logo at its GitHub repo

* fix: harden Responses stream parsing (#825)

* fix: remove obsolete Typer extra (#817)

* fix: normalize RAG citation payloads (#808)

* fix: decouple mastery paths from chat sessions (#810)

* fix(parsing): hold LiteParse to the workdir contract

The engine landed with three knobs that could not work as written:

- ``extract_images`` was gated on a user-supplied ``image_output_dir``
  that defaulted to empty, so image extraction never ran. Even when set,
  images landed outside ``images/`` and the Markdown kept LiteParse's
  bare ``![](img_p1_1.png)`` names, so the cache loader saw neither.
  Images now go to the workdir's ``images/`` like the PyMuPDF4LLM engine,
  links are rewritten to ``images/<name>``, and an empty dir is removed.
- ``output_format`` was selectable, but the parse always writes ``.md``;
  picking JSON or text produced a mislabelled document. Pinned to
  Markdown and dropped from the settings slice.
- ``image_output_dir`` was a free-text path joined onto the workdir.
  Removed with the rest.

Also: normalize the slice with the shared coercers (a bare ``bool()``
reads the string ``"false"`` as True), allow-list ``image_mode``, pass
``quiet`` and ``ocr_failure_fatal=False`` so a systemic OCR failure
degrades to recovered text instead of losing the document, pin the
extra to ``<3.0``, and keep the engine lists in the three tests that
assert them exactly.

Excludes the unrelated background-task/rollback/off-loop changes this
branch carried in ``api/routers/knowledge.py``: dev already routes
uploads through ``_save_uploaded_files_off_loop``, and the rest is a
separate change that deserves its own review.

---------

Co-authored-by: chenhj <hanjiang.chen@1stcs.cn>
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
2026-08-12 17:06:52 +08:00
Bingxi Zhao (Frank)
eef785ae1e integrate lightrag-server & other fixes. 2026-06-24 15:54:12 +08:00
Bingxi Zhao (Frank)
c9d387e2b6 super super great great update 2026-06-17 00:56:27 +08:00