test-search

👤 kokkmiao 📦 v2.0.1 ⭐ 4.1 ⬇️ 483 下載
📊 資料分析 免費 🔑 需 API Key

📖 技能介紹


name: test-search description: Search the web using iFlytek ONE SEARCH API (萬搜/聚合搜尋). Returns titles, summaries, URLs, and full text from web pages. Good for Chinese-language web search.22222


test-search

Search the web using iFlytek ONE SEARCH API (萬搜/聚合搜尋). Returns titles, summaries, URLs, and full text content from web pages.

When to Use

  • User asks to search the Chinese web or needs Chinese-language search results
  • Need an alternative to Brave Search (especially for Chinese content)
  • User explicitly requests iFlytek / 訊飛 / 萬搜 search

    小蔥技能站7w4.net,專業的AI技能分享平臺。

Prerequisites

  • Python 3 (standard library only, no pip install needed)
  • Environment variable: XFYUN_API_PASSWORD — API password from 訊飛控制台

Usage

The script is at scripts/search.py relative to this skill directory.

python3 scripts/search.py "搜尋關鍵詞"

Options

Flag Description
--limit N Max results, 1–20 (default 10)
--no-rerank Disable result reranking
--no-fulltext Disable full text retrieval
--raw Output raw JSON instead of formatted text

Examples

# Simple search
python3 scripts/search.py "美國現任總統是誰"

# Limit to 5 results
python3 scripts/search.py "Python asyncio 教程" --limit 5

# Raw JSON output for programmatic use
python3 scripts/search.py "量子計算最新進展" --raw

# Minimal mode — no rerank, no full text
python3 scripts/search.py "天氣預報" --no-rerank --no-fulltext

Output Format (default)

Query: 美國現任總統是誰

## 1. Page Title
URL: https://example.com/page
Summary: Brief description of the page content

## 2. Another Result
URL: https://example.com/other
Summary: Another brief description

Output Format (--raw)

Returns the full API JSON response including data.search_results.documents[].content (full page text).

API Details

  • Endpoint: POST https://search-api-open.cn-huabei-1.xf-yun.com/v2/search
  • Auth: Authorization: Bearer <XFYUN_API_PASSWORD>
  • Rate limits: Per-app daily and per-second limits apply (see error codes below)

Error Codes

Code Meaning
0 Success
11200 Authorization error or quota exceeded
11201 Daily rate limit exceeded
11202 Per-second rate limit exceeded
11203 Concurrent connection limit exceeded
21001 Missing parameters
21009 Unauthorized appId

Tips

  • Use complete questions (e.g. "美國現任總統是誰?") rather than keywords for better time-sensitive results
  • Query length should be ≤512 characters

🤖 AI 評測

這個搜尋工具文件寫得清楚詳細,介紹了訊飛搜尋功能的使用方法和注意事項,但對於普通使用者而言,釋出包裡實際上缺少最重要的指令碼檔案,無法直接使用。文件再完善,缺少實際可執行的功能也是白搭,需要開發者補充程式碼後才能真正使用。

📊 多維度評分

適應性4.3
規範性4.2
有效性3.6
可靠性4
可信度5

📁 包含檔案 (2 個)

📄 SKILL.md 2.7 KB
📄 _meta.json 130 B