ragflow-cli 0.26.4__tar.gz → 0.27.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/PKG-INFO +3 -3
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/README.md +1 -1
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/parser.py +37 -0
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/pyproject.toml +7 -2
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/ragflow_cli.egg-info/PKG-INFO +3 -3
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/ragflow_cli.egg-info/requires.txt +1 -1
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/ragflow_client.py +577 -299
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/http_client.py +0 -0
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/ragflow_cli.egg-info/SOURCES.txt +0 -0
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/ragflow_cli.egg-info/dependency_links.txt +0 -0
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/ragflow_cli.egg-info/entry_points.txt +0 -0
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/ragflow_cli.egg-info/top_level.txt +0 -0
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/ragflow_cli.py +0 -0
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/setup.cfg +0 -0
- {ragflow_cli-0.26.4 → ragflow_cli-0.27.0}/user.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ragflow-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.27.0
|
|
4
4
|
Summary: Admin Service's client of [RAGFlow](https://github.com/infiniflow/ragflow). The Admin Service provides user management and system monitoring.
|
|
5
5
|
Author-email: Lynn <lynn_inf@hotmail.com>
|
|
6
6
|
License: Apache License, Version 2.0
|
|
7
7
|
Requires-Python: <3.14,>=3.13
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
Requires-Dist: requests<3.0.0,>=2.30.0
|
|
10
|
-
Requires-Dist: beartype<1.0.0,>=0.
|
|
10
|
+
Requires-Dist: beartype<1.0.0,>=0.22.9
|
|
11
11
|
Requires-Dist: pycryptodomex>=3.10.0
|
|
12
12
|
Requires-Dist: lark>=1.1.0
|
|
13
13
|
Requires-Dist: requests-toolbelt>=1.0.0
|
|
@@ -62,7 +62,7 @@ It consists of a server-side Service and a command-line client (CLI), both imple
|
|
|
62
62
|
1. Ensure the Admin Service is running.
|
|
63
63
|
2. Install ragflow-cli.
|
|
64
64
|
```bash
|
|
65
|
-
pip install ragflow-cli==0.
|
|
65
|
+
pip install ragflow-cli==0.27.0
|
|
66
66
|
```
|
|
67
67
|
3. Launch the CLI client:
|
|
68
68
|
```bash
|
|
@@ -48,7 +48,7 @@ It consists of a server-side Service and a command-line client (CLI), both imple
|
|
|
48
48
|
1. Ensure the Admin Service is running.
|
|
49
49
|
2. Install ragflow-cli.
|
|
50
50
|
```bash
|
|
51
|
-
pip install ragflow-cli==0.
|
|
51
|
+
pip install ragflow-cli==0.27.0
|
|
52
52
|
```
|
|
53
53
|
3. Launch the CLI client:
|
|
54
54
|
```bash
|
|
@@ -112,6 +112,8 @@ sql_command: login_user
|
|
|
112
112
|
| set_license
|
|
113
113
|
| set_license_config
|
|
114
114
|
| show_license
|
|
115
|
+
| generate_nav_for_dataset
|
|
116
|
+
| navigation_search
|
|
115
117
|
| check_license
|
|
116
118
|
| benchmark
|
|
117
119
|
|
|
@@ -171,6 +173,9 @@ ENVS: "ENVS"i
|
|
|
171
173
|
KEY: "KEY"i
|
|
172
174
|
KEYS: "KEYS"i
|
|
173
175
|
GENERATE: "GENERATE"i
|
|
176
|
+
NAVIGATION: "NAVIGATION"i
|
|
177
|
+
MODE: "MODE"i
|
|
178
|
+
TOPK: "TOPK"i
|
|
174
179
|
MODEL: "MODEL"i
|
|
175
180
|
MODELS: "MODELS"i
|
|
176
181
|
PROVIDER: "PROVIDER"i
|
|
@@ -194,6 +199,7 @@ SIZE: "SIZE"i
|
|
|
194
199
|
PARSER: "PARSER"i
|
|
195
200
|
PIPELINE: "PIPELINE"i
|
|
196
201
|
SEARCH: "SEARCH"i
|
|
202
|
+
EXPLORE: "EXPLORE"i
|
|
197
203
|
CURRENT: "CURRENT"i
|
|
198
204
|
LLM: "LLM"i
|
|
199
205
|
VLM: "VLM"i
|
|
@@ -373,6 +379,8 @@ create_metadata_table: CREATE METADATA TABLE ";"
|
|
|
373
379
|
drop_metadata_table: DROP METADATA TABLE ";"
|
|
374
380
|
insert_dataset_from_file: INSERT DATASET FROM FILE quoted_string ";"
|
|
375
381
|
insert_metadata_from_file: INSERT METADATA FROM FILE quoted_string ";"
|
|
382
|
+
generate_nav_for_dataset: GENERATE NAVIGATION OF DATASET quoted_string ";"
|
|
383
|
+
navigation_search: NAVIGATION SEARCH quoted_string IN DATASET quoted_string MODE quoted_string (TOPK NUMBER)? ";"
|
|
376
384
|
update_chunk: UPDATE CHUNK quoted_string OF DATASET quoted_string SET quoted_string ";"
|
|
377
385
|
|
|
378
386
|
identifier_list: identifier (COMMA identifier)*
|
|
@@ -788,6 +796,35 @@ class RAGFlowCLITransformer(Transformer):
|
|
|
788
796
|
file_path = items[4].children[0].strip("'\"")
|
|
789
797
|
return {"type": "insert_metadata_from_file", "file_path": file_path}
|
|
790
798
|
|
|
799
|
+
def generate_nav_for_dataset(self, items):
|
|
800
|
+
dataset_id = items[4].children[0].strip("'\"")
|
|
801
|
+
return {"type": "generate_nav_for_dataset", "dataset_id": dataset_id}
|
|
802
|
+
|
|
803
|
+
def navigation_search(self, items):
|
|
804
|
+
query = items[2].children[0].strip("'\"")
|
|
805
|
+
dataset_name = items[5].children[0].strip("'\"")
|
|
806
|
+
mode = items[7].children[0].strip("'\"")
|
|
807
|
+
topk = None
|
|
808
|
+
# If TOPK was specified, items will be longer.
|
|
809
|
+
if len(items) > 9:
|
|
810
|
+
try:
|
|
811
|
+
extra = items[8]
|
|
812
|
+
if hasattr(extra, "data"):
|
|
813
|
+
# group wrapper: extra.children = [TOPK, NUMBER]
|
|
814
|
+
topk = int(extra.children[1])
|
|
815
|
+
else:
|
|
816
|
+
# flattened: items[8] = TOPK, items[9] = NUMBER
|
|
817
|
+
topk = int(items[9])
|
|
818
|
+
except (ValueError, IndexError):
|
|
819
|
+
topk = None
|
|
820
|
+
return {
|
|
821
|
+
"type": "navigation_search",
|
|
822
|
+
"query": query,
|
|
823
|
+
"dataset_id": dataset_name,
|
|
824
|
+
"mode": mode,
|
|
825
|
+
"topk": topk,
|
|
826
|
+
}
|
|
827
|
+
|
|
791
828
|
def update_chunk(self, items):
|
|
792
829
|
def get_quoted_value(item):
|
|
793
830
|
if hasattr(item, "children") and item.children:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "ragflow-cli"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.27.0"
|
|
4
4
|
description = "Admin Service's client of [RAGFlow](https://github.com/infiniflow/ragflow). The Admin Service provides user management and system monitoring. "
|
|
5
5
|
authors = [{ name = "Lynn", email = "lynn_inf@hotmail.com" }]
|
|
6
6
|
license = { text = "Apache License, Version 2.0" }
|
|
@@ -8,7 +8,7 @@ readme = "README.md"
|
|
|
8
8
|
requires-python = ">=3.13,<3.14"
|
|
9
9
|
dependencies = [
|
|
10
10
|
"requests>=2.30.0,<3.0.0",
|
|
11
|
-
"beartype>=0.
|
|
11
|
+
"beartype>=0.22.9,<1.0.0",
|
|
12
12
|
"pycryptodomex>=3.10.0",
|
|
13
13
|
"lark>=1.1.0",
|
|
14
14
|
"requests-toolbelt>=1.0.0",
|
|
@@ -20,6 +20,11 @@ test = [
|
|
|
20
20
|
"requests>=2.32.3",
|
|
21
21
|
]
|
|
22
22
|
|
|
23
|
+
[tool.uv]
|
|
24
|
+
constraint-dependencies = [
|
|
25
|
+
"urllib3>=2.7.0",
|
|
26
|
+
]
|
|
27
|
+
|
|
23
28
|
[tool.setuptools]
|
|
24
29
|
py-modules = ["ragflow_cli", "parser", "http_client", "ragflow_client", "user"]
|
|
25
30
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ragflow-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.27.0
|
|
4
4
|
Summary: Admin Service's client of [RAGFlow](https://github.com/infiniflow/ragflow). The Admin Service provides user management and system monitoring.
|
|
5
5
|
Author-email: Lynn <lynn_inf@hotmail.com>
|
|
6
6
|
License: Apache License, Version 2.0
|
|
7
7
|
Requires-Python: <3.14,>=3.13
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
Requires-Dist: requests<3.0.0,>=2.30.0
|
|
10
|
-
Requires-Dist: beartype<1.0.0,>=0.
|
|
10
|
+
Requires-Dist: beartype<1.0.0,>=0.22.9
|
|
11
11
|
Requires-Dist: pycryptodomex>=3.10.0
|
|
12
12
|
Requires-Dist: lark>=1.1.0
|
|
13
13
|
Requires-Dist: requests-toolbelt>=1.0.0
|
|
@@ -62,7 +62,7 @@ It consists of a server-side Service and a command-line client (CLI), both imple
|
|
|
62
62
|
1. Ensure the Admin Service is running.
|
|
63
63
|
2. Install ragflow-cli.
|
|
64
64
|
```bash
|
|
65
|
-
pip install ragflow-cli==0.
|
|
65
|
+
pip install ragflow-cli==0.27.0
|
|
66
66
|
```
|
|
67
67
|
3. Launch the CLI client:
|
|
68
68
|
```bash
|