LaunchKit · 2026
Back to Skills

qianfan-knowledgebase-search

Search knowledge from Qianfan Knowledgebase.

0
954 downloads
by @hannatao

Setup & Installation

openclaw skills install @hannatao/qianfan-knowledgebase-search

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install qianfan-knowledgebase-search

Version History

v1.0.1Feb 9, 2026 - Version note by skill developer:

- Documentation clean-up: Removed extra trailing whitespace from SKILL.md. - No functional or user-facing changes in this release.

What This Skill Does

Searches private knowledge bases hosted on the Baidu Qianfan platform. Supports fulltext, semantic, and hybrid retrieval modes with optional reranking. Returns scored chunks with metadata from one or more knowledge bases.

Exposes Qianfan's hybrid retrieval and reranking pipeline through a single script call, without needing to manage the API request structure manually.

When to use it

  • Querying internal documentation stored in Qianfan
  • Retrieving product specs from a private Chinese-language knowledge base
  • Building a Q&A agent over company policies on Baidu's platform
  • Searching multiple knowledge bases in a single request
  • Filtering low-confidence results with score thresholds

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: find all documentation about API rate limits in our Qianfan knowledge base

AGENT
  1. 1Sets query to 'API rate limits' and knowledgebase_ids from env var
  2. 2Calls search.py with recall_type set to hybrid and rerank_enable true
  3. 3Script converts flat parameters to nested API request structure
  4. 4POSTs to Qianfan Knowledgebase Search API and receives scored chunks
  5. 5Returns top chunks with content, rerank scores, and doc metadata
OUTPUT

List of relevant chunks with content, scores, and source document info

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

BAIDU_API_KEY environment variableBaidu Qianfan platform accountQIANFAN_KNOWLEDGEBASE_IDS environment variable or knowledge base IDs on hand