byted-bytehouse-hybrid-search

byted-bytehouse-hybrid-search is a skill for Claude Code, Codex from bytedance/agentkit-samples. It costs 79 tokens per session (1,510 once invoked), scanned A, original, Apache-2.0.

A ByteHouse search tool that combines exact word matching with meaning-based similarity search, then combines the results using a ranking method.

In plain words
What is it for?
Use it to build full-text and vector indexes, search by keywords or meaning, combine the two search types, and reorder the combined results.
Why use it?
Exact searches can miss relevant wording, while meaning-based searches can miss important keywords. Combining both helps retrieve results that satisfy either need.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build full-text and vector indexes, search by keywords or meaning, combine the two search types, and reorder the combined results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bytedance/agentkit-samples/byted-bytehouse-hybrid-search
About the project

bytedance/agentkit-samples is a collection of examples and tutorials for Volcengine AgentKit, an AI-agent development platform for building, deploying, and operating agent applications. Developers use the samples to learn agent creation, multi-agent collaboration, memory, retrieval, MCP integrations, media generation, customer service, and other workflows. The catalogue skills provide agent workflows based on these examples.

bytedance/agentkit-samples · 496 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bytedance/agentkit-samples --skill byted-bytehouse-hybrid-search
Clone the repo
git clone --depth 1 https://github.com/bytedance/agentkit-samples

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for byted-bytehouse-hybrid-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/bytedance/agentkit-samples/byted-bytehouse-hybrid-search/github.svg)](https://agentmods.dev/skills/bytedance/agentkit-samples/byted-bytehouse-hybrid-search)
Your own site
<a href="https://agentmods.dev/skills/bytedance/agentkit-samples/byted-bytehouse-hybrid-search"><img src="https://agentmods.dev/badge/skills/bytedance/agentkit-samples/byted-bytehouse-hybrid-search/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for byted-bytehouse-hybrid-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/bytedance/agentkit-samples/byted-bytehouse-hybrid-search"><img src="https://agentmods.dev/badge/skills/bytedance/agentkit-samples/byted-bytehouse-hybrid-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,510 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.01510
Opus 5.5 $0.00032 $0.00604
Sonnet 5.5 $0.00016 $0.00302
Haiku 4.5 $0.00008 $0.00151

Measured 3mo ago against content hash 569b3420708d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

byted-bytehouse-hybrid-search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/__init__.py, scripts/embedding.py, scripts/examples.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/byted-bytehouse-hybrid-search/SKILL.md · 134 lines

How it starts

The opening of the file, as written. The whole thing — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ByteHouse 混合检索 Skill

🚀 快速开始

环境准备

pip install clickhouse-connect volcengine-python-sdk[ark] numpy scipy

配置说明

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

{
   "BYTEHOUSE_HOST": "<ByteHouse-host>",
   "BYTEHOUSE_PORT": "8123",
   "BYTEHOUSE_USER": "bytehouse",
   "BYTEHOUSE_PASSWORD": "<ByteHouse-password>",
   "BYTEHOUSE_SECURE": true,
   "BYTEHOUSE_VERIFY": true, 
   "BH_ARK_API_KEY": "<火山引擎方舟API密钥>",
   "BH_ARK_BASE_URL": "https://ark.cn-beijing.volces.com/api/v3",
   "BH_EMBEDDING_MODEL": "doubao-embedding-vision-251215"
}

其中BYTEHOUSE_HOST(主机地址)和BYTEHOUSE_PASSWORD(密码)必须由用户提供。BH_ARK_API_KEY为可选配置,仅在embedding时使用,用户初次使用时可忽略。其余配置固定。

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

source scripts/export_config.sh

📚 核心能力

1. 文本向量化

基于豆包文本向量化模型生成文本向量,支持任意长度中文文本。

2. 双索引构建

索引类型 说明 适用场景
全文倒排索引 基于BM25算法的全文检索,支持关键词匹配 精准关键词召回
向量索引 基于HNSW的向量相似度检索,支持语义匹配 语义相似召回

3. 核心功能

功能 方法 说明
全文检索 fulltext_search() 基于BM25的全文检索,返回BM25分数
向量检索 vector_search() 基于余弦相似度的向量检索,返回相似度分数
混合检索+RRF重排 hybrid_search() 双路召回后使用RRF算法重排,返回最终结果
自动生成向量 insert_document()/batch_insert_documents() 插入文档时自动生成向量并存储,无需手动处理
单个文档向量更新 update_document_embedding() 为单个文档重新生成并更新向量
批量补全缺失向量 batch_update_missing_embeddings() 自动扫描表中所有缺少向量的文档,批量生成并补全向量

4. RRF重排算法

Reciprocal Rank Fusion 算法,综合全文检索和向量检索的排名结果,公式:

score = Σ 1 / (k + rank)

默认k=60,可自定义调整。


📖 代码实现

完整示例代码实现位于 scripts/ 目录:

Read the full file on GitHub · 134 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 134 lines · 79 tokens per session scan A 569b3420708d

Subscribe to this mod's changes

byted-bytehouse-hybrid-search is a skill published in the GitHub repository bytedance/agentkit-samples (496 stars, last pushed 5d ago), licensed Apache-2.0. It adds 79 tokens to every session and 1,510 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

byted-bytehouse-hybrid-search compared with skills from other repositories

byted-bytehouse-hybrid-search next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
byted-bytehouse-hybrid-searchbytedance/agentkit-samplesSkill4965d agoApache-2.0A79Claude Code, Codex
local-embeddingmatrixorigin/memoriaSkill6314d agoApache-2.0B34Claude Code, Codex
vector-db-opsoyi77/1ai-skillsSkill19todayMITA52Claude Code
chromasynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A63Claude Code, Codex
abi-superpower-wdbxdonaldfilimon/abiSkill185d agoApache-2.0A33Claude Code, Codex
azure-horizondbMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A110Claude Code
azure-documentdbMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A122Claude Code