knowledge-studio-cli 1.5.0 → 1.6.1

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.
package/README.md CHANGED
@@ -28,20 +28,29 @@ npm install -g knowledge-studio-cli
28
28
  ## Quick Start
29
29
 
30
30
  ```bash
31
- # Retrieve from a knowledge base
32
- kscli retrieve \
33
- --index-id <your-index-id> \
34
- --query "What is Model Studio?"
31
+ # Search a knowledge base
32
+ kscli search \
33
+ --query "What is Model Studio?" \
34
+ --agent-id <your-agent-id> \
35
+ --workspace-id <your-workspace-id>
36
+
37
+ # Chat with a knowledge base
38
+ kscli chat \
39
+ --message "What is RAG?" \
40
+ --agent-id <your-agent-id> \
41
+ --workspace-id <your-workspace-id>
35
42
  ```
36
43
 
37
44
  ## Commands
38
45
 
39
- | Command | Description |
40
- | :------------ | :-------------------------------- |
41
- | `retrieve` | Query a knowledge base (RAG) |
42
- | `config show` | Display current configuration |
43
- | `config set` | Set a configuration value |
44
- | `update` | Self-update to the latest version |
46
+ | Command | Description |
47
+ | :------------ | :------------------------------------------------ |
48
+ | `search` | Semantic search across knowledge bases (RAG) |
49
+ | `chat` | Knowledge-base Q&A with streaming (RAG) |
50
+ | `retrieve` | Query a knowledge base (deprecated, use `search`) |
51
+ | `config show` | Display current configuration |
52
+ | `config set` | Set a configuration value |
53
+ | `update` | Self-update to the latest version |
45
54
 
46
55
  ## Authentication
47
56
 
@@ -55,7 +64,7 @@ export DASHSCOPE_API_KEY=sk-xxxxx
55
64
  kscli config set --key api_key --value sk-xxxxx
56
65
 
57
66
  # Option 3: Per-command flag
58
- kscli retrieve --api-key sk-xxxxx --index-id <id> --query "..."
67
+ kscli search --api-key sk-xxxxx --query "..." --agent-id <id> --workspace-id <id>
59
68
  ```
60
69
 
61
70
  ## Configuration
package/README.zh.md CHANGED
@@ -29,19 +29,28 @@ npm install -g knowledge-studio-cli
29
29
 
30
30
  ```bash
31
31
  # 检索知识库
32
- kscli retrieve \
33
- --index-id <your-index-id> \
34
- --query "什么是 Model Studio?"
32
+ kscli search \
33
+ --query "什么是 Model Studio?" \
34
+ --agent-id <your-agent-id> \
35
+ --workspace-id <your-workspace-id>
36
+
37
+ # 知识库问答
38
+ kscli chat \
39
+ --message "什么是RAG?" \
40
+ --agent-id <your-agent-id> \
41
+ --workspace-id <your-workspace-id>
35
42
  ```
36
43
 
37
44
  ## 命令列表
38
45
 
39
- | 命令 | 说明 |
40
- | :------------ | :---------------- |
41
- | `retrieve` | 查询知识库(RAG) |
42
- | `config show` | 显示当前配置 |
43
- | `config set` | 设置配置项 |
44
- | `update` | 自更新到最新版本 |
46
+ | 命令 | 说明 |
47
+ | :------------ | :------------------------------------ |
48
+ | `search` | 知识库语义检索(RAG) |
49
+ | `chat` | 知识库问答(流式输出) |
50
+ | `retrieve` | 查询知识库(已弃用,请使用 `search`) |
51
+ | `config show` | 显示当前配置 |
52
+ | `config set` | 设置配置项 |
53
+ | `update` | 自更新到最新版本 |
45
54
 
46
55
  ## 认证方式
47
56
 
@@ -55,7 +64,7 @@ export DASHSCOPE_API_KEY=sk-xxxxx
55
64
  kscli config set --key api_key --value sk-xxxxx
56
65
 
57
66
  # 方式三:命令行参数
58
- kscli retrieve --api-key sk-xxxxx --index-id <id> --query "..."
67
+ kscli search --api-key sk-xxxxx --query "..." --agent-id <id> --workspace-id <id>
59
68
  ```
60
69
 
61
70
  ## 配置
package/dist/kscli.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import{createCli as e}from"bailian-cli-runtime";import{configSet as t,configShow as n,knowledgeRetrieve as r,update as i}from"bailian-cli-commands";e({"config show":n,"config set":t,update:i,retrieve:r},{binName:`kscli`,version:`1.5.0`,clientName:`knowledge-studio-cli`,npmPackage:`knowledge-studio-cli`}).run();export{};
3
+ import{createCli as e}from"bailian-cli-runtime";import{configSet as t,configShow as n,knowledgeChat as r,knowledgeRetrieve as i,knowledgeSearch as a,update as o}from"bailian-cli-commands";e({"config show":n,"config set":t,update:o,retrieve:i,search:a,chat:r},{binName:`kscli`,version:`1.6.1`,clientName:`knowledge-studio-cli`,npmPackage:`knowledge-studio-cli`}).run();export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowledge-studio-cli",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "description": "Lightweight RAG CLI for Aliyun Model Studio — focused on knowledge-base retrieval.",
5
5
  "keywords": [
6
6
  "alibaba-cloud",
@@ -38,9 +38,9 @@
38
38
  "registry": "https://registry.npmjs.org/"
39
39
  },
40
40
  "dependencies": {
41
- "bailian-cli-core": "1.5.0",
42
- "bailian-cli-runtime": "1.5.0",
43
- "bailian-cli-commands": "1.5.0"
41
+ "bailian-cli-commands": "1.6.1",
42
+ "bailian-cli-runtime": "1.6.1",
43
+ "bailian-cli-core": "1.6.1"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@clack/prompts": "^0.7.0",