Commit Graph
405 Commits
Author SHA1 Message Date
Byron Wang 4727b0df96 Merge main into knowledge boundaries and reconcile indexing contracts 2026-11-28 21:07:54 -08:00
MindOfqc cdb6e4ff13 test(api): bring the word extractor tests under strict pyrefly (#46387) 2026-11-29 03:35:18 +00:00
Byron Wang 80f814a09f Merge main into the knowledge retrieval boundary refactor 2026-11-28 14:59:51 -08:00
杰尼龟 da347d4e0a perf(api): avoid converting all keyword postings to sets for search (#46887) 2026-11-23 02:53:41 +00:00
JyongandClaude Fable 5.2 9cbb4e42e3 fix(api): bound upload reference parsing and stop locking keyword reads
- Scan Markdown preview links with linear regexes instead of rendering
  through python-markdown; a 40 KB crafted input took ~45 s before.
- Accept only UUID-shaped ids from free text and treat text-linked files
  as best-effort: lock them when the tenant owns them, ignore them
  otherwise, so foreign or stale preview links no longer fail writes.
  Structured references keep hard validation.
- Drop the exclusive Redis lock from the jieba keyword read path.
- Treat pipeline invoke-entity file cleanup as best-effort.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 15:35:50 +08:00
Byron Wang f182638e12 perf(rag): load only matched keyword segments 2026-11-06 13:10:50 +08:00
Byron Wang d9d1e9c2ba fix(api): align knowledge contracts and current keyword reads
Use locking current reads for keyword state under MySQL repeatable read, preserve concurrent updates and caller ORM snapshots, and align migrated test fixtures with their current application and repository contracts.
2026-11-04 20:53:36 +08:00
Byron Wang 24f8702174 Merge main into knowledge service boundary refactor 2026-10-30 16:48:14 +08:00
Byron Wang 87c6d94564 refactor(api): clarify knowledge service boundaries and resource lifecycles 2026-10-30 16:13:53 +08:00
Eddy ZHANG 0ebe43fee2 refactor(api): type-check vector store provider unit tests (#44458) 2026-10-21 09:01:19 +00:00
Eddy ZHANGandAsuka Minato e3e1c39315 refactor(api): bring vector store provider sources under type checking (#44237)
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
2026-10-19 00:16:02 +00:00
Asuka MinatoandCodex cd8301a468 ci: enable Ruff SIM108 (#44113)
Co-authored-by: Codex <codex@openai.com>
2026-10-15 09:45:52 +00:00
Asuka MinatoandCodex a4e0a0c10d ci: enable Ruff E712 (#44114)
Co-authored-by: Codex <codex@openai.com>
2026-10-15 07:37:57 +00:00
Byron.wang 8023189566 fix: use caller session for Qdrant annotation bindings (#43543) 2026-10-06 07:58:58 +00:00
Byron.wangandJyong a67cd87eb0 refactor(api): establish dataset application boundaries (#41729)
Co-authored-by: Jyong <jyong@dify.ai>
2026-09-29 08:42:31 +00:00
huoex1222-hubandhuoenxi 1366cadbb4 fix(api): report batch count as the progress denominator in Vector (#43005)
Co-authored-by: huoenxi <15811355218@139.com>
2026-09-28 02:29:58 +00:00
呆萌闷油瓶 74af4f2308 perf(api): reduce knowledge retrieval latency (#42673) 2026-09-24 06:50:36 +00:00
Asuka Minato 31dfa21f36 test: migrate RAG retrieval sessions and ORM models to SQLite (#40512) 2026-09-10 04:15:40 +00:00
非法操作andautofix-ci[bot] 8170a2a5f3 chore: more upload file size for paid user (#39967)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-06 03:23:16 +00:00
wangxiaolei db29caff2b feat: knowledge add more trace (#38959) 2026-07-24 02:27:16 +00:00
Byron.wangandWH-2099 ab3e4daa95 refactor: explicit DB session propagation across backend paths (#38559)
Co-authored-by: WH-2099 <wh2099@pm.me>
2026-07-15 06:48:28 +00:00
68d8328b9c chore: clean Db session from service (#38227)
Co-authored-by: chariri <w@chariri.moe>
Co-authored-by: WH-2099 <wh2099@pm.me>
2026-07-08 03:07:27 +00:00
Byron.wangandautofix-ci[bot] 2f0c6c10bd refactor: thread explicit sessions through app retrieval paths (#38309)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-02 17:00:47 +00:00
Yunlu Wen 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
Sven Weidenmann 4d8b6c7dc0 refactor: add missing @override decorator to remaining MCP, Jieba, embeddings, and misc subclasses (#36528) 2026-05-22 13:45:35 +00:00
-LAN- 0d500e6965 fix(api): allow LLM nodes to access retrieved knowledge files (#36175) 2026-05-14 13:09:25 +00:00
Asuka Minatoandautofix-ci[bot] 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
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 949f930698 fix: keep cleanup tasks resilient to billing API failures (#35600) 2026-04-27 08:51:09 +00:00
Asuka Minatoandautofix-ci[bot] 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
tmimmanuelandAsuka Minato 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
tmimmanuelandautofix-ci[bot] 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
Yunlu Wenandautofix-ci[bot] 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 54e51be665 fix: apply score threshold after reranking in hybrid search (#35263) 2026-04-16 06:21:11 +00:00
wdeveloper16 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
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
wangxiaoleiandautofix-ci[bot] 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
XHamzaXandVFootball Dev 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
carlos4s 86fd94767c refactor(api): use sessionmaker in relyt & tidb_vector VDB services (#34848) 2026-04-10 03:16:25 +00:00
dataCenter430 c5c5c71d15 refactor(api): type OpenSearch/Lindorm/Huawei VDB config params dicts with TypedDicts (#34870) 2026-04-10 00:34:34 +00:00
carlos4s d360929af1 refactor(api): use sessionmaker in pgvecto_rs VDB service (#34818) 2026-04-09 05:49:03 +00:00
1a4eb47e1d refactor(api): tighten types in trivial lint and config fixes (#34773)
Co-authored-by: tmimmanuel <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>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-08 23:14:44 +00:00
corevibe555 80a7843f45 refactor(api): migrate consumers to shared RAG domain entities from core/rag/entities/ (#34692) 2026-04-07 23:22:56 +00:00
Statxc c44ddd9831 refactor(api): type Chroma and AnalyticDB config params dicts with TypedDicts (#34678) 2026-04-07 13:27:12 +00:00
Statxc e645cbd8f8 refactor(api): type VDB config params dicts with TypedDicts (#34677) 2026-04-07 13:23:42 +00:00
Statxc 779cce3c61 refactor(api): type gen_index_struct_dict with VectorIndexStructDict TypedDict (#34675) 2026-04-07 13:17:20 +00:00
Statxc b5d9a71cf9 refactor(api): type VDB to_index_struct with VectorIndexStructDict TypedDict (#34674) 2026-04-07 13:17:04 +00:00