Commit Graph

1864 Commits

Author SHA1 Message Date
buua436
66f2c84c3f fix: hide resume parser option (#17923) 2026-08-06 14:07:24 +08:00
euvre
ae66eb835a fix(web): file list total count doesn't match displayed rows (#17747) 2026-08-06 13:53:42 +08:00
euvre
e9dd0314f0 Fix: dataflow log sheet shows the previous run's log in Go mode (#17790) 2026-08-06 13:51:50 +08:00
euvre
0054657c7c fix: keep agent chat history anchored when resizing the input box (#17834) 2026-08-06 13:51:22 +08:00
buua436
97f9ae5896 refa: unify wiki example naming (#17910) 2026-08-06 13:24:27 +08:00
buua436
d16b2556a2 fix: split wiki template instruction and example (#17891) 2026-08-06 09:41:57 +08:00
chanx
d5000de534 fix(models-section): defer auto-fetch catalog until base_url is set for self-hosted providers (#17804) 2026-08-06 09:41:26 +08:00
Jin Hai
cf13082a1a Revert "feat: Go knowledge compiler with scheduler-driven dataset compilation" (#17897)
Reverts infiniflow/ragflow#17881
2026-08-05 21:50:28 +08:00
Zhichang Yu
14b943a04a feat: Go knowledge compiler with scheduler-driven dataset compilation (#17881)
Ports the dataset knowledge compilation (wiki/graph/tree/mindmap) to the
Go scheduler with a status contract, aligns wiki storage/retrieval with
Python, and sizes prompts by content_length.
2026-08-05 20:00:42 +08:00
chanx
f3be551241 fix(agent): make global variable form fields reactive to i18n language changes (#17883) 2026-08-05 19:39:54 +08:00
chanx
b2fea8ee66 fix: enhance agent tags display with tooltip for better visibility (#17879) 2026-08-05 19:27:05 +08:00
chanx
91dcecd2b9 Fix: applying model config in one multi-chat card no longer overrides sibling cards (#17866) 2026-08-05 17:11:33 +08:00
chanx
fe02f5402f feat: add more file type preview support in document viewer (#17872) 2026-08-05 17:09:03 +08:00
balibabu
fd6d5faceb Fix: Remove CompilationTemplateFormField from dataset setting page. (#17852) 2026-08-05 15:59:57 +08:00
balibabu
affad91b08 Fix: Add an icon to the tag on the agent card to distinguish it from the wiki card type. (#17847) 2026-08-05 15:58:06 +08:00
euvre
0a444343b9 Fix: dataset tag file setting cannot be saved (#17428) 2026-08-05 15:55:34 +08:00
balibabu
f5cdd0160e Fix: Switching back and forth between the wiki template's custom options caused the Instructions to disappear. (#17805) 2026-08-05 10:57:25 +08:00
balibabu
b0061fb4cc Feat: Remove the pageindex option from the extraction operator. (#17826) 2026-08-05 10:57:10 +08:00
EthanZhang
bdcd8aadde feat(chat): add Querit web search provider (#17813) 2026-08-05 09:54:46 +08:00
balibabu
4d9c62ab39 Fix: The tool icon for the agent operator created from the template is not clickable. (#17794) 2026-08-04 17:18:28 +08:00
chanx
404b47c79e Fix: Increase the height of the system prompt text area in Memory. (#17793) 2026-08-04 16:08:13 +08:00
balibabu
a18853abea Fix: The dataset for the retrieval operator of the agent created from the template cannot be selected. (#17760) 2026-08-04 15:22:26 +08:00
chanx
912a72874e fix(file-manager): resolve knowledge base names in link-to-dataset dialog for correct optimistic update (#17781) 2026-08-04 15:16:16 +08:00
Wang Qi
61dd263230 Fix agent stop chat should not cancel the task (#17769) 2026-08-04 13:31:57 +08:00
chanx
190b903311 Fix: Resolved issue where the default model could not be deleted. (#17755) 2026-08-04 10:37:20 +08:00
Lynn
11b2dfcfdd Fix: handle llm_setting switch (#17745) 2026-08-04 10:02:14 +08:00
Haruko386
9adcd59586 fix(provider): support editing fetched model types before save (#17728)
### Summary

As title

now can edit
2026-08-03 18:07:41 +08:00
euvre
8b83c52966 fix(web): MCP edit dialog cancel/save buttons not closing (#17713) 2026-08-03 17:53:25 +08:00
balibabu
f116001b1d Fix: The agent version page exported an incorrect DSL format. (#17736) 2026-08-03 17:52:53 +08:00
buua436
3e7cfbe052 refa: simplify RAPTOR tree clustering and configuration (#17614) 2026-08-03 17:46:50 +08:00
buua436
8ac047d11a fix: synchronize chat model configuration (#17717) 2026-08-03 16:43:53 +08:00
balibabu
10db22c756 Fix: Every variable in the chat settings is required. (#17727) 2026-08-03 16:41:47 +08:00
Kevin Hu
3b4a96d421 Refactor: refine wiki plan procedure. (#17579)
### Summary

Refine wiki plan procedure.

---------

Co-authored-by: Yingfeng Zhang <yingfeng.zhang@gmail.com>
Co-authored-by: buua436 <sz_buua@foxmail.com>
2026-08-03 16:03:17 +08:00
balibabu
62457075d4 Fix: Accidentally deleted the previously selected chat. (#17710) 2026-08-03 13:45:35 +08:00
balibabu
5aa60cbb67 Fix: Deleting temporary chat resulted in an error. (#17694) 2026-08-03 11:49:12 +08:00
Zhichang Yu
29287ef74b refactor(knowledge_compiler): derive variant from template kind via single template id (#17630)
## Summary

Refactor the Go `KnowledgeCompilerComponent` so its parameter is a
**single string template id** instead of a DSL-level `variant` (or
plural group id list). The `variant` is no longer in the DSL — it is now
**derived at runtime from the resolved compilation template's `kind`
field**.

This aligns the Go ingestion port with the frontend Compiler operator,
which emits a singular `compilation_template_group_id` and does not
write `variant` into the generated `compiler.json`.
2026-07-31 18:01:55 +08:00
balibabu
4f058667ff Feat: Remove "page index" and "use kg" from chat and retrieval form. (#17627) 2026-07-31 16:40:53 +08:00
balibabu
ec7a9797cb Fix: The wiki's claim card does not display the title. (#17626) 2026-07-31 16:28:55 +08:00
balibabu
51fe08712e Fix: The index textarea in the wiki template can be enlarged. (#17613) 2026-07-31 14:11:26 +08:00
balibabu
b8117812e4 Fix: Cross-language dropdown menu options translation error. (#17615) 2026-07-31 14:11:04 +08:00
buua436
44e13d1cb6 feat: add LLM-guided semantic rechunking for knowledge compilation (#17546) 2026-07-31 13:33:30 +08:00
chanx
e66cfe1372 fix(dataset): apply horizontal layout to auto-keywords and auto-questions form fields (#17608) 2026-07-31 13:20:40 +08:00
chanx
a68db44a6a fix(dataset): update error message for document deletion to use correct translation key (#17603) 2026-07-31 13:20:25 +08:00
Jack
8546eb62bf Feat(ingestion): add canvas pipeline debug (dry-run) mode with View result log (#17538)
## Summary
Adds a side-effect-free DataFlow canvas **debug (dry-run) mode** plus a
**debug run log with a "View result" panel**, so a canvas can be
executed synchronously and inspected end-to-end (per-component progress
and parsed chunks) without persisting anything.

### Dry-run execution (inline parsed chunks)
- `task/debug.go`: `NewDebugTaskContext` builds an in-memory
`TaskContext` with **`KB.ID == ""` — the single debug signal used across
the ingestion pipeline**. A canvas debug run has no knowledgebase, and
production ingestion always supplies one, so `kb_id == ""` occurs ONLY
in debug mode. Components gate their own side effects on this signal
without any dedicated debug vocabulary (the former `CANVAS_DEBUG_DOC_ID`
marker constant is removed).
- `task/pipeline_executor.go`: `validateTaskContext` no longer requires
a KB when `KB.ID == ""` (debug); debug runs return `collectDebugOutput`
(chunks) instead of a no-op; uploaded bytes are delivered as
`inputs['binary']` for doc-less runs; `injectDebugPageCap` caps the
parser to the first pages for a fast preview via the production
`override_params` channel (Parser cpnID + family).
- `component/tokenizer.go`: `shouldHaveEmbedding` skips embedding when
`kb_id == ""` — the embedder is configured on the knowledgebase, so a
debug run has nothing to resolve against and stays side-effect free.
- `chunker/register.go`: chunk images are uploaded to MinIO only when a
KB is present (persist run). **In debug mode the raw image bytes are
intentionally dropped (`delete(ck, "image")`)** — the debug preview does
not render chunk images, and dropping the bytes keeps them out of memory
and out of the Redis-stored debug log. This is a deliberate trade-off,
not an oversight.
- `component/file.go`: pass through in-memory binary bytes, skipping
`doc_id` -> storage resolution.
- `handler/agent.go` + `agent_webhook.go`: detect `dataflow_canvas` and
run a sync debug returning chunks inline on the existing
chat/completions endpoint; reject DataFlow canvases from webhooks (fixes
the previously dead `== "DataFlow"` check; mirrors Python
`agent_api.py`).
- `parser_dispatch.go`: export `ParserFileFamily` for the executor's
page-cap injection.

### Debug run log + "View result"
Mirrors Python's debug-log contract so the front-end can replay each
component's progress and parsed output:
- `task/debug_log_sink.go`: a `DebugLogSink` records every component's
lifecycle into a `[{component_id, trace}]` array (each trace entry
carries `message`, `progress`, `timestamp`, `elapsed_time`). `Flush`
appends a terminal `END` marker whose first trace message is non-empty
so the front-end detects completion. On failure the END marker is
prefixed `[ERROR]` yet still carries the run, so the failure timeline
renders instead of being stuck empty. Timestamps and `elapsed_time` are
in seconds (matching the rest of the app).
- `task/debug_result_dsl.go`: `BuildDebugResultDSL` builds the `dsl` the
END marker carries — the Go analogue of Python's `Graph.__str__` +
END-marker `dsl` in `rag/flow/pipeline.py`. It combines the static DSL
structure (component_name / downstream / params / graph.nodes) with the
run output map (`output["state"][<id>]`) to emit, per component,
`obj.params.outputs[<format>].value` (chunks / text / json / html /
markdown) — the exact keys the front-end `dataflow-result` page reads to
render each step's parsed chunks. Raw embedding vectors (including the
dimension-scoped `q_<dim>_vec` keys) are stripped so the stored log
stays Python-scale.
- `task/pipeline_executor.go`: after the run, attach the built `dsl` to
the END marker via the `ResultSink` capability.
- `handler/agent.go`: `runCanvasPipelineDebug` generates a stable
`message_id` up-front and always flushes the log (success or failure);
`respondWithDebugResult` returns `message_id` in **both** the success
and the error envelope so the front-end can poll the log. The debug-log
endpoint `GET /agents/:id/logs/:message_id` serves the array.
- `web/src/pages/agent/hooks/use-run-dataflow.ts`: on a run failure,
also surface `message_id` via `setMessageId` so the log sheet renders
the failure timeline (the `[ERROR]` END marker is already written).
Guarded by `if (msgId)`, so it is a safe no-op when the back-end does
not return an id.

## Behavioral notes
- Debug parses only the first pages (`debugPageCapPages`) for a fast
preview; an explicit `pages` cap already present in the ParserConfig is
respected.
- Debug mode does not keep chunk images (see above) and does not compute
embeddings — it exercises parse + chunk only.

## Test plan
- Go: `debug_test.go`, `debug_log_sink_test.go` (trace pairing, END
marker, `[ERROR]` prefix, fractional-second timestamp/elapsed_time, size
caps, and a real-pipeline test asserting the END-marker `dsl` carries
non-empty per-component `params.outputs` with chunks),
`debug_result_dsl_test.go` (flat and real nested `output["state"]`
shapes, vector stripping, format priority),
`debug_pages_integration_test.go`, `pipeline_executor_persist_test.go`,
`handler/agent_pipeline_debug_test.go`, `handler/agent_logs_test.go`
(incl. `TestRunCanvasPipelineDebug_ErrorStillExposesMessageID` /
`TestRespondWithDebugResult_ErrorCarriesMessageID` locking `message_id`
on failure), plus updates to `agent_test.go` / `agent_webhook_test.go` /
`chunker/image_upload_test.go` / `tokenizer*.go`.
- `go build ./...` and `./build.sh --test` for affected packages.

🤖 Generated with [CodeBuddy Code](https://cnb.cool/codebuddy)

---------

Co-authored-by: CodeBuddy Code <noreply@tencent.com>
2026-07-31 13:10:08 +08:00
chanx
c6f946a562 refactor(setting-model): migrate SoMark to generic provider card withmodel-level extra fields (#17582) 2026-07-31 11:35:35 +08:00
Wang Qi
2c6da4113d Fix: multiple model chat pass-in session_id, and do not save session. (#17581) 2026-07-31 11:25:29 +08:00
chanx
cd964dd700 Fix: delete base url default value in FunASR (#17596) 2026-07-31 11:24:42 +08:00
balibabu
569a29500f Fix: The save interface is continuously called without any operation being performed on the agent page. (#17576) 2026-07-31 11:23:12 +08:00
euvre
9519ad7e08 fix: propagate publish release flag through Go agent endpoints (#17347) 2026-07-30 19:27:44 +08:00
balibabu
5ac8d92d2e Feat: Add an update button to the graph page of the dataset. (#17571)
### Summary

Feat: Add an update button to the graph page of the dataset.
2026-07-30 18:40:29 +08:00