Skip to content
Agentmart
Submit a tool

byted-bytehouse-knowledge-base-management

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

Skill by bytedanceOfficial

IndexedApache-2.0★ 473
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/bytedance-byted-bytehouse-knowledge-base-management

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/byted-bytehouse-knowledge-base-management

What's inside

Skill name
byted-bytehouse-knowledge-base-management
Description
ByteHouse 知识库的管理能力,包括创建知识库、添加知识库内容、查询知识库
License
Apache-2.0
Instructions
92 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (11)

  • LICENSE
  • SKILL.md
  • create_knowledge_base.py · scripts/
  • delete_file_from_kb.py · scripts/
  • delete_knowledge_base.py · scripts/
  • export_config.sh · scripts/
  • knowledge_base_chat.py · scripts/
  • list_files_in_kb.py · scripts/
  • list_knowledge_base.py · scripts/
  • recall_knowledge_base.py · scripts/
  • upload_file_to_kb.py · scripts/

SKILL.md (first lines)

# 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集群时,一并修改该文件。
```json
{
   "BYTEHOUSE_HOST": "<ByteHouse-host>",
   "BYTEHOUSE_PASSWORD": "<ByteHouse-password>"
}
```
BYTEHOUSE_HOST(主机地址)和BYTEHOUSE_PASSWORD(密码)**必须由**用户提供

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

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

## 前置条件

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

## 🚀 使用方法

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

```bash
# 导入配置
source scripts/export_config.sh
```

### 1. 创建知识库 (`create_knowledge_base.py`)
```bash
python3 scripts/create_knowledge_base.py "我的知识库"
# 可选参数:--description "这是我的知识库描述"
```

### 2. 查询知识库列表 (`list_knowledge_base.py`)
```bash
python3 scripts/list_knowledge_base.py
```

### 3. 上传文件到知识库 (`upload_file_to_kb.py`)
```bash
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`)
```bash
python3 scripts/list_files_in_kb.py --kb-id 123
```

### 5. 知识库文件召回 (`recall_knowledge_base.py`)
```bash
python3 scripts/recall_knowledge_base.py --kb-id 123 --query "你的搜索问题"
```

### 6. 知识库流式问答 (`knowledge_base_chat.py`)
```bash
python3 scripts/knowledge_base_chat.py --kb-ids 123 --input "你的提问"
```

### 7. 删除知识库内容 (`delete_file_from_kb.py`)
```bash
python3 scripts/delete_file_from_kb.py --file-id 456
```

### 8. 删除知识库 (`delete_knowledge_base.py`)
```bash
python3 scripts/delete_knowledge_base.py --kb-id 123
```

From bytedance/agentkit-samples, Apache-2.0.

More from bytedance/agentkit-samples

Signals

Stars
473
Forks
101
Open issues
14
Last commit (this folder)
Jun 22, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from bytedance

Cite this page

byted-bytehouse-knowledge-base-management skill. Agent Mart. https://agentmart.dev/skills/bytedance-byted-bytehouse-knowledge-base-management (last updated 2026-10-24)