Bond Zhu and Bond Zhu
b3dd8ffcfc
chore(api): add breadcrumb logs around vector backend factory resolution
...
Some production chat requests intermittently park forever between the
vector_db whitelist query and TidbOnQdrantVectorFactory.init_vector's
first log line: the message row stays status=normal with an empty answer,
no error is recorded, and no timeout ever fires. Live captures place the
freeze inside Vector._init_vector's factory resolution, but the API runs
gevent workers and a parked greenlet is invisible to py-spy (default and
--native modes both show only idle hubs), so the exact parking statement
cannot be captured from outside the process.
INFO-level breadcrumbs added:
- vector_factory._init_vector: before/after get_vector_factory, with
tenant_id + dataset_id for correlating a hung request with its logs
- vector_backend_registry: cache-miss marker, and before/after ep.load()
with the entry point value (module about to be imported)
Decoding the log tail of the next hung request:
- "resolving..." absent -> parked before resolution
- "resolving..." only, no miss log -> parked on the cache-hit path or
inside logging itself (handler lock)
- cache miss, no "loading..." -> parked in entry_points() scan
- "loading...", no "... loaded" -> parked inside ep.load() import
(import lock / gevent interaction)
- "resolved...", no init_vector: -> parked at the factory call boundary
All lines fire at most once per Vector construction; the slow-path lines
fire only on per-process first resolution, so added volume matches the
existing init_vector breadcrumb. Diagnostic instrumentation; no logic
changes, cheap to revert.
2026-07-20 14:21:09 +08:00
linhongkuan and Xiyuan Chen
09eca00370
fix(api): isolate side-effect database writes ( #37895 )
...
Co-authored-by: FFXN <31929997+FFXN@users.noreply.github.com >
(cherry picked from commit d8f3be4bcd )
2026-07-12 21:53:31 -07:00
2112115962
chore: make AccountService.load_user use passed session ( #37764 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-24 07:29:12 +00:00
265dc54c51
fix(watercrawl): don't disable request timeouts with timeout=None ( #37685 )
...
Signed-off-by: Yufeng He <40085740+he-yufeng@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-22 03:08:58 +00:00
落尘 and GitHub
adfd820220
fix(watercrawl): bound client request timeouts ( #37515 )
2026-06-21 00:47:25 +00:00
c52eafe2ca
docs: enrich generated service API descriptions ( #37615 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-18 08:43:39 +00:00
0ea0647dd0
feat(agent): wire knowledge base retrieval into runtime ( #37577 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-17 09:27:38 +00:00
落尘 and GitHub
431d6bb983
fix(watercrawl): accept content type parameters ( #37500 )
2026-06-16 08:16:24 +00:00
落尘 and GitHub
fe64c5d4a8
fix(watercrawl): bound result download timeout ( #37495 )
2026-06-16 08:16:16 +00:00
de2ec990d8
chore: example to color the session ( #37402 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-15 18:06:24 +00:00
b61d39ae2b
chore(api): Fix several typing errors ( #37237 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-12 01:36:48 +00:00
Yunlu Wen and GitHub
84490179b0
feat: trace document retrieval ( #37283 )
2026-06-11 02:39:59 +00:00
0239b81cca
chore(api): convert MessagesCleanPolicy from ABC to Protocol ( #37171 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-08 09:55:52 +00:00
f15a8f02ef
ci: add flag for linter ( #37018 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-08 04:53:12 +00:00
呆萌闷油瓶 and GitHub
813bfea730
feat(api): support embedded Excel images in knowledge import ( #37104 )
2026-06-08 01:26:07 +00:00
e14cb209a4
chore: add missing @override decorator to api/core/rag/extractor ( #37013 )
...
Co-authored-by: mac <mac@1234.local >
2026-06-03 12:34:10 +00:00
71ffaacb58
fix(api): centralize remote file retrieval ( #36399 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-01 09:25:08 +00:00
de47d43b65
refactor: convert isinstance chains to match/case syntax ( #36862 )
...
Co-authored-by: krishkantiuj-ren <hiccup.cc.3@gmail.com >
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
2026-06-01 03:45:19 +00:00
d8571ce965
refactor: convert isinstance chains to match/case (part 4) ( #36274 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
2026-05-31 14:44:17 +00:00
Evan and GitHub
372a2e3e9c
refactor: convert isinstance chains to match/case (part 7) ( #35902 ) ( #36826 )
2026-05-29 09:40:33 +00:00
Sven Weidenmann and GitHub
4d8b6c7dc0
refactor: add missing @override decorator to remaining MCP, Jieba, embeddings, and misc subclasses ( #36528 )
2026-05-22 13:45:35 +00:00
-LAN- and GitHub
0d500e6965
fix(api): allow LLM nodes to access retrieved knowledge files ( #36175 )
2026-05-14 13:09:25 +00:00
chariri and GitHub
af4b9bfa8f
chore: Remove pyright in favor of pyrefly ( #36154 )
2026-05-14 05:49:08 +00:00
6facd9360c
chore: some match case ( #36080 )
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-05-12 14:45:58 +00:00
51a8f79d67
chore: DocumentSegment to Typebase ( #35635 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-12 07:02:17 +00:00
1a011dc14a
refactor: port DatasetProcessRule ( #31004 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-11 03:37:26 +00:00
f720a3bed2
fix: Image rendering in the knowledge base failed. ( #35914 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-05-09 10:06:01 +00:00
1f29565673
fix(rag): use doc_id dedup key for any provider, not only dify ( #35759 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-05 06:42:18 +00:00
4b7dc17546
fix: skip empty documents before vector embedding ( #35763 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-04 13:06:58 +00:00
zyssyz123 and GitHub
949f930698
fix: keep cleanup tasks resilient to billing API failures ( #35600 )
2026-04-27 08:51:09 +00:00
ef7ff3356d
refactor: port ChildChunk ( #30920 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-26 00:59:22 +00:00
ed8d3f3e8d
refactor(api): fix pyright errors in jieba, milvus, couchbase, oracle, and router ( #34938 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
2026-04-23 22:30:28 +00:00
77f8f2babb
refactor(api): tighten core rag typing batch 1 ( #35210 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-21 04:32:43 +00:00
3e876e173a
chore(api): adapt Graphon 0.2.2 upgrade ( #35377 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-18 11:16:24 +00:00
3193e8a712
chore: reorg imports ( #35308 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-16 08:50:02 +00:00
Ayush Baluni and GitHub
54e51be665
fix: apply score threshold after reranking in hybrid search ( #35263 )
2026-04-16 06:21:11 +00:00
ef28a63ad3
refactor(api): add null safety to extractor_processor and firecrawl ( #35209 )
...
Co-authored-by: tmimmanuel <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>
2026-04-14 18:23:20 +00:00
dataCenter430 and GitHub
fbedb60371
refactor: replace bare dict with typed annotations in core rag module ( #35097 )
2026-04-14 06:16:16 +00:00
wdeveloper16 and GitHub
eeebedcfe8
refactor: replace bare dict with dict[str, Any] in core provider services and misc modules ( #35124 )
2026-04-14 03:03:08 +00:00
wdeveloper16 and GitHub
9ed8a5ed73
refactor: replace bare dict with dict[str, Any] in model_manager and … ( #35083 )
2026-04-13 17:14:08 +00:00
wdeveloper16 and GitHub
06b63d65d1
refactor: replace bare dict with dict[str, Any] in rag extractors ( #35068 )
2026-04-13 14:05:21 +00:00
wdeveloper16 and GitHub
1b935a367f
refactor: replace bare dict with dict[str, Any] in watercrawl client ( #35063 )
2026-04-13 13:01:32 +00:00
ae898652b2
refactor: move vdb implementations to workspaces ( #34900 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: wangxiaolei <fatelei@gmail.com >
2026-04-13 08:56:43 +00:00
fc64427ae1
fix: fix qdrant delete size is too large ( #35042 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-13 07:59:06 +00:00
2108c44c8b
refactor(api): consolidate duplicate RerankingModelConfig and WeightedScoreConfig definitions ( #34747 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-13 05:53:45 +00:00
sxxtony and GitHub
7dd507af04
refactor: migrate SegmentAttachmentBinding to TypeBase ( #34810 )
2026-04-13 05:22:43 +00:00
596559efc9
fix(rag): include is_summary and original_chunk_id in default vector projection ( #34950 )
...
Co-authored-by: VFootball Dev <vfootball@example.com >
2026-04-13 03:11:08 +00:00
wdeveloper16 and GitHub
12814b55d2
refactor(api): migrate core RAG layer to SQLAlchemy 2.0 select() API ( #34965 )
2026-04-11 16:32:20 +00:00
volcano303 and GitHub
c41b62f47e
refactor(api): type format_preview returns with TypedDicts in index processors ( #34893 )
2026-04-10 05:01:01 +00:00
carlos4s and GitHub
86fd94767c
refactor(api): use sessionmaker in relyt & tidb_vector VDB services ( #34848 )
2026-04-10 03:16:25 +00:00