본문으로 건너뛰기
cccskills
무료GitHub에 공개

byted-bytehouse-knowledge-base-management

ByteHouse 知识库的管理能力,包括创建知识库、添加知识库内容、查询知识库

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(11)

  • SKILL.md3.3 KB
  • LICENSE633 B
  • scripts/create_knowledge_base.py5.5 KB
  • scripts/delete_file_from_kb.py3.4 KB
  • scripts/delete_knowledge_base.py3.3 KB
  • scripts/export_config.sh540 B
  • scripts/knowledge_base_chat.py5.0 KB
  • scripts/list_files_in_kb.py3.4 KB
  • scripts/list_knowledge_base.py3.0 KB
  • scripts/recall_knowledge_base.py5.4 KB
  • scripts/upload_file_to_kb.py9.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

byted-bytehouse-knowledge-base-management

描述

ByteHouse Knowledge Base Management,提供 ByteHouse 知识库的管理能力,包括创建知识库、添加知识库内容、查询知识库

📁 文件说明

  • SKILL.md - 本文件,技能主文档
  • create_knowledge_base.py - 创建知识库脚本
  • recall_knowledge_base.py - 知识库文件召回脚本
  • upload_file_to_kb.py - 上传文件到知识库脚本(pdf/md/docx/xlsx)
  • delete_file_from_kb.py - 删除知识库内容脚本
  • delete_knowledge_base.py - 删除知识库脚本
  • list_files_in_kb.py - 查询知识库文件列表脚本
  • list_knowledge_base.py - 查询知识库列表脚本
  • knowledge_base_chat.py - 知识库流式问答脚本

配置说明

配置保存在 ~/.bytehouse_config.json ,如果该文件存在且非空,则直接使用文件中的配置。如果不存在,则让用户提供ByteHouse连接信息( 把这个文档也发给用户,文档里面介绍了如何获取主机地址和密码:https://www.volcengine.com/docs/6517/1121919?lang=zh )。用户提供信息后,保存到json文件,避免重复向用户请求连接信息。当用户切换ByteHouse集群时,一并修改该文件。

{
   "BYTEHOUSE_HOST": "<ByteHouse-host>",
   "BYTEHOUSE_PASSWORD": "<ByteHouse-password>"
}

BYTEHOUSE_HOST(主机地址)和BYTEHOUSE_PASSWORD(密码)必须由用户提供

执行 scripts/export_config.sh 把配置信息导入环境变量中

source scripts/export_config.sh

风险预警

当用户希望删除知识库中的某个文件,或者删除整个知识库时,必须提示用户数据不可恢复,向用户再次确认后再执行。

前置条件

  • Python 3.8+
  • uv (已安装在 /root/.local/bin/uv)

🚀 使用方法

以下是每个脚本的具体使用指令示例。在执行这些脚本前,请确保已经导入了配置:

# 导入配置
source scripts/export_config.sh

1. 创建知识库 (create_knowledge_base.py)

python3 scripts/create_knowledge_base.py "我的知识库"
# 可选参数:--description "这是我的知识库描述"

2. 查询知识库列表 (list_knowledge_base.py)

python3 scripts/list_knowledge_base.py

3. 上传文件到知识库 (upload_file_to_kb.py)

python3 scripts/upload_file_to_kb.py --kb-id 123 --file ./document.pdf
# 可选参数:--chunk-size 512 --delimiters "#,##" --enable-image-ocr --enable-chunk-auto-merge

4. 查询知识库文件列表 (list_files_in_kb.py)

python3 scripts/list_files_in_kb.py --kb-id 123

5. 知识库文件召回 (recall_knowledge_base.py)

python3 scripts/recall_knowledge_base.py --kb-id 123 --query "你的搜索问题"

6. 知识库流式问答 (knowledge_base_chat.py)

python3 scripts/knowledge_base_chat.py --kb-ids 123 --input "你的提问"

7. 删除知识库内容 (delete_file_from_kb.py)

python3 scripts/delete_file_from_kb.py --file-id 456

8. 删除知识库 (delete_knowledge_base.py)

python3 scripts/delete_knowledge_base.py --kb-id 123

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Deploy, update, validate, and troubleshoot the AgentKit hybrid-cloud customer-service demo in this directory. Use when a user asks an AI coding agent to follow the README, deploy or update the demo, configure OpenAPI/Runtime/Knowledge/Memory/Sandbox/MCP/Skills/A2A, run customer-view validation, or record manual platform steps and failures.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bytedance/agentkit-samples4742026년 10월 16일 업데이트

Generate deterministic SVG algorithmic artwork. Invoke when the user asks for geometric, generative, or algorithmic visual art.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bytedance/agentkit-samples4742026년 10월 16일 업데이트

通过本地 Python CLI 和 OpenAPI 客户端管理、排查火山云手机资源。适用于查询实例和资源、截图、执行命令、查看任务、检查应用、主机和机房容量、标签、DNS、路由,以及操作已授权的测试云手机实例。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bytedance/agentkit-samples4742026년 10월 16일 업데이트

Launch and continue the Volcengine AI Research survey workflow for concept testing, audience design, questionnaire drafting, interview guide generation, execution confirmation, progress checks, and result queries. Use this skill when the user wants to create, revise, confirm, execute, or follow up on a real AI research survey task in ABCompass instead of doing generic brainstorming, copywriting, translation, summarization, or broad market discussion.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bytedance/agentkit-samples4742026년 10월 16일 업데이트

Create and check long-running video material evaluation tasks. Use this skill when the user wants to submit videos for evaluation, check an existing video evaluation task list, or fetch the result of a previously created video evaluation task. This skill is not a general-purpose video upload skill because upload is allowed only as an internal step of task creation. Authentication uses an API key passed as an Authorization bearer token.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bytedance/agentkit-samples4742026년 10월 16일 업데이트

火山引擎 AntiDDoSPro 高防域名只读巡检。用户要查域名健康、攻击、流量、CC/WAF/区域封禁、智能防护或 CCAI 状态时使用。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bytedance/agentkit-samples4742026년 10월 16일 업데이트

bytedance의 스킬 모두 보기

이 스킬의 문제 신고