Commit Graph
763 Commits
Author SHA1 Message Date
Lynn 4c97c9ad64 Fix: remove deprecated functions (#19449) 2026-09-10 20:04:39 +08:00
Wang Qi a13593097b Refactor: Add RERANK_TOKEN_LIMIT_MODE = truncate (default) / passthrough / raise_error (#19404) 2026-09-09 09:55:00 +08:00
Gonghan-Princess 24c115bf92 feat(channels): allow chat channels to connect to agents (#19307) 2026-09-08 18:44:59 +08:00
ÖnderyandCursor 38230c45d3 feat(llm): forward OpenAI user on embedding and parse requests (#19065)
Add user attribution to embedding calls — forwards user on OpenAI-compatible providers via current_llm_user(). Excludes LocalAI/Xinference (reject unknown fields). Accepts user_id on ingest/parse/chunk endpoints; redacts from logs. Omitted = unchanged. Go/vision/TTS/ASR out of scope.

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 19:30:33 +08:00
buua436 ef8b424888 fix: normalize reasoning stream markers (#19216) 2026-09-03 19:06:53 +08:00
euvre 4bb522d11d fix(rag): unify parser_config delimiter defaults on a single constant (#19058) 2026-09-03 17:16:37 +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
Wang Qi 51da97784b Refactor: get rid of graphrag and raptor during task creation (#19194) 2026-09-03 11:15:58 +08:00
Yash Raj Pandey bfccb5177d Stop splitting resume documents into per-page parsing tasks (#18713) 2026-09-03 10:40:29 +08:00
880876f60f fix(agentic_rag): table-aware retrieval truncation fixes + action-session loop guards (#19112)
Fixes a family of table-retrieval truncation bugs and an action-session
infinite loop in the agentic RAG medium path, all root-caused on a
tabular-reasoning question

1. action_session turn cap enforced (action_session.py)
_route checked _pending_calls before attempts, so a model that kept
emitting tool calls never hit the 4-turn finalize — a single session
could burn the whole pass budget (219 retrievals / 600s observed). Added
_route_after_tool: after a tool batch, the turn budget is checked and
the session converges to finalize instead of looping back to run_action.
2. Table chunks kept whole through retrieval (search.py,
text_processing.py, action_session.py)
Three truncation points hid mid-table answer rows from the session
model:
- grep_search narrowed table chunks to 700 chars
(_GREP_OUT_CHARS_PER_CHUNK)
- _narrow_content only passed HTML tables (<table>/<tr/<td) whole —
markdown pipe tables were sentence-window narrowed
- _admit_evidence truncated the model-facing output to 1200 chars even
though the pool held the full chunk,non-table chunks keep the existing
truncation paths unchanged.

3. SCA sees more evidence (agentic_rag_graph.py, sufficient_context.py)
_SCA_VIEW_CAP 24 → 60; _SCA_CLAIMS_CONTEXT_MAX 9000 → 48000;
table-bearing evidence anchors rendered in full (bounded by the context
budget).

4. Supporting: runtime instrumentation for rounds/slots/retrievals, LLM
token accounting, slot-evidence preservation through SCA, dedup
checkpoints. Timeout/budget constants restored to upstream defaults.

---------

Co-authored-by: Loong <213221738@seu.edu.cn>
Co-authored-by: Hermes Agent <hermes-agent@localhost>
2026-09-01 21:58:29 +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
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
Josh Baptiste 5af3bf2f4b Fix: KnowledgebaseService.dfs_update crashes on stored None parser_config values (#15964)
Fix #15962 — replace bare assert isinstance in KnowledgebaseService.dfs_update with safe conditions. Stored None values no longer crash table-parser parses. Matches DocumentService fix from #12815.
2026-08-31 16:19:54 +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
Yingfeng 862ee95df2 Refine agentic search (#18798) 2026-08-28 23:56:14 +08:00
abdabf883b fix(rag): key Infinity field_map by original column names, not pinyin (#18318)
Fixes #18287

Fix SQL retrieval field mapping: field_map used pinyin keys but chunk_data stored original names. Now keyed by original name on Infinity/OceanBase/SereneDB. Non-ASCII columns now work.

Co-authored-by: Taranum01 <Taranum01@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Taranum01 <50813317+Taranum01@users.noreply.github.com>
Co-authored-by: Taranum01 <taranumwasu@users.noreply.github.com>
2026-08-28 15:15:07 +08:00
Jin Hai 191d62a698 Py: add update_time in select list when list data sync logs (#18867)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-08-28 14:22:37 +08:00
MarMar Labs d132352edb fix(file): stop is_parent_folder_exist raising on a missing parent (#18930)
Fix POST /api/v1/files 500 error when parent_id doesn't exist. Removed dead delete_folder_by_pf_id call (mismatched args, no tenant scope). Now returns False and documented error response.
2026-08-28 13:52:35 +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
Wang Qi fb5ee011d3 Fix: hide skills folder in REST API (#18859) 2026-08-27 16:21:10 +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
Aeovy 5b3a66fd8c fix(mineru): Fix MinerU Rendering Stability, Error Visibility, and Code Block Parsing Issues (#18617) 2026-08-26 20:12:41 +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
Wang Qi 4c6f745c1e Refactor: rename prefetch_size to rerank_candidates (#18718) 2026-08-25 11:35:53 +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
Wang Qi 5659476a30 Fix: correct rerank #17296 - add prefetch_size (#18300) 2026-08-24 16:09:07 +08:00
Dmitryanddarkdi c12abf3f7f Remove three no-op self-assignments (#18652)
### Summary

three no-op lines should be removed

Co-authored-by: darkdi <rantovov5@gmail.com>
2026-08-24 11:56:05 +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
Wang Qi 169822105f Fix knowledge compilation to use pipeline LLM instead of default tenant LLM (#18572) 2026-08-21 09:58:26 +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
Wang Qi ae9f1e7c5b Fix reasoning not working in multiple model chat (#18457) 2026-08-19 09:32:05 +08:00
Wang Qi b5ad30ed43 Fix pdf cancel at task level not document level, multiple record logs (#18435) 2026-08-18 19:29:18 +08:00
qinling0210 486065d878 Fix: use Infinity connPool.get_conn() in metadata filter push-down (#18438) 2026-08-18 17:37:28 +08:00
peewee92 89f3611248 fix(agent): make tag metadata searchable and sortable in agent list (#18313) 2026-08-18 17:17:03 +08:00
Wang Qi 75f737de67 Refactor: make page number readable (#18409) 2026-08-18 13:27:04 +08:00
zws202606 d02723ca76 feat: Gaussdb adaptation (#17703) 2026-08-18 09:53:11 +08:00
S c6ba54bc72 fix: stop three recurring errors on doc delete (#17685) (#17686)
Follow-up to #17526 ("Refactor: merge dataset scope graph"), which introduced two code paths that touch Infinity columns the deployed schema does not declare. This PR makes the runtime robust against the old schema while also adding the new column to the new schema so freshly created tables are correct.
2026-08-16 09:25:51 +08:00
euvre b1de7e8136 Fix: allow datasets sharing a base embedding model to be searched together (#18166) 2026-08-13 09:51:44 +08:00
euvre fdb6b5fdd2 fix: search files recursively within current folder subtree (#17779) 2026-08-12 14:43:06 +08:00
qinling0210 b73aac38f4 Update infinity json_extract_string usage (#18139)
### Summary

Update infinity json_extract_string usage. 

Example: json_extract_string(chunk_data, '$.name') LIKE '%Alice%'
2026-08-12 10:59:22 +08:00
buua436 6f50e478e0 fix: exclude disabled documents from dataset structures (#18041) 2026-08-10 17:50:34 +08:00
buua436 c0582b8e18 fix: handle disabled documents in dataset structures (#18033) 2026-08-10 13:52:49 +08:00
Wang Qi 373050c7ca Fix agentic chat not working in chatbot (#18035) 2026-08-10 13:07:15 +08:00
Lynn 7433fbb77b Fix: exclude unauthorized memory/dataset from list results (#18006) 2026-08-10 10:16:56 +08:00
Wang Qi 2fef38f955 Fix answer in think (#17998) 2026-08-07 17:30:14 +08:00
Wang Qi 993b41b7b1 Append attachments content to last message (#17993) 2026-08-07 16:04:19 +08:00
buua436 42329f140d feat: add agent filter counts (#17984) 2026-08-07 15:29:07 +08:00