adws
bff3e0ebbc
feat(cli): add admin ingestion log command hooks ( #21470 )
2026-10-26 19:28:38 +08:00
buua436
ad5c331c0b
fix: remove system variable API routes ( #21410 )
2026-10-23 16:59:28 +08:00
Jin Hai
1d7744f944
CLI: model group ( #21392 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-10-23 15:48:38 +08:00
Jin Hai
b73f030931
CLI: add show model stats ( #21376 )
...
```
SHOW MODEL STATS;
SHOW MODEL STATS DAYS 7;
SHOW MODEL STATS FROM '2024-01-01' TO '2024-01-31';
SHOW MODEL STATS DAYS 7 'openai'; -- provider
SHOW MODEL STATS DAYS 7 'openai' 'prod'; -- provider + instance
SHOW MODEL STATS DAYS 7 'openai' 'prod' 'gpt-4o'; -- provider + instance + model
SHOW MODEL STATS DAYS 7 BY DATE;
SHOW MODEL STATS DAYS 7 BY MODEL;
SHOW MODEL STATS DAYS 7 BY INSTANCE;
SHOW MODEL STATS DAYS 7 BY PROVIDER;
SHOW MODEL STATS DAYS 30 'openai' BY DATE;
SHOW MODEL STATS DAYS 30 'openai' 'prod' BY MODEL;
SHOW MODEL STATS DAYS 30 'openai' 'prod' 'gpt-4o' BY DATE;
SHOW MODEL STATS FROM '2024-01-01' TO '2024-01-31' 'azure' BY INSTANCE;
SHOW MODEL STATS FROM '2024-01-01' TO '2024-01-31' BY PROVIDER;
```
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-10-23 13:29:40 +08:00
adws
354090279b
refactor(admin): isolate user agent and dataset listings in EE files ( #21210 )
2026-10-20 19:03:29 +08:00
Jin Hai
3f3f588abe
CLI: add show quota ( #21243 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-10-20 18:54:51 +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
Jin Hai
16de4bfcb6
Go CLI: set/show cpu/memory/concurrency ( #20002 )
...
```
RAGFlow(api/default)> show cores;
ragflow-cli error: Get cores not implemented
RAGFlow(api/default)> set cores 1;
ragflow-cli error: Set cores not implemented
RAGFlow(api/default)> show memory;
ragflow-cli error: Get memory not implemented
RAGFlow(api/default)> set memory 1;
ragflow-cli error: Set memory not implemented
RAGFlow(api/default)> show concurrency;
ragflow-cli error: Get concurrency not implemented
RAGFlow(api/default)> show concurrency 1;
ragflow-cli error: Get concurrency not implemented
```
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-09-21 21:50:13 +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
qinling0210
25a7c14e4f
fix(tag): rebuild tagging on a Go tag source index ( #19985 )
...
### Summary
rebuild tagging on a Go tag source index
```
The following endpoints are removed in GO because there is no tag datatset inGO.
GET /api/v1/datasets/:dataset_id/tags
PUT /api/v1/datasets/:dataset_id/tags
DELETE /api/v1/datasets/:dataset_id/tags
```
2026-09-21 19:23:29 +08:00
Jin Hai
84b7608668
Go CLI: fix benchmark ( #19946 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-09-21 14:45:22 +08:00
qinling0210
aa78e8d224
Remove internal cli 'insert chunks from file' and 'insert metadata from file' ( #19591 )
2026-09-14 14:23:04 +08:00
mkaaad
0dbfaa8b67
feat(cli): add sync logs listing commands for the user CLI ( #18195 )
...
### Summary
```
RAGFlow(api/default)> LIST SYNC LOGS WITH PAGE_SIZE 2 PAGE 2;
Total: 764
+----------------------------------+-------------------------+-------------+-----------+----------------------------------+----------------------------------+---------+------------------+------------+--------------+--------+-----------+---------------------+--------------------+---------------------+
| connector_id | docs_removed_from_index | error_count | error_msg | id | kb_id | kb_name | new_docs_indexed | prune_freq | refresh_freq | status | task_type | time_started | total_docs_indexed | update_date |
+----------------------------------+-------------------------+-------------+-----------+----------------------------------+----------------------------------+---------+------------------+------------+--------------+--------+-----------+---------------------+--------------------+---------------------+
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | fb55b5f1fb754475834cd9eac8b52054 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:45 | 16 | 2026-08-13 09:49:46 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | 3cad779d7d2e4efb8d8d2dbf05d45653 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:42 | 16 | 2026-08-13 09:49:43 |
+----------------------------------+-------------------------+-------------+-----------+----------------------------------+----------------------------------+---------+------------------+------------+--------------+--------+-----------+---------------------+--------------------+---------------------+
```
```
RAGFlow(api/default)> LIST SYNC LOGS;
Total: 764
+----------------------------------+-------------------------+-------------+--------------------------------------------------------------------------------------------+----------------------------------+----------------------------------+---------+------------------+------------+--------------+--------+-----------+---------------------+--------------------+---------------------+
| connector_id | docs_removed_from_index | error_count | error_msg | id | kb_id | kb_name | new_docs_indexed | prune_freq | refresh_freq | status | task_type | time_started | total_docs_indexed | update_date |
+----------------------------------+-------------------------+-------------+--------------------------------------------------------------------------------------------+----------------------------------+----------------------------------+---------+------------------+------------+--------------+--------+-----------+---------------------+--------------------+---------------------+
| 02b5b14183884445bd55ad6b9d322204 | 0 | 1 | sync task failed: failed to fetch URL: Get "https://xxxxxxxxxxxx/rss.xml ": EOF | 87592e5623fc4284bf69b9290f322718 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 4 | sync | 2026-08-13 09:49:48 | 16 | 2026-08-13 09:51:01 |
| 570138201cf44e1180711f1ebdf8492f | 0 | 1 | sync task failed: failed to fetch URL: Get "https://www.ruanyifeng.com/blog/atom.xml ": EOF | 456adbbf21a147af99adfce4405abd99 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 1 | 4 | sync | 2026-08-13 09:50:00 | 3 | 2026-08-13 09:50:18 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | fb55b5f1fb754475834cd9eac8b52054 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:45 | 16 | 2026-08-13 09:49:46 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | 3cad779d7d2e4efb8d8d2dbf05d45653 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:42 | 16 | 2026-08-13 09:49:43 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | dd09320aa5b34d6cbcfa7b03ede68c4a | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:36 | 16 | 2026-08-13 09:49:38 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | afbcee73240f420ca1997e6506f387fb | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:33 | 16 | 2026-08-13 09:49:34 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | 7d018146a0f14a25b7263d5980fdc30f | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:30 | 16 | 2026-08-13 09:49:32 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | 520e0d6f421e40628ab541fc4fee1a69 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:27 | 16 | 2026-08-13 09:49:28 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | 3d3ce49825de4ef99642e7994ae954e3 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:21 | 16 | 2026-08-13 09:49:22 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | 1c511f9b4a7c425fb30a956589ca56fa | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:18 | 16 | 2026-08-13 09:49:19 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | b9ab73c3f48c4f47a84fd55b542b32b4 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:15 | 16 | 2026-08-13 09:49:16 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | db0cad90a7744d758b24d2e3d3828963 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:12 | 16 | 2026-08-13 09:49:13 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | a501eadb2cce452187f3c86431352c70 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:08 | 16 | 2026-08-13 09:49:10 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | b4265a3b7baf4466a525b91a9fe21b71 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:03 | 16 | 2026-08-13 09:49:05 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | a6ad590931c046dda5fc3222b4010c06 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:00 | 16 | 2026-08-13 09:49:02 |
......
+----------------------------------+-------------------------+-------------+--------------------------------------------------------------------------------------------+----------------------------------+----------------------------------+---------+------------------+------------+--------------+--------+-----------+---------------------+--------------------+---------------------+
```
list all logs
```
RAGFlow(api/default)> LIST DATASET 'test' SYNC LOGS;
Total: 764
+----------------------------------+-------------------------+-------------+--------------------------------------------------------------------------------------------+----------------------------------+----------------------------------+---------+------------------+------------+--------------+--------+-----------+---------------------+--------------------+---------------------+
| connector_id | docs_removed_from_index | error_count | error_msg | id | kb_id | kb_name | new_docs_indexed | prune_freq | refresh_freq | status | task_type | time_started | total_docs_indexed | update_date |
+----------------------------------+-------------------------+-------------+--------------------------------------------------------------------------------------------+----------------------------------+----------------------------------+---------+------------------+------------+--------------+--------+-----------+---------------------+--------------------+---------------------+
| 02b5b14183884445bd55ad6b9d322204 | 0 | 1 | sync task failed: failed to fetch URL: Get "https://xxxxxxxxxxxx/rss.xml ": EOF | 87592e5623fc4284bf69b9290f322718 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 4 | sync | 2026-08-13 09:49:48 | 16 | 2026-08-13 09:51:01 |
| 570138201cf44e1180711f1ebdf8492f | 0 | 1 | sync task failed: failed to fetch URL: Get "https://www.ruanyifeng.com/blog/atom.xml ": EOF | 456adbbf21a147af99adfce4405abd99 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 1 | 4 | sync | 2026-08-13 09:50:00 | 3 | 2026-08-13 09:50:18 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | fb55b5f1fb754475834cd9eac8b52054 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:45 | 16 | 2026-08-13 09:49:46 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | 3cad779d7d2e4efb8d8d2dbf05d45653 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:42 | 16 | 2026-08-13 09:49:43 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | dd09320aa5b34d6cbcfa7b03ede68c4a | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:36 | 16 | 2026-08-13 09:49:38 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | afbcee73240f420ca1997e6506f387fb | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:33 | 16 | 2026-08-13 09:49:34 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | 7d018146a0f14a25b7263d5980fdc30f | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:30 | 16 | 2026-08-13 09:49:32 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | 520e0d6f421e40628ab541fc4fee1a69 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:27 | 16 | 2026-08-13 09:49:28 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | 3d3ce49825de4ef99642e7994ae954e3 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:21 | 16 | 2026-08-13 09:49:22 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | 1c511f9b4a7c425fb30a956589ca56fa | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:18 | 16 | 2026-08-13 09:49:19 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | b9ab73c3f48c4f47a84fd55b542b32b4 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:15 | 16 | 2026-08-13 09:49:16 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | db0cad90a7744d758b24d2e3d3828963 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:12 | 16 | 2026-08-13 09:49:13 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | a501eadb2cce452187f3c86431352c70 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:08 | 16 | 2026-08-13 09:49:10 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | b4265a3b7baf4466a525b91a9fe21b71 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:03 | 16 | 2026-08-13 09:49:05 |
| 02b5b14183884445bd55ad6b9d322204 | 0 | 0 | | a6ad590931c046dda5fc3222b4010c06 | 0e6e28e65b7044e58070e0e4252319a6 | test | 0 | 5 | 0 | 3 | sync | 2026-08-13 09:49:00 | 16 | 2026-08-13 09:49:02 |
......
+----------------------------------+-------------------------+-------------+--------------------------------------------------------------------------------------------+----------------------------------+----------------------------------+---------+------------------+------------+--------------+--------+-----------+---------------------+--------------------+---------------------+
```
2026-08-13 18:39:29 +08:00
Jin Hai
1e78789448
Go: add soft fingerprint framework ( #17837 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-08-05 13:54:09 +08:00
Jin Hai
f621b4c7b4
Go: refactor config ( #17678 )
...
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-08-01 22:06:56 +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
Jin Hai
7ad27adecb
Go CLI: add admin stats commands ( #17090 )
...
### Summary
```
RAGFlow(admin)> STATS USERS TOP 5 FROM '2026-01-01' TO '2026-02-01';
+-----------------------+----------------------------------------------+------------+---------------------+-----+
| command | error | from_date | to_date | top |
+-----------------------+----------------------------------------------+------------+---------------------+-----+
| get_token_users_stats | 'Get API token users stats' is not supported | 2026-01-01 | 2026-02-01 23:59:59 | 5 |
+-----------------------+----------------------------------------------+------------+---------------------+-----+
RAGFlow(admin)> STATS USER 'aaa@aaa.com ' FROM '2026-01-01' TO '2026-02-01' MONTH;
+-----------------+----------------------------------------+------------+-------------+---------------------+-------------+
| command | error | from_date | granularity | to_date | user_name |
+-----------------+----------------------------------------+------------+-------------+---------------------+-------------+
| get_token_stats | 'Get API token stats' is not supported | 2026-01-01 | month | 2026-02-01 23:59:59 | aaa@aaa.com |
+-----------------+----------------------------------------+------------+-------------+---------------------+-------------+
RAGFlow(admin)> STATS SUMMARY FROM '2026-01-01' TO '2026-02-01' MONTH;
+-----------+------------------------------------------------+
| field | value |
+-----------+------------------------------------------------+
| to_date | 2026-02-01 23:59:59 |
| command | get_token_stats_summary |
| error | 'Get API token stats summary' is not supported |
| from_date | 2026-01-01 |
+-----------+------------------------------------------------+
```
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-20 14:24:28 +08:00
Jin Hai
bdef878821
Go: fix nats and go command ( #16828 )
...
### Summary
1. update docker compose file to start NATS healthy
2. Add two commands
```
RAGFlow(admin)> live;
SUCCESS
RAGFlow(admin)> health;
+---------------+-------+
| field | value |
+---------------+-------+
| storage | ok |
| message_queue | ok |
| status | ok |
| db | ok |
| redis | ok |
| doc_engine | ok |
+---------------+-------+
```
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-11 19:37:57 +08:00
Jin Hai
106c2d0a41
Go: add show users plan quota ( #16818 )
...
### Summary
```
RAGFlow(admin)> show users plan quota 100;
+---------+------------------------------------------+
| field | value |
+---------+------------------------------------------+
| quota | 100 |
| command | show_users_plan_quota |
| error | 'Show users plan quota' is not supported |
+---------+------------------------------------------+
```
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-10 20:27:33 +08:00
Jin Hai
21266286cb
Go: add more commands and GCS supports ( #16741 )
...
### Summary
1. GCS supports
2. More commands
```
RAGFlow(admin)> ping store;
SUCCESS
RAGFlow(admin)> ping engine;
SUCCESS
RAGFlow(admin)> ping cache;
SUCCESS
```
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-08 17:49:02 +08:00
Jin Hai
f4f9e4466b
Go CLI: fix list provider models ( #16493 )
...
### Summary
As title.
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-01 19:08:17 +08:00
qinling0210
7862f69f39
Implement chat completions in go ( #16491 )
...
### Summary
POST /api/v1/chat/completions
2026-07-01 15:52:52 +08:00
Jin Hai
bd56a1473f
Go CLI: merge function ( #16458 )
...
### Summary
1. remove unused code.
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-30 15:47:26 +08:00
Jin Hai
6370fce3f0
Go CLI: add show users plan summary ( #16463 )
...
### Summary
```
RAGFlow(admin)> show users plan summary;
+---------+----------------------------------------------------------------+
| field | value |
+---------+----------------------------------------------------------------+
| command | show_users_plan_summary |
| error | 'Show users plan summary' is implemented in enterprise edition |
+---------+----------------------------------------------------------------+
```
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-29 22:28:45 +08:00
Jin Hai
7c1edca15e
Go CLI: fix api commands ( #16457 )
...
### Summary
As title.
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-29 19:09:32 +08:00
Jin Hai
3202ec6abf
Go CLI: refactor commands ( #16447 )
...
### Summary
1. Move debug commands to dev file.
2. Refactor some commands syntax
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-29 17:03:26 +08:00
Jin Hai
d4ef3d21d1
Go CLI: Add create and drop commands ( #16430 )
...
### What problem does this PR solve?
1. Add CREATE and DROP DATASET / MEMORY / AGENT / SEARCH / CHAT.
2. Add option to build.sh to strip RAGFlow binary.
### Type of change
- [x] Refactoring
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-29 11:13:14 +08:00
Jin Hai
f763044889
Go CLI: Fix show admin server and api server ( #16382 )
...
### What problem does this PR solve?
RAGFlow(api/default)> show admin server;
RAGFlow(api/default)> show api server 'default';
RAGFlow(admin)> show admin server;
RAGFlow(admin)> show api server 'default';
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-26 19:16:14 +08:00
Jin Hai
2667995b25
Go CLI: Fix show model and list models ( #16380 )
...
### What problem does this PR solve?
```
RAGFlow(api/default)> show model 'WiseDiag-Z1 Think';
RAGFlow(api/default)> list models;
RAGFlow(admin)> show model 'WiseDiag-Z1 Think';
RAGFlow(admin)> list models;
```
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-26 15:36:01 +08:00
Jin Hai
8bc27d8df1
Go CLI: fix show variable ( #16370 )
...
### What problem does this PR solve?
```
RAGFlow(api/default)> show var 'mail.port';
+-----------+-----------+--------------+-------+
| data_type | name | setting_type | value |
+-----------+-----------+--------------+-------+
| integer | mail.port | config | 30 |
+-----------+-----------+--------------+-------+
```
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-26 13:51:56 +08:00
Jin Hai
58da1d6bc3
Go CLI: fix model related commands ( #16368 )
...
### What problem does this PR solve?
```
RAGFlow(api/default)> show provider 'zhipu-ai'
RAGFlow(api/default)> show provider 'zhipu-ai' instance 'test';
RAGFlow(api/default)> show provider 'zhipu-ai' instance 'test' balance;
RAGFlow(api/default)> show provider 'zhipu-ai' model 'glm-4.5';
```
### Type of change
- [x] Refactoring
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-26 07:07:49 +08:00
Jin Hai
dbefadd86a
Go CLI: refactor ( #16355 )
2026-06-25 20:36:50 +08:00
Jin Hai
edfa9be67f
Go CLI: fix list provider instance tasks ( #16345 )
2026-06-25 15:49:31 +08:00
Jin Hai
17b066e6ae
Go CLI: fix list dataset files by dataset name ( #16341 )
...
### What problem does this PR solve?
```
RAGFlow(api/default)> list dataset 'ccc' files;
Total: 1
```
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-25 13:41:58 +08:00
Jin Hai
7ef4a4a06a
Go CLI: list provider instance models, sync and list provider ( #16311 )
...
### What problem does this PR solve?
```
RAGFlow(api/default)> list provider 'zhipu-ai' instance 'test' models sync;
+------------+---------------+------------+-------------+------------------+---------------------------------------------+
| dimensions | max_dimension | max_tokens | model_types | name | thinking |
+------------+---------------+------------+-------------+------------------+---------------------------------------------+
| | | 128000 | [chat] | glm-4.5@z-ai | map[clear_thinking:true default_value:true] |
| | | 128000 | [chat] | glm-4.5-air@z-ai | map[clear_thinking:true default_value:true] |
| | | 202752 | [chat] | glm-4.6@z-ai | map[clear_thinking:true default_value:true] |
| | | 202752 | [chat] | glm-4.7@z-ai | map[clear_thinking:true default_value:true] |
| | | 202752 | [chat] | glm-5@z-ai | map[clear_thinking:true default_value:true] |
| | | 200000 | [chat] | glm-5-turbo@z-ai | map[clear_thinking:true default_value:true] |
| | | 202752 | [chat] | glm-5.1@z-ai | map[clear_thinking:true default_value:true] |
| | | | [chat] | glm-5.2@z-ai | |
+------------+---------------+------------+-------------+------------------+---------------------------------------------+
RAGFlow(api/default)> list provider 'zhipu-ai' instance 'test' models;
RAGFlow(api/default)> list dataset 'aaa' ingestion tasks;
RAGFlow(api/default)> list dataset '0abe79f9423311f1ad8d38a74640adcc' documents;
```
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-25 10:01:21 +08:00
Jin Hai
1fc02606ea
Go CLI: fix key commands ( #16306 )
...
### What problem does this PR solve?
```
RAGFlow(api/default)> set key 'ragflow-JgnarFSCUiV99oOvvMDei7ZzZg1cVlqGd1AMHrHeKE4';
SUCCESS
RAGFlow(api/default)> unset key;
SUCCESS
RAGFlow(api/default)> list provider 'zhipu-ai' instances;
RAGFlow(api/default)> list providers;
RAGFlow(api/default)> list available providers;
RAGFlow(api/default)> list provider 'zhipu-ai' instance 'test' models;
```
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-24 18:48:09 +08:00
Jin Hai
9624f70b22
Go CLI: refactor ( #16299 )
...
```
RAGFlow(api/default)> list dataset 'e93ab2c04ad111f1b17438a74640adcc' documents;
Total: 1
RAGFlow(api/default)> list datasets;
RAGFlow(api/default)> list chats;
Total: 2
RAGFlow(api/default)> list agents;
Total: 1
RAGFlow(api/default)> list searches;
Total: 1
RAGFlow(api/default)> list keys;
+----------------------------------+---------------+----------------------------------+-----------------------------------------------------+---------------+
| beta | create_time | tenant_id | token | update_time |
+----------------------------------+---------------+----------------------------------+-----------------------------------------------------+---------------+
| GKsLEdSUkl76gJz1k_4fJpSQRIlWsiki | 1782285917523 | 2ba4881420fa11f19e9c38a74640adcc | ragflow-JgnarFSCUiV99oOvvMDei7ZzZg1cVlqGd1AMHrHeKE4 | 1782285917523 |
+----------------------------------+---------------+----------------------------------+-----------------------------------------------------+---------------+
RAGFlow(api/default)> create key;
SUCCESS
RAGFlow(api/default)> drop key 'ragflow-aA4R7AuUD158yh2LDh7IDBiqwOKFDKeTwUSQSLVdPdM';
SUCCESS
```
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-24 16:50:40 +08:00
Jin Hai
dec2ce4a60
Go CLI: admin model framework ( #16252 )
2026-06-23 16:57:05 +08:00
Jin Hai
b661e9c19e
Go CLI: admin list providers ( #16243 )
...
### What problem does this PR solve?
```
RAGFlow(admin)> list providers;
+----------------------+-------------------------------------------------------------+
| command | error |
+----------------------+-------------------------------------------------------------+
| list_model_providers | 'list model providers' is implemented in enterprise edition |
+----------------------+-------------------------------------------------------------+
RAGFlow(admin)> add provider 'zhipu-ai';
+-------------+-----------------------------------------------------------+
| field | value |
+-------------+-----------------------------------------------------------+
| command | add_model_provider |
| error | 'add model provider' is implemented in enterprise edition |
| provider_id | admin |
| user_id | zhipu-ai |
+-------------+-----------------------------------------------------------+
RAGFlow(admin)> delete provider 'zhipu-ai';
+-------------+--------------------------------------------------------------+
| field | value |
+-------------+--------------------------------------------------------------+
| command | delete_model_provider |
| error | 'delete model provider' is implemented in enterprise edition |
| provider_id | admin |
| user_id | zhipu-ai |
+-------------+--------------------------------------------------------------+
RAGFlow(admin)> add provider 'zhipu-ai' instance 'instance1';
+---------------+-----------------------------------------------------------+
| field | value |
+---------------+-----------------------------------------------------------+
| command | add_model_instance |
| error | 'add model instance' is implemented in enterprise edition |
| instance_name | instance1 |
| provider_id | zhipu-ai |
| user_id | admin |
+---------------+-----------------------------------------------------------+
RAGFlow(admin)> delete provider 'zhipu-ai' instance 'test'
+-------------+--------------------------------------------------------------+
| field | value |
+-------------+--------------------------------------------------------------+
| instances | [test] |
| provider_id | zhipu-ai |
| user_id | admin |
| command | delete_model_provider |
| error | 'delete model instance' is implemented in enterprise edition |
+-------------+--------------------------------------------------------------+
RAGFlow(admin)> add provider 'zhipu-ai' instance 'instance1' model 'xxx';
+---------------+--------------------------------------------------+
| field | value |
+---------------+--------------------------------------------------+
| command | add_model |
| error | 'add model' is implemented in enterprise edition |
| instance_name | instance1 |
| model_names | [xxx] |
| provider_id | zhipu-ai |
| user_id | admin |
+---------------+--------------------------------------------------+
RAGFlow(admin)> delete provider 'zhipu-ai' instance 'test' model 'xxx';
+---------------+------------------------------------------------------+
| field | value |
+---------------+------------------------------------------------------+
| command | delete_model_provider |
| error | 'delete models' is implemented in enterprise edition |
| instance_name | test |
| models | [xxx] |
| provider_id | zhipu-ai |
| user_id | admin |
+---------------+------------------------------------------------------+
```
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-23 10:26:31 +08:00
Jin Hai
0e6b28a7fe
Add show / set role default models ( #16240 )
...
### What problem does this PR solve?
```
RAGFlow(admin)> show role 'user' default models;
+--------------------------+-----------------------------------------------------------------+-----------+
| command | error | role_name |
+--------------------------+-----------------------------------------------------------------+-----------+
| show_role_default_models | 'show role default models' is implemented in enterprise edition | user |
+--------------------------+-----------------------------------------------------------------+-----------+
RAGFlow(admin)> set role 'user' default chat 'glm4.5@test@zhipu-ai';
+------------+---------------------------------------------------------------+
| field | value |
+------------+---------------------------------------------------------------+
| model_id | |
| model_type | chat |
| role_name | user |
| command | set_role_default_model |
| error | 'set role default model' is implemented in enterprise edition |
+------------+---------------------------------------------------------------+
RAGFlow(admin)> reset role 'user' default chat;
+------------+-----------------------------------------------------------------+
| field | value |
+------------+-----------------------------------------------------------------+
| command | reset_role_default_model |
| error | 'reset role default model' is implemented in enterprise edition |
| model_type | chat |
| role_name | user |
+------------+-----------------------------------------------------------------+
```
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-22 19:03:36 +08:00
Jin Hai
05e758e4fe
Go CLI: Fix alter role ( #16226 )
...
### What problem does this PR solve?
As title.
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-22 17:33:47 +08:00
Jin Hai
760229d917
Go CLI: admin list configs ( #16221 )
...
### What problem does this PR solve?
- list configs;
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-22 08:19:23 +08:00
Jin Hai
5039f46999
Go CLI: refactor commands ( #16213 )
...
### What problem does this PR solve?
As title.
### Type of change
- [x] Refactoring
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-21 16:50:02 +08:00
Jin Hai
1b712be599
Go CLI: refactor some commands ( #16204 )
...
### What problem does this PR solve?
- list resources
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
- [x] Refactoring
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-20 02:31:07 +08:00
Jin Hai
11499f7bb3
Go CLI: add list user commands framework ( #16201 )
2026-06-19 15:09:54 +08:00
qinling0210
563d855780
Implement OpenAI chat completions in GO ( #16177 )
...
### What problem does this PR solve?
Implement OpenAI chat completions in GO
POST /api/v1/openai/<chat_id>/chat/completions
OpenAI chat cli: internal/development.md
### Type of change
- [x] Refactoring
2026-06-18 18:07:27 +08:00
Jin Hai
3eb49ca7f8
Go: add command, list, remove, stop tasks ( #16190 )
...
### What problem does this PR solve?
```
RAGFlow(admin)> stop user 'abc' ingestion tasks;
+-----------------------------------+-------+--------------------------------------------------------------------------+-------+
| command | email | error | tasks |
+-----------------------------------+-------+--------------------------------------------------------------------------+-------+
| stop_ingestion_tasks_by_condition | abc | 'Stop ingestion tasks by condition' is implemented in enterprise edition | |
+-----------------------------------+-------+--------------------------------------------------------------------------+-------+
RAGFlow(admin)> stop user 'abc' ingestion tasks 'created;
+-----------------------------------+-------+--------------------------------------------------------------------------+----------+-------+
| command | email | error | status | tasks |
+-----------------------------------+-------+--------------------------------------------------------------------------+----------+-------+
| stop_ingestion_tasks_by_condition | abc | 'Stop ingestion tasks by condition' is implemented in enterprise edition | created; | |
+-----------------------------------+-------+--------------------------------------------------------------------------+----------+-------+
RAGFlow(admin)> stop user 'abc' ingestion tasks 'create';
+-----------------------------------+-------+--------------------------------------------------------------------------+--------+-------+
| command | email | error | status | tasks |
+-----------------------------------+-------+--------------------------------------------------------------------------+--------+-------+
| stop_ingestion_tasks_by_condition | abc | 'Stop ingestion tasks by condition' is implemented in enterprise edition | create | |
+-----------------------------------+-------+--------------------------------------------------------------------------+--------+-------+
RAGFlow(admin)> remove user 'abc' ingestion tasks 'create';
+-------------------------------------+-------+----------------------------------------------------------------------------+--------+-------+
| command | email | error | status | tasks |
+-------------------------------------+-------+----------------------------------------------------------------------------+--------+-------+
| remove_ingestion_tasks_by_condition | abc | 'Remove ingestion tasks by condition' is implemented in enterprise edition | create | |
+-------------------------------------+-------+----------------------------------------------------------------------------+--------+-------+
RAGFlow(admin)> remove user 'abc' ingestion tasks;
+-------------------------------------+-------+----------------------------------------------------------------------------+-------+
| command | email | error | tasks |
+-------------------------------------+-------+----------------------------------------------------------------------------+-------+
| remove_ingestion_tasks_by_condition | abc | 'Remove ingestion tasks by condition' is implemented in enterprise edition | |
+-------------------------------------+-------+----------------------------------------------------------------------------+-------+
```
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-18 17:50:21 +08:00
Jin Hai
5eedd13d49
Go: add command, show tasks summary ( #16187 )
...
### What problem does this PR solve?
RAGFlow(admin)> show tasks summary;
+---------+-----------------------------------------------------------------+
| field | value |
+---------+-----------------------------------------------------------------+
| command | show_users_quota_summary |
| error | 'Show users quota summary' is implemented in enterprise
edition |
+---------+-----------------------------------------------------------------+
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-18 17:09:20 +08:00
Jin Hai
20d11648a4
Go: add statistics command ( #16119 )
...
### What problem does this PR solve?
Prepare for enterprise command
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-18 15:21:44 +08:00
Jin Hai
417f805bd9
Go: add API mode check in file system command ( #16022 )
...
### What problem does this PR solve?
As title.
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-06-15 16:37:47 +08:00