Use when working with the Baidu Baike Component is a knowledge service tool designed to query authoritative encyclopedia explanations for various nouns. Its core function is given a specific "noun" (object, person, location, concept, event, etc.) provided by the user, it returns a standardized, detailed entry explanation sourced from Baidu Baike.
Query encyclopedia entries from Baidu Baike.
Get default matching entry for a keyword.
python3 scripts/baidu_baike.py --search_type=lemmaTitle --search_key="keyword"
When term has multiple entries, list them and select by ID.
# 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"
export BAIDU_API_KEY="your_api_key"
Converted and distributed by TomeVault Context snippets also available to append to your CLAUDE.md, GEMINI.md, and copilot-instructions.md — download at TomeVault