Commit Graph
144 Commits
Author SHA1 Message Date
Harsh Kashyap af61e3fcd6 fix(api): validate embedding check sample count (#19574)
Fix #19567 — validate check_num before sampler use. Non-integer/zero/negative values now return clear argument errors.
2026-09-14 13:53:11 +08:00
Muhammad Zuhaib Zahid 74a49b5e4e Fix: keep a reference to the qqbot dispatch task so replies are not dropped (#19029)
Fix QQ Bot losing replies — create_task without strong reference let tasks be GC'd mid-execution.
2026-09-14 12:58:26 +08:00
Sourav Rajvi b15b159d07 feat(api): add image_update_mode for chunk image updates (#18889)
Fix #18585 — chunk PATCH now supports image_update_mode: append (default), replace, remove.
2026-09-14 12:57:13 +08:00
Yingfeng 1f5d33333a Add claim/evidence to tree/pageindex compilation pipeline (#19267) 2026-09-11 22:37:33 +08:00
Harsh Kashyap 19ec6245c4 fix(api): authorize task cancellation by dataset access (#19359) 2026-09-11 09:53:09 +08:00
Liu AnandJin Hai ba575b0ce2 Test: Adjust the priority of some test cases from P1/P2 to P3. (#19461)
### Summary

as title

Co-authored-by: Jin Hai <haijin.chn@gmail.com>
2026-09-09 23:58:00 +08:00
euvre 3931c69a5b fix(api): return "search not found" instead of IndexError when updating a missing search (#19380) 2026-09-09 10:02:06 +08:00
Gonghan-Princess 24c115bf92 feat(channels): allow chat channels to connect to agents (#19307) 2026-09-08 18:44:59 +08:00
buua436 7b01906d45 fix: filter structure alteration by document products (#19346) 2026-09-08 13:23:28 +08:00
MarMar Labs 6c280f10a0 fix(api): accept repeated memory_type and tenant_id filters when listing memories (#19281)
Fix GET /api/v1/memories list filters — memory_type, tenant_id, owner_ids, ids now read all repeated query keys (was only first). Matches /datasets//documents pattern.
2026-09-08 11:48:16 +08:00
Manan Bansal 03d861a926 fix(api): allow setting language on dataset creation (#15703) (#16242)
Fix #15703 — dataset create endpoint now accepts language.
2026-09-08 10:53:40 +08:00
MarMar Labs fa52804fa3 fix(api): return the full error tuple when both id and ids are given to list documents (#19280)
Fix dataset document list endpoint unpack error when both id and ids provided — helper returned 2 values but caller expects 4. Now returns 4.
2026-09-07 10:58:05 +08:00
Lem0nTea2002 bef34757b2 fix(agent): await MCP transport cleanup before stopping event loop (#19093)
Fix MCP session cleanup — now properly awaits server task and closes transport contexts/executors before stopping event loop. Wakes queued callers on shutdown.
2026-09-04 17:57:50 +08:00
buua436 f4bafa1596 fix: exclude empty documents from structure alteration (#19246) 2026-09-04 17:06:38 +08:00
Lynn 2f8dab2199 Fix: upload image to model in chat (#19257) 2026-09-04 16:37:25 +08:00
mkaaadandcoderabbitai[bot] d29a4fc26b fix(py-go-connector): enforce kb authorization in rebuild (#19190)
Based on community PR #15272 by @rene0422

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-09-03 12:01:28 +08:00
Sbaaoui Idriss f8fc130162 fix(searchbots): enforce KB authorization before retrieval (#19165) 2026-09-03 11:10:57 +08:00
Yingfeng a11c27e01d Adjust navigation tools for agentic search (#19172) 2026-09-03 10:43:00 +08:00
Yash Raj Pandey bfccb5177d Stop splitting resume documents into per-page parsing tasks (#18713) 2026-09-03 10:40:29 +08:00
Wang Qi 6ec9c6a737 Fix: get rid of graphrag raptor in parser_config in REST API (#19161) 2026-09-03 09:40:52 +08:00
buua436 cf441d4c72 fix: align wiki alteration provenance (#19140) 2026-09-02 18:03:15 +08:00
MarMar Labs cd27ae4c6e fix(memory): put the keyword weight in the text slot of the fusion expression (#18989)
Fix memory search hybrid weights inverted (slot 1 is vector weight, not keyword). Now matches build_fusion_expr. At 0.7, memory search becomes keyword-dominant (was vector-dominant).
2026-09-01 16:14:36 +08:00
Martin Civáň 867e4187eb Fix don't send an empty tools array (#19015)
Fix non-streaming chat sending empty tools=[] (rejected by strict providers). Restored mdl.is_tools check and added helper to omit tools field when unbound.
2026-09-01 13:55:37 +08:00
MarMar Labs bf5cf26df6 fix(test): give the rag_agent dialog stub the retrieval settings it now reads (#19081) 2026-09-01 12:25:38 +08:00
euvre 2af732d607 fix(chat): images uploaded in chat UI were ignored by vision models (agentic loop / Go attachment drop) (#18884) 2026-08-31 19:35:02 +08:00
Martin Civáň 1757425903 fix: retrieve with the assistant's configured settings (#19016)
Fix agentic search ignoring chat retrieval settings — now passes knn_top_k, weights, threshold, and top_n. knn_top_k critical for HNSW recall on large indices.
2026-08-31 19:03:28 +08:00
MarMar Labs 5e1898e293 fix(dify): search the dataset owner's index, not the caller's (#18987)
Fix team-member Dify retrieval searching wrong tenant index. Changed tenant_id to kb.tenant_id in both retrieval_by_children and kg_retriever.
2026-08-31 17:11:40 +08:00
georgelichenandChen Li f300b154b0 fix(chat): keep reasoning chats grounded when LLM lacks tool calling (#18983)
Fix reasoning + KB requests using models without tool-calling — now fall back to async_chat RAG path instead of answering from general knowledge. 

Co-authored-by: Chen Li <george_lichne@163.com>
2026-08-31 14:28:12 +08:00
b149a392f4 fix(api): return parsing-status counts at the top level of each dataset (#17595) (#17611)
Fix #17595 — parsing status counts now return as top-level fields per documentation, not nested under parsing_status.

Signed-off-by: Anai-Guo <antai12232931@anaiguo.com>
Signed-off-by: Anai-Guo <antai12232931@outlook.com>
Co-authored-by: Anai-Guo <antai12232931@anaiguo.com>
Co-authored-by: Jin Hai <haijin.chn@gmail.com>
2026-08-31 13:52:08 +08:00
Yingfeng 862ee95df2 Refine agentic search (#18798) 2026-08-28 23:56:14 +08:00
天海蒼灆andCursor 9ca62e8da3 fix: include filename in file download Content-Disposition header (#17105)
### Summary

GET /api/v1/files/{id} now sets attachment filename for both Python and
Go handlers so browsers can save downloads with the correct name.

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 14:42:04 +08:00
Chakshu Dhannawat 146765f32e fix(agentic_rag): include configured system prompt in RAGTools.sys_prompt() (#18927)
Fixes #18833. 

When the reasoning level is enabled, `dialog_service.rag_agent()` builds a custom system prompt and passes it to `RAGTools`. `RAGTools.sys_prompt()`, however, returned only the router instructions, so the configured system prompt was dropped from the outer LLM.

This change prepends the configured system prompt to the router prompt when one is provided, and adds regression tests.
2026-08-28 12:10:47 +08:00
ChendongPang 03d0ad2ace fix(api): derive SQL retrieval tenant from dataset owner, not chat tenant (#18518) 2026-08-28 09:57:12 +08:00
Lynn b224f338fa Fix: rm default model in create and display builtin model (#18875) 2026-08-27 19:00:05 +08:00
RocandJin Hai 8b75e86b5f fix: support .wmf file extension case-insensitively and remove duplicate avi (#15498)
### Summary

Fix `.wmf` file type detection by matching lowercased filename
normalization in both Python and Go extension checks.

This PR also removes a duplicate `avi` entry from the Python visual file
type regex.

---------

Co-authored-by: Jin Hai <haijin.chn@gmail.com>
2026-08-27 15:58:55 +08:00
SYED ALI ABBAS RAHIL 82e4147b83 fix(api): honor dialog system prompt in reasoning-enabled chat (#18842)
### Problem

When a chat assistant has a configured system prompt and the reasoning
level is set to anything other than `NONE`, the request goes through
`rag_agent()` / the agentic RAG harness. That path generated the final
answer with a fixed `FINAL_ANSWER_SYSTEM` prompt and never injected the
user-configured system prompt, so the assistant ignored
role/tone/language instructions (reported in #18833).
2026-08-27 14:53:06 +08:00
Souravrajvi0 004b3c4845 fix(web): surface dataset navigation tree load failures (closes #17301) (#17668)
Fix Artifacts Tree tab to show error message on navigation API failure instead of misleading "No navigation nodes". Added error handling in frontend, i18n strings, and backend unit tests. 6 tests pass.
2026-08-26 10:42:18 +08:00
Wang Qi 92c69db79e Refactor: expose knn top_k and knn num_candidaties (#18737)
Follow on #18300
2026-08-25 17:16:36 +08:00
Mpider-San aa57022bfd Fix: cross-KB document id collision in data source sync (#18116) (#18244)
### What problem does this PR solve?

Closes #18116.

Fix cross-KB document ID collision (#18116). Older ID derivation excluded kb_id, causing two KBs to fight over one row. Unified derivation to be KB-scoped, with fallback for existing rows. Stranded rows are reclaimed, dataset deletion now cleans up state, and upgraded instances update in place. Tests added.
2026-08-25 15:15:46 +08:00
Paul Yao 647cddc3cc fix(admin): display AWS S3 status correctly (#17300)
Related to #17294
2026-08-25 12:24:24 +08:00
Ali Farhan 03d2835731 fix(api): make the API-key subject carve-out on POST /messages reachable (#18026)
### Summary

Fix add_message so API-key callers can pass user_id (previously ignored because Python checked a Go-only flag). Now uses g.auth_type == AUTH_API. JWT/session callers stay bound to the authenticated principal. Tests added; backward compatible.
2026-08-25 12:06:51 +08:00
Wang Qi 4c6f745c1e Refactor: rename prefetch_size to rerank_candidates (#18718) 2026-08-25 11:35:53 +08:00
Yash Raj PandeyandJin Hai 71413c9fc6 fix: classify .wmf files as VISUAL instead of OTHER (#15822)
Signed-off-by: Yash Raj Pandey <yashpn62@gmail.com>
Co-authored-by: Jin Hai <haijin.chn@gmail.com>
2026-08-25 11:12:45 +08:00
Bharadwaj PendyalaandJin Hai 89fc1abac9 fix(chat): stop rag_agent forwarding message bookkeeping keys to the provider (#18663)
### Summary

Fixes #18653. Groq rejects every chat request on v0.27.0 with `property
'conversationId' is unsupported`, while the same chat works on Ollama.

Closes #18653

Co-authored-by: Jin Hai <haijin.chn@gmail.com>
2026-08-25 10:36:27 +08:00
Sbaaoui Idriss bfe07974dc fix: normalize model types in _factory_model_types and update calculate_model_type (#18685) 2026-08-25 09:46:46 +08:00
Wang Qi 5659476a30 Fix: correct rerank #17296 - add prefetch_size (#18300) 2026-08-24 16:09:07 +08:00
Sevenzuo aa49146a63 fix: preserve empty chat fields on GaussDB (#18445) 2026-08-21 16:45:10 +08:00
Jiang, Guomin 09af859357 fix(metadata): batch large document ID filters (#17394)
## Summary

- batch `DocMetadataService._search_metadata()` requests whose
`condition["id"]` list exceeds 10,000 IDs
- combine the per-batch results so metadata reads, summaries, and batch
updates avoid a single oversized Elasticsearch `terms` query
- add regression coverage for 20,001 IDs, verifying three bounded
backend searches and complete metadata results

Fixes #17393
2026-08-21 15:21:45 +08:00
Lynn b8b35aa9ab Fix: kimi k3 temperature (#18564) 2026-08-21 10:11:06 +08:00
0067470903 fix: apply order_by return value in deep-pagination helpers (unordered OFFSET/LIMIT can skip/dupe rows) (#17325)
### Summary

The fix is one line per helper — assign the `order_by(...)` result back
so the
ordering is actually applied to the query.

Co-authored-by: rsnetworkinginc <rsnetworkinginc@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-20 19:39:02 +08:00