Token导航 LogoToken导航TokenDH.com
研究检索敏感数据unknown未标认证来源可访问许可证需确认审计未展示

byted-contextsearch字节上下文搜索

Agent Skill

byted-contextsearch 用于查找、检索和筛选相关信息,适合在 Local Agent 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

214

周安装

9

下载量

75
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:byted-contextsearch(字节上下文搜索)
来源仓库:https://skills.volces.com
仓库路径:byted-contextsearch
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

简介

byted-contextsearch 提供上下文感知的知识库搜索与对话能力,支持文档检索和 RAG 系统交互。

  • 适用于 Local Agent 中的智能问答与信息提取场景。
  • 需设置 CTX_SEARCH_API_KEY 环境变量并配置 config.json 文件定义知识库参数。
  • 安装方式未明确,建议结合来源仓库进一步验证具体用法。
  • 仅支持只读操作,禁止修改知识库内容。

SKILL.md

Context Search Skill

This skill provides two main capabilities for interacting with context-aware knowledge bases:

  1. Search: Retrieve relevant documents based on text queries
  2. Chat: Have conversations with RAG-powered systems

Configuration

This skill requires:

  1. Environment Variable: Set the CTX_SEARCH_API_KEY environment variable with your API key: export CTX_SEARCH_API_KEY='your-api-key-here'
  2. Config File: Create a config.json file in the skill directory with the following structure:
{
  "contexts": {
    "default": {
      "type": "",
      "base_url": "https://your-api-endpoint.com",
      "description": "Default context service"
    },
    "knowledge-base-a": {
      "type": "",
      "base_url": "https://another-endpoint.com",
      "description": "Knowledge base A for technical docs"
    }
  }
}

Context Type: Each context can optionally define a type:

  • (empty / missing): Knowledge base (default; supports search and chat)
  • image: Image context (supports search only)
  • video: Video context (supports search only)

Multiple Knowledge Base Support: You can configure multiple knowledge bases for different scenarios in the config.json file. Each knowledge base is identified by a unique name (e.g., "default", "knowledge-base-a") and can have its own base_url and description. This allows you to:

  • Separate knowledge bases by topic or domain (e.g., technical docs, product manuals, FAQs)
  • Use different knowledge bases for different projects or teams
  • Switch between knowledge bases using the --context parameter

Example configuration for multiple scenarios:

{
  "contexts": {
    "tech-docs": {
      "type": "",
      "base_url": "https://tech-docs.example.com",
      "description": "Technical documentation and API references"
    },
    "product-manuals": {
      "type": "",
      "base_url": "https://manuals.example.com",
      "description": "Product user manuals and guides"
    },
    "internal-wiki": {
      "type": "",
      "base_url": "https://wiki.example.com",
      "description": "Internal company knowledge base"
    },
    "image-index": {
      "type": "image",
      "base_url": "https://image.example.com",
      "description": "Image search context (search only)"
    }
  }
}

Usage

Running the Script

Important: The script must be run from the skill directory (where config.json is located).

cd <skill-directory>
uv run scripts/context_search.py <command> [args...] \
  || python3 scripts/context_search.py <command> [args...] \
  || python scripts/context_search.py <command> [args...]

List Available Knowledge Bases

List all configured knowledge bases:

uv run scripts/context_search.py list

Parameters:

  • --json: Output raw JSON response (optional)

Example:

uv run scripts/context_search.py list

This will display all available knowledge bases with their descriptions and base URLs.

Search Function

Use the search function to retrieve relevant documents:

uv run scripts/context_search.py search \
  --context <context-name> \
  --text "your search query" \
  --mode <quick|normal|deep> \
  --size <number-of-results>

Parameters:

  • --context: Name of the context service (default: "default")
  • --text: The search query text
  • --mode: Search mode - quick, normal, or deep (default: not sent, uses server default). Note: For image and video contexts, only quick mode is supported; if not specified, defaults to quick.
  • --size: Number of results to return (default: not sent, uses server default)

Example:

uv run scripts/context_search.py search \
  --context knowledge-base-a \
  --text "how to implement authentication" \
  --mode deep \
  --size 10

Chat Function

Use the chat function to have conversations with the RAG system:

uv run scripts/context_search.py chat \
  --context <context-name> \
  --message "your message" \
  --mode <quick|normal|deep> \
  --size <number-of-results> \
  --stream

Parameters:

  • --context: Name of the context service (default: "default")
  • --message: The message to send
  • --mode: Chat mode - quick, normal, or deep (default: not sent, uses server default)
  • --size: Number of results to return (default: 5)
  • --stream: Enable streaming output (optional flag)

Note: chat is only supported for knowledge base contexts (type is empty/missing). For type: "image" or type: "video", use search.

Example:

uv run scripts/context_search.py chat \
  --context default \
  --message "What are the best practices for API design?" \
  --mode deep \
  --size 10

Mode Descriptions

  • quick: Fast response, suitable for simple queries
  • normal: Balanced speed and quality (default)
  • deep: Comprehensive search/chat, best for complex queries

Output Format

Search Output

Returns a JSON object with search results:

  • Document ID
  • Content
  • Relevance score
  • Metadata including retrieval score and index

Chat Output

Returns a JSON object with:

  • Response content
  • Token usage statistics
  • Model information

Error Handling

The script will display error messages if:

  • CTX_SEARCH_API_KEY environment variable is not set
  • Configuration file is missing or invalid
  • Network connection fails
  • Invalid context name is provided

Setting Up Configuration

  1. Set the environment variable: export CTX_SEARCH_API_KEY='your-api-key-here'
  2. Copy the config.json.template file to config.json
  3. Fill in the base URLs for each context service
  4. Add as many context services as needed
  5. Keep the config file secure and never commit it to version control

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

91.89%
按下载量换算69

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills