← ClaudeAtlas

bailian-knowledgelisted

Use when needing to search or retrieve information from Alibaba Cloud Bailian knowledge base, when user asks about knowledge base queries, document retrieval, semantic search, or any Bailian-powered information lookup
konglong87/rag_skills_ali · ★ 0 · AI & Automation · score 63
Install: claude install-skill konglong87/rag_skills_ali
# Bailian Knowledge Query 阿里云百炼知识库检索工具。编译好的二进制,零依赖运行,返回结构化 JSON。 ## Security Warning `config.json` 包含阿里云 AK/SK 密钥。 ## Prerequisites `config.json` 已配置(skill 目录下): ```json { "alibaba_cloud_access_key_id": "your_key", "alibaba_cloud_access_key_secret": "your_secret", "workspace_id": "your_workspace", "knowledge_index_id": "your_index", "endpoint": "bailian.cn-beijing.aliyuncs.com" } ``` ## Usage 根据操作系统选择二进制: | OS | Binary | |----|--------| | macOS | `bailian-query-mac` | | Linux amd64 | `bailian-query-linux` | | Windows amd64 | `bailian-query-win64.exe` | ```bash SKILL_DIR=$(dirname "$0") # macOS $SKILL_DIR/bin/bailian-query-mac -config $SKILL_DIR/config.json "初诊患者怎么随访" # Linux $SKILL_DIR/bin/bailian-query-linux -config $SKILL_DIR/config.json "初诊患者怎么随访" ``` ### Parameters | 参数 | 说明 | 必填 | |------|------|------| | `-config` | config.json 路径 | 是(默认 config.json) | | `<query>` | 检索查询语句 | 是 | | `[workspace_id]` | 覆盖配置中的 workspace_id | 否 | | `[index_id]` | 覆盖配置中的 knowledge_index_id | 否 | ### Examples ```bash # 基本查询 bailian-query-mac -config config.json "初诊患者怎么随访" # 覆盖 workspace 和 index bailian-query-mac -config config.json "吸入过敏原" custom_workspace custom_index ``` ## Output Structure 返回 JSON,核心字段: ``` { "Code": "Success", // 状态码: Success / 错误码 "Data": { "Nodes": [ // 匹配文档片段列表,按相关性降序 { "Score": 0.854, // 相关性评分 (0-1),>0.7 为高相关 "Text": "...", // 匹配的文档内容片段 "Metadata": {