OpenParable
Skip to content
← Back to skills

Weknora Kb

Research
weknora-kb

Weknora Kb is an Agent Skill for research published in the MGdaasLab/WHartTest repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

WeKnora知识库查询工具。用于在WeKnora知识管理平台中搜索知识库文档片段。当用户需要检索知识库内容、搜索相关文档时使用。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/MGdaasLab/WHartTest/blob/HEAD/WHartTest_Skills/weknora-kb-skill/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/weknora-kb, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

WeKnora 知识库查询工具

快速开始

# 设置环境变量
export WEKNORA_BASE_URL="http://your-weknora:8080/api/v1"
export WEKNORA_API_KEY="sk-your-api-key"

# 执行操作
python weknora_kb.py --action <action_name> [--参数名 参数值]

可用操作

Action描述参数
list_knowledge_bases列出所有可用知识库无
search_knowledge搜索知识库文档片段--query, --knowledge_base_ids(逗号分隔), --knowledge_ids(可选,逗号分隔)

参数说明

  • --query — 搜索的文本内容
  • --knowledge_base_ids — 要搜索的知识库ID列表,多个用逗号分隔
  • --knowledge_ids — 可选,限定搜索的文档ID列表,多个用逗号分隔

使用示例

# 列出所有知识库
python weknora_kb.py --action list_knowledge_bases

# 在指定知识库中搜索
python weknora_kb.py --action search_knowledge \
  --query "用户管理" \
  --knowledge_base_ids "kb-id-1,kb-id-2"

输出格式

所有操作返回 JSON 格式结果,便于解析处理。

  • list_knowledge_bases 返回:[{"id": "...", "name": "...", "description": "..."}]
  • search_knowledge 返回:[{"content": "...", "knowledge_title": "...", "score": 0.95, "chunk_index": 0}]