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#1461Fixes#1458Fixes#1451Fixes#1448Fixes#1392Fixes#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>
* 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>
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.