7 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
c547a5a31c fix: resolve verified learning, ingestion and delivery regressions
Bind mastery drafts before their opening turn and preserve stored session modes.
Track chat duration from submission through terminal completion. Run async reading
extensions on their event loop and allow retries after cancellable timeouts.
Allow first uploads into empty LlamaIndex knowledge bases, preserve Telegram
thread routing, parse embedding Retry-After dates, and enforce robots rules and
host pacing during documentation crawls, including redirects.

Fixes #1461
Fixes #1458
Fixes #1451
Fixes #1448
Fixes #1392
Fixes #1429
Refs #1435, #1412

Reuses contributions from PRs #1462, #1452 and #1403.

Co-authored-by: sjagadee <srini.jagadeesh@gmail.com>
Co-authored-by: AoHanBei <dongaohan21@gmail.com>
Co-authored-by: Gao-Chenkai <DevChenkai@outlook.com>
2026-09-15 20:06:57 +08:00
evan188199-tech
c72185aad6 fix(rag): improve local LlamaIndex pipeline compatibility (#864)
* fix(rag): improve local pipeline compatibility

* fix(rag): resolve tqdm progress at call time, not at import

`show_progress: bool = should_show_progress()` is a default argument, so
Python evaluated it once when the module was first imported and froze the
result for the process lifetime. That defeated the fix in both directions:
a server started from a terminal froze `True` and kept writing tqdm bars
into the pipe whose read end can close mid-indexing (the BrokenPipeError
this guards against), while a CLI launched with piped stdout froze `False`
and never showed progress again.

Take `show_progress: bool | None = None` and resolve inside the body of the
two functions that consume the value; the pure forwarders pass `None`
through so the decision is made once, at the point of use.

The accompanying test was green only because pytest captures stdout, so the
frozen default already read `False` — it never exercised the mechanism. It
now asserts both directions and fails under `pytest -s` if the default
argument comes back.

---------

Co-authored-by: XZH <cto@xzh.ai>
Co-authored-by: Frank <bingxizhao@novix.science>
2026-08-24 16:34:55 +08:00
Bingxi Zhao (Frank)
ac18b75056 docs(llm): name two contracts the LightRAG convergence relies on
Both were load-bearing and neither said so.

`map_error` returns an existing `LLMError` *itself* rather than a
replacement — re-running the rules would demote a precise error to a
vaguer one, and the LightRAG adapter re-raises the terminal exception and
compares identity. That makes filling in `provider` an in-place write on
the caller's exception; it is the only field the function mutates.

The vision adapter passes `allow_image_fallback=False`, which is a
behaviour change rather than a tidy-up: a model that turns out not to
take images no longer gets a text-only retry. That fallback salvages an
answer elsewhere, but here the image *is* the question, so a description
produced without it would be invented and then indexed as fact.
2026-08-21 16:58:01 +08:00
NoxsMedia
7411315b6b fix: converge LightRAG transport failures and cancellation (#940)
* fix: bound LightRAG adapter retries

* fix: harden LightRAG retry boundaries

* fix: propagate Codex transport failures

* fix: converge LightRAG cancellation cleanup

---------

Co-authored-by: nox <work@noxsmedia.com>
2026-08-21 15:42:39 +08:00
Bingxi Zhao (Frank)
ef5ce9f952 fix: RAM issues 2026-08-02 13:07:32 +08:00
Bingxi Zhao (Frank)
f3779138ae fix: remove lightrag and unify llm & search config 2026-03-13 23:48:49 +08:00
Bingxi Zhao (Frank)
9c18bf0705 codebase cleanup and decoupled, introduce cli operation 2026-03-13 20:42:16 +08:00