返回顶部
f

felo-livedoc Felo知识库管理

Manage Felo LiveDocs (knowledge bases) and their resources. Use when users want to create, manage, or query knowledge bases, upload documents, add URLs, or perform semantic retrieval over a knowledge base. Explicit commands: /felo-livedoc."

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
318
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

felo-livedoc

Felo LiveDoc 技能

使用场景

当用户想要以下操作时触发此技能:

  • - 创建/管理知识库: 创建、列出、更新或删除 LiveDoc
  • 添加资源: 上传文档、添加 URL 或在 LiveDoc 中创建文本文档
  • 语义检索: 使用自然语言查询跨知识库资源进行搜索
  • 资源管理: 列出、查看或删除 LiveDoc 中的资源

触发词:

  • - 英文:knowledge base, livedoc, live doc, upload document, add URL, semantic search, retrieve, knowledge retrieval
  • 简体中文:知识库, 文档库, 上传文档, 添加链接, 语义检索, 知识检索

显式命令: /felo-livedoc,livedoc,felo livedoc

请勿用于:

  • - 通用网页搜索(使用 felo-search)
  • PPT 生成(使用 felo-slides)
  • SuperAgent 对话(使用 felo-superAgent)

设置

1. 获取您的 API 密钥

  1. 1. 访问 felo.ai 并登录(或注册)
  2. 点击右上角头像 → 设置
  3. 导航至API 密钥选项卡
  4. 点击创建新密钥生成新的 API 密钥
  5. 安全地复制并保存您的 API 密钥

2. 配置 API 密钥

设置 FELOAPIKEY 环境变量:

Linux/macOS:
bash
export FELOAPIKEY=your-api-key-here

Windows(PowerShell):
powershell
$env:FELOAPIKEY=your-api-key-here

执行方法

当此技能被触发时,使用 Bash 工具执行 livedoc 脚本:

LiveDoc 管理

创建 LiveDoc:
bash
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs create --name 知识库名称 --description 描述

列出 LiveDoc:
bash
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs list
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs list --keyword 搜索关键词

更新 LiveDoc:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs update SHORTID --name 新名称 --description 新描述

删除 LiveDoc:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs delete SHORTID

资源管理

添加文本文档:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs add-doc SHORTID --title 文档标题 --content 文档内容

添加 URL(最多 10 个,以逗号分隔):
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs add-urls SHORTID --urls https://example.com,https://example.org

上传文件:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs upload SHORTID --file ./document.pdf
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs upload SHORTID --file ./document.pdf --convert

列出资源:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs resources SHORTID

获取单个资源:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs resource SHORTID RESOURCE_ID

删除资源:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs remove-resource SHORTID RESOURCE_ID

语义检索

跨资源搜索:
bash
node ~/.agents/skills/felo-livedoc/scripts/runlivedoc.mjs retrieve SHORTID --query 您的搜索查询

选项

所有命令支持:

  • - --json 或 -j — 输出原始 JSON 响应
  • --timeout 或 -t — 请求超时时间(毫秒,默认:60000)

解析和格式化响应

API 返回具有以下结构的 JSON:
json
{
status: ok,
message: success,
data: { ... }
}

LiveDoc 对象:

  • - shortid — 唯一标识符(所有操作使用此标识)
  • name — LiveDoc 名称
  • description — LiveDoc 描述
  • createdat / modified_at — 时间戳

资源对象:

  • - id — 资源标识符
  • title — 资源标题
  • resourcetype — 类型(web、aidoc、file 等)
  • status — 处理状态
  • snippet — 内容预览

检索结果:

  • - id — 资源 ID
  • title — 资源标题
  • content — 匹配的内容
  • score — 相关性评分(0-1)

错误处理

常见错误代码

  • - INVALIDAPIKEY — API 密钥无效或已撤销
  • LIVEDOCNOTFOUND — LiveDoc 不存在
  • LIVEDOCRESOURCENOTFOUND — 资源不存在
  • LIVEDOCCREATEFAILED — 创建 LiveDoc 失败
  • LIVEDOCRESOURCEUPLOADFAILED — 文件上传失败
  • LIVEDOCRESOURCEADDURLSFAILED — URL 添加失败
  • LIVEDOCRESOURCERETRIEVE_FAILED — 语义检索失败

缺少 API 密钥

如果未设置 FELOAPIKEY,显示以下消息:

错误:未设置 FELOAPIKEY。请从 https://felo.ai(设置 → API 密钥)获取您的 API 密钥。
设置方法:export FELOAPIKEY=your-key

重要说明

  • - 始终使用 create/list 返回的 short_id 来引用 LiveDoc
  • URL 资源每次请求限制为 10 个
  • 使用 --convert 配合 upload 将文件转换为可搜索文档
  • 语义检索返回按相关性评分排序的结果
  • 立即使用 Bash 工具执行 — 不要仅描述您将要执行的操作

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 felo-livedoc-1776108328 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 felo-livedoc-1776108328 技能

通过命令行安装

skillhub install felo-livedoc-1776108328

下载

⬇ 下载 felo-livedoc v1.0.0(免费)

文件大小: 8.02 KB | 发布时间: 2026-4-15 12:44

v1.0.0 最新 2026-4-15 12:44
Initial release of the felo-livedoc skill.

- Enables creation, management, and deletion of Felo LiveDocs (knowledge bases).
- Supports uploading documents, adding URLs, and creating text documents within a LiveDoc.
- Allows semantic search and retrieval across knowledge base resources.
- Provides commands for resource management, including listing, viewing, and deleting resources.
- Requires FELO_API_KEY for authentication and provides environment variable setup instructions.
- Includes explicit error handling and user guidance for setup and usage.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部