by ronrey-developer · v0.0.1
Baidu AI Search integration - Intelligent search generation (high performance) for real-time web search and AI summarization
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Baidu AI Search Enhance plugin that integrates Baidu Intelligent Search Generation (High Performance) API, providing real-time web search and AI-powered summarization for Dify users.
百度智能搜索增强插件,接入百度智能搜索生成(高性能版)API,为 Dify 用户提供实时网络搜索与 AI 智能摘要能力。
cd baidu_ai_search_enhance
pip install -r requirements.txt
Visit the Baidu Qianfan Platform to obtain your API Key.
Free tier: 100 requests per day.
前往 百度千帆平台 获取 API Key。每日有 100 次免费调用额度。
# Enter the plugin directory
cd baidu_ai_search_enhance
# Copy environment config
cp .env.example .env
# Run the plugin (local mode)
python main.py
On successful startup you will see output similar to:
{"version":"0.0.1","type":"plugin","author":"ronrey-developer","name":"baidu_ai_search_enhance",...}
{"event": "log", "data": {"level": "INFO", "message": "Installed tool: baidu_ai_search",...}}
{"event":"heartbeat","session_id":null,"data":{}}
In your Dify workflow or conversation, add the Baidu AI Search tool, enter your API Key, and start using it.
Remote debugging allows you to develop the plugin locally while connecting to a remote Dify instance for testing.
Get the debug key from Dify Console
Login to your Dify instance → "Plugins" → "Remote Debugging" → Copy the debug key and port.
Configure .env file
INSTALL_METHOD=remote
REMOTE_INSTALL_HOST=<your-dify-instance>
REMOTE_INSTALL_PORT=5003
REMOTE_INSTALL_KEY=<your-debug-key>
Start the plugin (must run from baidu_ai_search_enhance/ directory)
cd baidu_ai_search_enhance
python main.py
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | — | Search query text |
stream | boolean | No | true | Enable SSE streaming output |
temperature | number | No | ~0 | Sampling temperature (0, 1] |
top_p | number | No | ~0 | Nucleus sampling parameter (0, 1] |
instruction | string | No | — | System instruction for response style |
response_format_type | select | No | text | Output format: text / json_object / json_schema |
json_schema | string | No | — | JSON Schema definition (required for json_schema format) |
web_top_k | number | No | 20 | Max web results (0-50) |
video_top_k | number | No | 0 | Max video results (0-10) |
image_top_k | number | No | 0 | Max image results (0-30) |
site_filter | string | No | — | Comma-separated site filter |
time_range | select | No | No Limit | Time range filter |
baidu_ai_search_enhance/
├── manifest.yaml # Plugin manifest (metadata, entrypoint, components)
├── main.py # Plugin entry point (initialization, startup)
├── requirements.txt # Python dependencies
├── .env.example # Environment variable template
├── icon.svg # Plugin icon
├── _assets/ # Static assets (SDK requirement)
├── provider/
│ ├── baidu_ai_search.yaml # Provider config (credentials, tool list)
│ ├── baidu_ai_search.py # Provider implementation (credential validation)
│ └── tools/
│ ├── web_summary.yaml # Tool parameter definitions
│ └── web_summary.py # Tool implementation (API call logic)
└── README.md
baidu_ai_search_enhance/ directory into .difypkg format.This plugin transmits search queries to Baidu's API servers (qianfan.baidubce.com) for processing. No user data is stored locally. Please refer to Baidu's Privacy Policy for details on how Baidu handles data. See PRIVACY.md for this plugin's privacy practices.
MIT License