✓ Verified 💻 Development ✓ Enhanced Data

Baidu Baike Data

The Baidu Baike Component is a knowledge service tool designed to query authoritative encyclopedia e

Rating
3.9 (417 reviews)
Downloads
1,201 downloads
Version
1.0.0

Overview

The Baidu Baike Component is a knowledge service tool designed to query authoritative encyclopedia explanations.

Complete Documentation

View Source →

Baidu Baike

Query encyclopedia entries from Baidu Baike.

Two Usage Scenarios

Scenario 1: Direct Search

Get default matching entry for a keyword.
bash
python3 scripts/baidu_baike.py --search_type=lemmaTitle --search_key="keyword"

Scenario 2: Homonym Resolution

When term has multiple entries, list them and select by ID.
bash
# List entries with same name
python3 scripts/baidu_baike.py --search_type=lemmaList --search_key="keyword" --top_k=5

# Get specific entry by ID
python3 scripts/baidu_baike.py --search_type=lemmaId --search_key="entry_id"

API

  • LemmaList: List entries with same title
  • LemmaContent: Get entry details by title or ID

Setup

bash
export BAIDU_API_KEY="your_api_key"

Workflow

  • Extract noun from query
  • For ambiguous terms, call LemmaList first
  • User selects entry from list
  • Call LemmaContent with selected ID
  • Return structured data

Installation

Terminal bash

openclaw install baidu-baike-data
    
Copied!

💻Code Examples

When term has multiple entries, list them and select by ID.

when-term-has-multiple-entries-list-them-and-select-by-id.sh
# List entries with same name
python3 scripts/baidu_baike.py --search_type=lemmaList --search_key="keyword" --top_k=5

# Get specific entry by ID
python3 scripts/baidu_baike.py --search_type=lemmaId --search_key="entry_id"

Tags

#coding_agents-and-ides #data

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author ide-rea
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install baidu-baike-data