Commit Graph
169 Commits
Author SHA1 Message Date
Wang Qi d3ee290f56 Resolve the comments (#22059) 2026-11-06 09:32:02 +08:00
CCLUCKY da108133e7 fix(admin): return every user when the list is unpaged (#21723) 2026-11-05 19:05:54 +08:00
Wang Qi 5fa1879de0 Refactor: restrict page_size max value 100 (#22036) 2026-11-05 18:04:35 +08:00
jay77721 6ece20514f fix(core): enforce consistent name and alias length limits (#22020) 2026-11-05 15:32:06 +08:00
buua436 84705f75c8 feat: add user ownership to resources (#21914) 2026-11-03 17:36:36 +08:00
Wang Qi a26066c879 Refactor: refine response data (#21858) 2026-11-03 14:10:05 +08:00
adws d554abacab feat(admin): add user search, status filtering, sorting, and CLI pagination (#21729) 2026-11-02 12:14:32 +08:00
kk710 89199670f7 feat(vastbase): support Vastbase G100 as the metadata database in Go (#20913) 2026-11-02 10:16:16 +08:00
Zhichang Yu 327cdb2d80 refactor(api): hyphenate the remaining route path segments (#21730) 2026-10-30 10:34:18 +08:00
Lynn 849ccb4d3a Revert "fix: remove sso related code" (#21657) 2026-10-29 14:32:50 +08:00
Zhichang Yu 9a71c10b09 refactor: keep the enterprise code out of the community build (#21614) 2026-10-29 11:35:50 +08:00
Lynn 61eea6e8b0 Fix: remove sso related code (#21584) 2026-10-28 12:11:47 +08:00
Lynn 99ae9ca5ad Fix: set variable value (#21554) 2026-10-28 09:38:40 +08:00
adws f0ff22abb4 fix(admin): return pagination totals for user lists (#21540) 2026-10-27 19:10:46 +08:00
buua436 e7bf77e1da fix: honor STORAGE_IMPL and enforce chat dataset access (#21548) 2026-10-27 17:59:11 +08:00
buua436 d3f6d032a1 test: keep EE test placeholders in OSS (#21476)
### What problem does this PR solve?

Keeps enterprise-only test files as placeholders in the open-source tree
instead of moving enterprise-specific test behavior into
`community_test` files.

### Type of change

- [x] Refactor (no functional change)
2026-10-26 15:31:07 +08:00
buua436 67f9b211ab fix: respect active tenant in service operations (#21462) 2026-10-26 13:05:36 +08:00
buua436 e4ab718ca6 feat(permission): enforce tenant and resource access (#21377) 2026-10-23 16:04:46 +08:00
adws 9c41ec8dbd refactor(admin): move ingestion task listing to EE (#21312) 2026-10-22 16:23:44 +08:00
Jin Hai f10b509883 fix server list issue (#21288)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-10-21 16:52:50 +08:00
Jin Hai 572b00d546 fix services stale clean (#21277)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-10-21 15:15:27 +08:00
leilei3167 7763d0b2ef fix(admin): honor ADMIN_DEFAULT_PASSWORD for the first superuser (#20562) 2026-10-21 13:54:43 +08:00
buua436 07209543cf feat(tenant): add tenant roles and permissions (#21257) 2026-10-21 10:32:52 +08:00
adws 354090279b refactor(admin): isolate user agent and dataset listings in EE files (#21210) 2026-10-20 19:03:29 +08:00
adws 232b3f7721 fix(api): return nonempty string response messages (#21194) 2026-10-20 11:55:24 +08:00
buua436 51351ef7dc feat(go-auth): bind tenant context to access tokens and API keys (#21153) 2026-10-19 17:46:57 +08:00
Jin Hai 724f03670f Add more server types (#21127)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-10-19 13:41:07 +08:00
Jin Hai 13e573ce11 Go: remove unused APIs (#21073)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-10-16 16:42:04 +08:00
Jin Hai 5124117e54 Go: update EE interface (#21056)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-10-16 14:59:56 +08:00
Wang Qi 150977db52 Dev: keep EE license (#21048) 2026-10-16 11:31:27 +08:00
Sbaaoui Idriss 389d20c3b8 fix(admin): restore saved settings when switching sandbox executors (#20863) 2026-10-13 14:52:11 +08:00
adws d4f0ecd836 fix(config): mask credentials in Go startup configuration logs (#20796) 2026-10-12 18:07:04 +08:00
Jin Hai 0ff28e4bb2 Go: refactor (#20717)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-10-10 13:49:41 +08:00
buua436 4c9edbfdf7 refa: centralize Go resource permissions (#20657) 2026-10-10 10:37:43 +08:00
Zhichang Yu 98b48a0857 Port agentic RAG to Go, expose it as a chat mode, and add per-dialog failover (#20503)
## Background

This branch started as a focused fix to agentic RAG regexp retrieval
semantics (`f80556585`) and grew into the full agentic RAG path. The
title no longer describes the contents, so it has been rewritten.

The PR now covers three largely independent lines of work:

### 1. The agentic RAG is reachable from the UI

`internal/agentic_rag` (the eino-ADK ReAct explorer) was already built
and wired, but only reachable by hand-crafting an `agent_mode` kwarg. It
is now the sixth option in the chat mode selector (`reasoning` level 5).

One subtlety worth stating plainly: **levels 1-4 and level 5 are not the
same agent.** Levels 1-4 go through `internal/rag/agentic-rag` (the
harness graph) with a depth chosen by `harnessModeForLevel`; level 5
switches engines outright to `internal/agentic_rag`. That is why level 5
must never reach `harnessModeForLevel` — its `level >= 4` case would
silently answer "ultra" for a level outside its domain.

### 2. Per-dialog failover chain

`agenticModelChain` resolved exactly one model and the caller then used
`chain[0]`, so a "chain" was never more than a single element. A dialog
can now configure an ordered list of fallback models in Chat Settings,
handed to `NewFailoverEinoChatModel` (sticky cursor plus a 30s
full-chain cooldown).

The list lives in the dialog's own `llm_setting.failover_llm_ids`, so no
new table is involved. A member that no longer resolves is skipped with
a warning rather than failing the turn.

Also removed: `tenant_model_group` / `tenant_model_group_mapping`, which
nothing ever read (the DAOs were constructed but never called, and no
frontend or Python code referenced the concept). Their removal takes an
explicit drop migration with it, plus the account-deletion cascade that
queried them.

### 3. A hung MiniMax stream (independent of the agentic work)

With any mode selected, a chat rendered its whole answer and then sat on
"thinking" forever. Root cause is `minimax.go:256`: MiniMax sends `data:
[DONE]` but leaves the HTTP connection open, and the code waited for the
scanner goroutine's EOF *after* `HandleStreamingResponse` had already
returned. That receive can only end when `streamCallTimeout` (20
minutes) expires.

Diagnosed by capturing a real SSE stream (the complete answer arrives,
the terminal `final: true` never does) and a goroutine dump (6 requests
parked in `chan receive`).

## Two review findings fixed on the way through

- **KB-scope authorization**: the agentic branch bypassed quote
resolution, and an empty KB scope made `buildBoolQueryFromCondition`
drop the `kb_id` filter — so a citation could resolve a chunk belonging
to a different KB in the same tenant. The agentic branch now requires a
non-empty scope and otherwise falls through to the regular path.
- **Stale documentation**: `agentic-rag-failover-groups.md` described
the "automatically include every tenant model" strategy that upstream
had already removed. It was rewritten for the per-dialog scope and then
dropped entirely, since the design now lives in the code it describes.

## Verification

- `bash build.sh --test`: `admin`, `dao`, `service`, `service/dataset`
and `entity/models` all pass
- The MiniMax fix was verified end-to-end against a live server: before,
the turn hung indefinitely; after, it completes in **1.9s** with `final:
true` present
- Frontend: 9 tests added; type-check and lint clean on the touched
files

## Not included

- **Attachment support in agentic mode.** Text attachments could be
appended safely, but images have no safe fix: the agent's toolset is
built around corpus retrieval and has no image input channel. Fixing
only the text path would leave the feature half-supported and harder to
diagnose than now. Planned as a follow-up PR, with the design synced
here first.
- Tool-calling is not enforced as a group constraint. `is_tools` is a
provider-declared flag rather than a measured capability (187 of 659
chat models do not declare it), so gating on it would reject working
configurations while admitting broken ones.
2026-10-02 23:00:16 +08:00
Lynn 89f119ab1b Fix: remove table tenant_llm (#20204) 2026-09-29 14:19:30 +08:00
Jin Hai 5271bb0f37 Go admin: update heartbeat (#20275)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-09-29 14:03:03 +08:00
Wang Qi 332c9f829c Fix delete user to delete bucket user-downloads, table: file_commit, file_commit_item (#20199) 2026-09-24 18:18:41 +08:00
Wang Qi 4ec59dd7db Fix: clean ingestion task logs (#20153) 2026-09-24 10:41:03 +08:00
Wang Qi 109dcdb0c2 Fix delete dataset not delete bucket (#20110) 2026-09-23 19:11:37 +08:00
Wang Qi 35b9b4354d Fix admin services display (#20099) 2026-09-23 15:54:57 +08:00
Wang Qi bc63c0c9b4 Fix no delete skill since go has no skill (#20094) 2026-09-23 14:54:48 +08:00
Wang Qi 769d091d7a Feature: delete user all stuffs when delete user (#20010) 2026-09-23 09:31:39 +08:00
jay77721 338703565a refactor(go): unify Go logging on the zap logger (#20026) 2026-09-22 19:40:08 +08:00
Jin Hai c69960bc26 Go CLI: show hardware (#19991)
```
RAGFlow(admin)> show hardware
+----------+-------------+
| field    | value       |
+----------+-------------+
| Memory   | 33045229568 |
| OS       | linux       |
| Arch     | amd64       |
| CPUCores | 14          |
+----------+-------------+
```

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-09-21 19:25:11 +08:00
xugangqiang 302ada2cdb fix(admin): use GetKvrocksConfig instead of undefined GetRedisConfig (#19867) 2026-09-18 21:54:27 +08:00
xugangqiang 7aa012fc5c refactor(go): default Go cache/queue backend to Kvrocks and fail fast when down (#19804) 2026-09-18 19:16:07 +08:00
Sbaaoui Idriss a1da66010b fix(admin): show host and port in service status (#19848) 2026-09-18 19:15:21 +08:00
Sbaaoui Idriss aff4273476 feat(sandbox): complete Go sandbox settings and live refresh (#19783) 2026-09-17 18:40:59 +08:00
Wang Qi 81c2b80ce2 Fix user detail show not work (#19719) 2026-09-16 19:12:17 +08:00