Commit Graph

8048 Commits

Author SHA1 Message Date
Lynn
457830f312 Fix: display embd_name in list memory api response (#17932) 2026-08-06 15:43:07 +08:00
Jin Hai
405275935f Go: fix unused check (#17922)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-08-06 14:45:10 +08:00
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
Jin Hai
8bc34219f5 Go: fix plenty of warnings (#17918)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-08-06 13:36:04 +08:00
chanx
b71e84838d fix(document-preview): make ExcelCsvPreviewer adapt to container resize (#17906) 2026-08-06 13:26:24 +08:00
buua436
97f9ae5896 refa: unify wiki example naming (#17910) 2026-08-06 13:24:27 +08:00
buua436
dced12251a fix: allow recreating deleted template groups (#17915) 2026-08-06 13:24:09 +08:00
Jin Hai
08867c1d73 Go: refactor (#17917)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-08-06 12:33:09 +08:00
chanx
bda74135b5 fix(document-preview): strip WPS DISPIMG formula from xlsx before preview (#17912) 2026-08-06 11:13:44 +08:00
Wang Qi
e35956bcc4 Fix attachments not take effect in agentic chat (#17895) 2026-08-06 11:12:22 +08:00
Jin Hai
4c6f575913 Go: remove part of max_tokens (#17908)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-08-06 10:48:28 +08:00
jay77721
6be7dc6e66 feat: add batch_size to embedding models in all_models.json (#17878)
## Summary

Add a `batch_size` field to all **215 embedding models** in
`conf/all_models.json`, synced from the values set in
`conf/models/*.json` (see #17877) so the two config sources stay
consistent.

## Matching strategy

Values are assigned by layered matching against `conf/models/*.json`:

1. **Exact model name** match
2. **Alias** match
3. **Bare-name** map (entries that appear without a provider prefix)
4. **Provider-prefix family** match (e.g. `jinaai/*`, `nvidia/*`,
`cohere/*`, `qwen/*`, `BAAI/*`, `voyage/*`, `zai-org/*`)

## Distribution

| batch_size | # models | Source |
|---|---|---|
| 16384 | 88 | Jina (`jinaai/*`) — no documented batch limit, safe high
cap |
| 2048 | 26 | OpenAI + OpenAI-compatible proxies (Qwen, BGE, e5
families) |
| 32 | 26 | NVIDIA NIM, BAAI/bge-m3, qwen3-embedding |
| 1 | 27 | Conservative provider fallback where no API batch limit is
documented |
| 1000 | 24 | Voyage AI — API reference max |
| 96 | 8 | Cohere |
| 16 | 5 | Mistral, Baidu Qianfan, Baichuan, Replicate |
| 100 | 4 | Google Gemini |
| 512 | 3 | Zhipu GLM (`zai-org/embedding-2/3`, `zhipu-embedding-2`) |
| 10 | 3 | Volcengine Doubao |
| 1024 | 1 | DeepInfra Qwen3-Embedding-4B |
2026-08-06 10:48:05 +08:00
jay77721
2e2d12d262 feat: add batch_size to all embedding model configs (#17877)
## Summary

Add a `batch_size` field to every embedding model entry in
`conf/models/*.json`. The field represents the maximum number of text
inputs that can be submitted to the embedding API in a single request.

**75 embedding models across 30 config files** now carry a `batch_size`.
Values were verified against each provider's official documentation (see
the verification table at `Desktop/embedding_models_verified.md`).

## Distribution

| batch_size | # models | Provider / Model |
|---|---|---|
| 1 | 2 | AWS Bedrock `amazon.titan-embed-text-v1/v2:0` — Bedrock
`invoke` accepts a single input per call |
| 10 | 3 | Aliyun `text-embedding-v3/v4`, Volcengine
`doubao-embedding-vision-251215` |
| 16 | 5 | BaiChuan `Baichuan-Text-Embedding`, Baidu Qianfan
`embedding-v1`, Mistral `mistral-embed`, Replicate (x2) |
| 32 | 10 | NVIDIA NIM (x3), SILICONFLOW (x2), PPIO (x3), GiteeAI
`bge-m3`, HuaweiCloud `bge-m3` |
| 50 | 4 | Tencent Hunyuan `kinfra` embeddings (x4) — `InputList.N` max
50 |
| 96 | 8 | Cohere embed-v3/v4 (x5), Bedrock Cohere (x3) |
| 100 | 3 | Google Gemini `text-embedding-004`, Upstage (x2) |
| 512 | 5 | Zhipu GLM `embedding-2/3` (x2), Perplexity `pplx-embed`
(x2), Astraflow `text-embedding-3-large` |
| 1000 | 9 | Voyage AI (x9) — API reference max |
| 1024 | 1 | DeepInfra `Qwen/Qwen3-Embedding-4B` |
| 2048 | 15 | OpenAI (x3) + OpenAI-API-compatible proxies (CometAPI,
n1n, Jiekou.AI, GreenPT, TogetherAI, NovitaAI) — OpenAI contract limit |
| 16384 | 10 | Jina (x8), 302.AI, GiteeAI `jina-clip-v2` — no documented
Jina batch limit, safe high cap |

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-06 10:47:38 +08:00
rayhan
4fea32cef1 fix: remediate CVE-2026-26209 by constraining cbor2 to >=5.9.0 (#17903)
## Summary
  
Remediates CVE-2026-26209 (HIGH) in `cbor2` by adding `cbor2>=5.9.0` to
`constraint-dependencies` in `pyproject.toml`.
  
  | CVE | Severity | Package | Installed | Fixed in |
  |---|---|---|---|---|
  | CVE-2026-26209 | HIGH | cbor2 | 5.8.0 | 5.9.0 |
  
`cbor2` is a transitive dependency pulled in by `ranx` with no version
constraint, stuck at 5.8.0 because lockfile hadn't been re-resolved.
2026-08-06 10:27:10 +08:00
Jack
f41f866aa1 Fix(parser): keep real line breaks when merging HTML fragments and PDF boxes (#17856)
Net effect: inline prose stays on one line (`Hello World`), real `<br>` boundaries survive (including before tags and repeated breaks), and source formatting whitespace no longer over-splits.
2026-08-06 09:57:23 +08:00
euvre
e6667f198b fix: embedded/shared agent chat fails with retrieval query unmarshal error (#17831) dev-20260806 2026-08-06 09:46:12 +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
ae8cfd4d1e Go: fix heartbeat log (#17899)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-08-05 22:05:07 +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
richboyneedcash
eaf553320f docs: fix broken sandbox link in quickstart (#17898) 2026-08-05 21:14:38 +08:00
Mage Lu
d9d75690de fix: correct Tongyi-Qianwen international endpoint typo (compatible-model -> compatible-mode) (#17887)
## Summary
- `api/apps/services/provider_api_service.py` hardcoded the DashScope
international base URL for Tongyi-Qianwen as `.../compatible-model/v1`
instead of `.../compatible-mode/v1`, in two places (`list_providers`,
lines ~93 and ~116).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 20:37:45 +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
bigfish-emily
2403988b6d fix(chunker): drop dead atom-split path in mergeByTokenSizeFromJSON (#17873) 2026-08-05 19:58:51 +08:00
Kevin Hu
d2183e610d Fix: Adjust ExecutionStrategy of THINKING_MODES. (#17862)
### Summary

Adjust ExecutionStrategy of THINKING_MODES.
2026-08-05 19:41:00 +08:00
buua436
38435255f9 fix: filter wiki artifacts by keywords (#17871) 2026-08-05 19:40:27 +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
2dfb34f7ab feat(agent-list): support multi-select canvas category filtering (#17843) 2026-08-05 19:32:45 +08:00
jay77721
dc6c0e5de5 fix: drop max_tokens from generic OpenAI-compatible request builder (#17857)
## Summary

The generic `buildRequestBody` in `internal/entity/models/base_model.go`
unconditionally forwarded `ChatConfig.MaxTokens` as `"max_tokens"` for
every OpenAI-compatible provider.

Providers that need a different token field already delete or override
it after the call (e.g. Xiaomi uses `max_completion_tokens`, Replicate
uses `max_new_tokens`). This change stops setting `max_tokens` in the
shared builder so it only forwards the parameters common across
providers, and each provider remains free to set its own token limit
field.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-05 19:31:12 +08:00
buua436
502921159a fix: use updated RAPTOR options for skill generation (#17859) 2026-08-05 19:27:17 +08:00
chanx
b2fea8ee66 fix: enhance agent tags display with tooltip for better visibility (#17879) 2026-08-05 19:27:05 +08:00
balibabu
24c0a77a3e Fix: The download button is displayed on the agent dialog page shared externally. (#17880) 2026-08-05 19:26:42 +08:00
Jack
da5215cb1f test(task): expect 1 chunk after #17739 global merge (#17841) 2026-08-05 19:08:52 +08:00
Jack
2fcc34904b fix(chunker): keep oversize text/markdown unit whole (OVER_CAP alignment) (#17854)
The Go `TokenChunker` text/markdown path (`mergeByTokenSize`)
unconditionally
called `splitOversizedUnit` on any unit that exceeded
`chunk_token_size`,
emitting Go-only sub-chunks. Python's `naive_merge`
(`_merge_paragraph_groups`,
`rag/nlp/__init__.py`) never atom-splits an oversize unit under either
`OVER_CAP` or `UNDER_CAP`: a paragraph larger than the budget becomes
its own
standalone chunk and the model layer truncates it later.

This aligns the text/markdown path with the **structured JSON path**
(`invokeJSONPayload` → `mergeByTokenSizeFromJSON(...,
subSplitOversize=false)`,
#17739). It completes the OVER_CAP alignment started in #17835.
2026-08-05 18:53:59 +08:00
js
2bee51ca90 fix(deps): bump Werkzeug to 3.1.8 to fix intermittent multipart CRLF corruption (#17884)
## Summary
- Pin `werkzeug>=3.1.7,<4` and refresh `uv.lock` to **3.1.8**.
- Fixes intermittent corruption of uploaded file bodies: when TCP
segments split right after multipart part headers, Werkzeug **3.1.5**
can include a leading `\r\n` in the file content
([pallets/werkzeug#3088](https://github.com/pallets/werkzeug/issues/3088);
fixed in 3.1.7).
- In RAGFlow this commonly breaks `.xlsx` parsing: ZIP/OOXML magic
(`PK\x03\x04`) no longer matches, the Excel parser falls back to CSV,
then fails with UTF-8 decode errors such as `invalid start/continuation
byte`.

Made with [Cursor](https://cursor.com)

Co-authored-by: zhangjiangshan1 <zhangjiangshan1@kingsoft.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Jin Hai <haijin.chn@gmail.com>
2026-08-05 18:47:39 +08:00
taek105
b7966c98f2 fix: honor dataset language across VisionFigureParser paths (#17227) 2026-08-05 18:40:10 +08:00
Jin Hai
d2303cc46b Go: align with EE (#17882)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-08-05 18:31:44 +08:00
Wang Qi
eb9b621061 Fix go generated token expired in python - 2 (#906) (#17875) 2026-08-05 17:29:08 +08:00
Jack
0227b2684e fix(chunker): drop delimiter from chunk text on primary and children splits (#17868)
Go's `TokenChunker` kept the captured delimiter glued to the preceding
segment on **both** the primary (`chunkFromItem`) and secondary
(`children_delimiters`) split paths, while Python's reference
`token_chunker` drops it via `_split_text_by_pattern`
(`token_chunker.py:79-93`, used by both `_build_json_chunks` and
`_split_chunk_docs_by_children`). The divergence leaked the delimiter
into every emitted chunk's `text`.
2026-08-05 17:26:36 +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
balibabu
479c3efd74 Fix: The hover card referenced in the agent's floating dialog box is not fully displayed. (#17867) 2026-08-05 17:10:01 +08:00
chanx
fe02f5402f feat: add more file type preview support in document viewer (#17872) 2026-08-05 17:09:03 +08:00
maoyifeng
409b75868d CI:fix merge to main,cancel display fail (#17869)
CI:fix merge to main,cancel display faile
2026-08-05 16:55:59 +08:00
YanZhang
1210788121 docs: change data source guide docs (#17870)
add data source guide
delete data source guide form dataset guide
solve some conflicts
2026-08-05 16:49:40 +08:00
Jin Hai
583ba3cb97 Go: add context for DB access (#17861)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-08-05 16:22:36 +08:00
balibabu
fd6d5faceb Fix: Remove CompilationTemplateFormField from dataset setting page. (#17852) 2026-08-05 15:59:57 +08:00
buua436
cd6e73bcb5 fix: stream agentic reasoning and answers correctly (#17849) 2026-08-05 15:59:19 +08:00