Jin Hai
7f21a7ba18
Go: add context, part14 ( #17446 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-28 19:05:59 +08:00
Hz_
19b60132da
fix(go-agent): use session IDs for cancellation and context flow ( #17462 )
...
## Summary
- Propagate request contexts through Agent Canvas execution and external
calls.
- Replace internal task IDs with session IDs while retaining `task_id`
as a wire alias.
- Complete session-scoped cancellation with Redis lease and token
validation.
## Testing
- Go backend tests passed.
<img width="1176" height="574" alt="image"
src="https://github.com/user-attachments/assets/b86560be-9b8d-45bb-97e9-921dffab8ebe "
/>
2026-07-28 14:59:34 +08:00
Lynn
15f8ef7409
Fix: code review ( #17442 )
2026-07-28 09:47:22 +08:00
Jin Hai
1436fcaca5
Go: add context, part13 ( #17445 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-27 21:19:39 +08:00
Jin Hai
f73f4cb720
Go: add context, part12 ( #17435 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-27 19:30:41 +08:00
euvre
30b40caff8
Fix agentbot embedded chat streaming envelope ( #17420 )
2026-07-27 17:39:44 +08:00
Jin Hai
49e6181eca
Go: add context, part10 ( #17417 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-27 16:14:23 +08:00
Jin Hai
3065a29935
Go: add context, part9 ( #17412 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-27 15:06:48 +08:00
Jin Hai
f5aa5f7d94
Go: context, part8 ( #17405 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-27 13:38:15 +08:00
Jin Hai
1571abd98a
Go: add context, part7 ( #17402 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-27 11:23:06 +08:00
Jin Hai
9d4847beaf
Go: add context, part6 ( #17399 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-27 11:09:17 +08:00
Wang Qi
53afc32349
Fix get datasets owner retrieve the whole dataset ( #17370 )
2026-07-27 10:24:13 +08:00
Jin Hai
f53518c110
Go: add context, part5 ( #17392 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-27 10:20:16 +08:00
Jin Hai
d9e359d481
Go: add context ( #17354 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-24 20:19:41 +08:00
Jin Hai
bdfc3ada41
Go: add context ( #17314 )
...
### Summary
As title.
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-24 16:47:12 +08:00
Jin Hai
61201e437d
Go: fix context ( #17277 )
...
### Summary
Continue to add context
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-23 21:48:54 +08:00
Haruko386
5d8dfa610c
fix: unable to get prologue in agent bot ( #17299 )
...
### Summary
As title
2026-07-23 19:13:45 +08:00
Lynn
4a2564c7da
Feat: OpenAI-API-Compatible ( #17276 )
2026-07-23 13:39:57 +08:00
Jin Hai
5478f955ab
Go: add context to DAO ( #17269 )
...
### Summary
DAO layer doesn't use context, this PR is to fix it.
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-23 12:15:58 +08:00
Jin Hai
d19a036cda
Go: add context to lots of interface ( #17253 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-22 22:30:57 +08:00
Haruko386
1d165c7315
fix: unable to get owner in chat and search ( #17244 )
...
### Summary
As title
2026-07-22 21:27:08 +08:00
Lynn
32ddf59ac6
Fix: go restful api tests ( #17247 )
2026-07-22 19:06:08 +08:00
Lynn
340d30eb12
Fix: verify model api ( #17183 )
2026-07-21 19:09:46 +08:00
euvre
3f9d9529b3
fix(file2document): batch link should add to existing KBs, not replace them ( #17172 )
2026-07-21 19:05:02 +08:00
Haruko386
294dff4701
fix: add chunk_method field to document handler ( #17154 )
...
### Summary
As title
2026-07-21 16:47:12 +08:00
Jin Hai
3670b047f0
Go: add audit log framework ( #17129 )
...
### Summary
Prepare for audit log
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-20 23:50:45 +08:00
euvre
f45f03a016
Add Go service/handler tests for API contract parity ( #16905 )
2026-07-20 20:02:41 +08:00
Haruko386
0cd06e4013
Go: add tools for gitee, volcengine and zhipuAI ( #17091 )
...
### Summary
As title
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-07-20 19:18:48 +08:00
Jin Hai
1fdf167f79
Go: refactor system stats ( #17089 )
...
### Summary
Move stats to a specific service from system
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-20 14:13:05 +08:00
Jack
965590ccbe
Refactor: dataset/document/file service ( #17071 )
...
### Summary
Refactor dataset.go document.do file.go file2document.go in
internal/service.
2026-07-20 09:48:24 +08:00
Jin Hai
b8d06d02e6
Go: add stats ( #17061 )
...
### Summary
Add LLM token stats framework
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-18 21:02:07 +08:00
Jack
10c00a9614
Feat: add built in DSL file API ( #17003 )
...
### Summary
1. list and get by id API for builtin DSL
2. add DSL default component param values validation
3. remove all hard code keys for parser config
2026-07-18 11:00:08 +08:00
Jin Hai
8ebdc02cf6
Go: add LLM usage ( #17049 )
...
### Summary
```
RAGFlow(api/default)> CHAT WITH 'glm-4-flash@new_test@zhipu-ai' MESSAGE '30 words describes LLM';
Answer: Hello! I'm ChatGLM, an AI assistant. Feel free to ask me any questions or request help with any tasks.
Input tokens: 5
Output tokens: 28
Time: 12.748241
```
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-17 21:28:43 +08:00
euvre
6da5085073
feat: add chat-level TTS and ASR endpoints for Go API server ( #17036 )
2026-07-17 17:22:57 +08:00
Hz_
1b77e3ebcd
fix(go-agent): preserve canvas system state across turns ( #17010 )
...
## Summary
- Preserve request-scoped system variables such as files and user IDs
during Canvas execution.
- Persist conversation history, turn counts, and tool memory in the
session DSL across turns.
- Parse agent uploads into `sys.files` and align system variable
rendering with Python.
## Testing
- `bash build.sh --test ./internal/agent/...`
- `bash build.sh --test ./internal/service/...`
<img width="1896" height="1232" alt="image"
src="https://github.com/user-attachments/assets/b420cd97-53c3-470f-a3e1-d39cea26a213 "
/>
2026-07-17 15:53:58 +08:00
euvre
c599dc6c52
fix: remove dangling MetaFields reference and skip affected Go backend tests ( #16983 )
2026-07-16 20:20:29 +08:00
Haruko386
101155bdc7
fix: support message content ( #16980 )
...
### Summary
As Title
<img width="3241" height="1934" alt="image"
src="https://github.com/user-attachments/assets/cb22031c-f200-462a-b871-b4a739e7a66a "
/>
2026-07-16 19:08:36 +08:00
Jin Hai
8bb2cd0fb7
Go: fix db alignment ( #16964 )
...
### Summary
Align go db schema with python
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-16 16:00:56 +08:00
Jack
fd5487e064
feat: add /api/v1/language endpoint for Go/Python runtime detection ( #16952 )
...
Both backends serve GET /api/v1/language. Frontend calls it once and
caches. By this way, front end can know the backend is go or python and
thus can determine which part of logic to load.
---------
Co-authored-by: Claude <noreply@anthropic.com >
2026-07-16 15:13:43 +08:00
Wang Qi
46e14fe52b
Fix doc.MetaFields undefined ( #16976 )
...
Follow on #16929
2026-07-16 13:27:08 +08:00
Jin Hai
2a6e210020
Go: align db schema to python ( #16935 )
...
As title.
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-15 23:05:06 +08:00
euvre
70a49c947d
Remove unused /datasets/<id>/embedding endpoint ( #16936 )
2026-07-15 17:42:41 +08:00
Lynn
63c010cd04
Fix: code-rabbit review comment ( #16940 )
2026-07-15 15:44:08 +08:00
Jack
e543ff02c4
Feat: nats message processing refactor and support built in DSL ( #16873 )
2026-07-15 14:53:16 +08:00
Haruko386
a19af34d31
fix: unable to use agent in agent ( #16910 )
...
### Summary
As title
#### Agent:
<img width="3707" height="2030" alt="image"
src="https://github.com/user-attachments/assets/68480004-9c79-4302-ae22-eb3375b7fac9 "
/>
#### Data_operations
<img width="3716" height="2044" alt="image"
src="https://github.com/user-attachments/assets/068cc1a6-1ba5-4746-a447-a706d2149ef5 "
/>
2026-07-15 10:58:59 +08:00
Lynn
bd7a3bb878
Fix: align go provider apis with python apis ( #16867 )
...
### Summary
As title.
---------
Co-authored-by: Jin Hai <haijin.chn@gmail.com >
Co-authored-by: Wang Qi <wangq8@outlook.com >
2026-07-14 21:06:11 +08:00
euvre
315e5725c2
Fix: Search mind map not displaying ( #16866 )
2026-07-14 17:04:47 +08:00
Jin Hai
844e3ea64d
Go and Python: fix IDOR issue of search completions ( #16864 )
...
### Summary
In Go and python implementation, the dataset / KB id isn't validated if
it is accessible by this user.
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-13 21:00:19 +08:00
Jin Hai
8bc18154d2
Go: refactor and add version type ( #16863 )
...
### Summary
```
RAGFlow(admin)> show version;
+--------------+-----------------------+
| field | value |
+--------------+-----------------------+
| version | v0.26.4-84-g547bc8614 |
| version_type | open source |
+--------------+-----------------------+
```
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-13 18:00:35 +08:00
Jin Hai
9f403ac3ca
Go: more APIs ( #16850 )
...
### Summary
as title.
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-13 15:24:17 +08:00