Bailian KnowledgeBase Retrieve for Openclaw

A high-performance retrieval tool for accessing vectorized proprietary data hosted on Alibaba ModelStudio for AI agents.

krisyejh
v1.0.0
Feb 24, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install bailian-knowledge-retrieve

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install bailian-knowledge-retrieve using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Bailian KnowledgeBase Retrieve?

Bailian KnowledgeBase Retrieve is a professional-grade tool designed for developers who need to connect AI agents to private, vectorized data repositories hosted on Alibaba Cloud's ModelStudio. By utilizing this skill within the Openclaw Skills ecosystem, agents can perform sophisticated RAG (Retrieval-Augmented Generation) tasks, pulling concise and highly relevant document chunks into their context windows.

This skill bridges the gap between raw proprietary data and LLM intelligence, offering clean retrieval results powered by Alibaba's Embedding and Rerank APIs. It is specifically optimized for automated workflows where precision and speed are critical for maintaining the accuracy of an AI agent's responses.

Bailian KnowledgeBase Retrieve Use Cases

  • Augmenting AI agent context with enterprise-specific documentation and internal data.
  • Implementing Retrieval-Augmented Generation (RAG) for chatbots using Openclaw Skills.
  • Scaling technical support bots that require access to vectorized product manuals.
  • Researching proprietary datasets through natural language queries in an automated agentic workflow.

How Bailian KnowledgeBase Retrieve Works

  1. The AI agent or user submits a search query and an optional result count through the Openclaw Skills interface.
  2. The skill invokes a Python-based execution script that communicates with the Alibaba DashScope API.
  3. The system utilizes the provided DASHSCOPE_API_KEY and KNOWLEDGEBASE_ID to locate the correct vectorized datahub.
  4. Advanced embedding and reranking algorithms identify the most relevant document segments.
  5. The skill returns a structured, multi-document result set optimized for LLM consumption.

Bailian KnowledgeBase Retrieve Setup

To deploy this skill, ensure you have Python 3 installed and your Alibaba Cloud credentials active. Follow these steps to configure your environment:

# Set your DashScope API Key
export DASHSCOPE_API_KEY="your_api_key_here"

# Set your specific KnowledgeBase ID
export KNOWLEDGEBASE_ID="your_kb_id_here"

Once the environment variables are set, you can test the retrieval script directly:

python3 scripts/retrieve.py "your search query" 5

Bailian KnowledgeBase Retrieve Data Schema & Taxonomy

The skill manages data retrieval through a structured input/output flow. The following table describes the primary parameters used within the Openclaw Skills framework:

Parameter Type Description
query String The natural language string used to search the knowledge base.
count Integer Number of document chunks to retrieve (Default: 5, Max: 20).
baseDir Path The directory path containing the retrieval scripts.
metadata JSON Contains the emoji icon and required environment variable list.

Bailian KnowledgeBase Retrieve Advanced Features

  • Custom result weighting: Adjust the result count up to 20 snippets to fine-tune context density.
  • Integrated Reranking: Leverages Alibaba's proprietary Rerank API to ensure the most useful data is surfaced first.
  • Headless Execution: Optimized for CLI and agentic environments without the need for a GUI.
  • Secure Configuration: Uses standard environment variables to manage sensitive API keys within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*