Twinkle HubTwinkle Hub
登入

📌 2026-08-17 新增:⚖️ 台灣法條時光機 — 歷史法條原文 · 修法沿革 · 全文檢索 · 條文關聯圖(935 個 dataset · 35,454+ 筆 row)

查看完整 Changelog →

台灣百科語意+關鍵字檢索 (Taiwan.md 聯名)

tw_search_taiwan_md

台灣​專屬MIT

**關鍵字 / Keywords**: 台灣百科 知識庫 wiki Taiwan.md article 歷史 文化 人物 地理 encyclopedia semantic search

Taiwan.md 開源台灣知識庫 · 語意 + 關鍵字檢索 (v1.46 聯名 corpus).

Taiwan.md (frank890417/taiwan-md) 是社群共筆 AI-native 台灣百科, 涵蓋
14 大分類, ~5,100 篇文章 / ~117k 個 chunks. Twinkle Hub 每週自動 sync
GitHub main 分支.

參數:
    query: 白話 query, 例「228 事件」「珍珠奶茶起源」「台積電製程」
          「日治鐵道史」「新竹科學園區發展」
    category: 分類過濾, 常見值 (case-sensitive):
              History / Culture / Geography / Food / Economy /
              Technology / Art / Nature / Music / People / Society /
              Lifestyle / Politics / About
    lang: 語言篩選, 預設 zh-tw. 其他: en, ja, ko
    heading_contains: chunk 標題必須含此子字串 (硬性 filter)
    limit: top-K (1..50, 預設 10)
    dedup_by_article: True 時同一 article 最多 1 chunk (預設 True)

回傳:
    {n_corpus, n_returned, query, attribution, license_notice,
     hits: [{article_id, chunk_id, chunk_index, chunk_text, heading,
             category, lang, similarity, title, summary,
             source_url, updated_at}, ...]}

用 article_id 接 `tw_get_taiwan_md_article(article_id)` 拿完整文章.

⚠ **License**: Taiwan.md 為 CC BY-SA 4.0. 使用本工具回傳的內容時必須:
   1. 標註來源: attribution 欄位提供
   2. 若你重製 / 改編, 衍生物須採相同 CC BY-SA 4.0 授權

輸入 schema

{
  "properties": {
    "query": {
      "title": "Query",
      "type": "string"
    },
    "category": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Category"
    },
    "lang": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Lang"
    },
    "heading_contains": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Heading Contains"
    },
    "limit": {
      "default": 10,
      "title": "Limit",
      "type": "integer"
    },
    "dedup_by_article": {
      "default": true,
      "title": "Dedup By Article",
      "type": "boolean"
    }
  },
  "required": [
    "query"
  ],
  "title": "tw_search_taiwan_mdArguments",
  "type": "object"
}

呼叫​方式

配置​好 Twinkle Hub 的 MCP client 後,​agent 會​看到 tw_search_taiwan_md。直接讓它呼叫​即可,​例如:

# Ask Claude / any MCP client:
請用 tw_search_taiwan_md 處理 "…"。

# It will call:
tw_search_taiwan_md(input="…")

尚未​設定 Client?

Claude Desktop 約 3 分鐘即可完成​設定 — 下載 .mcpb 檔案並雙擊​即可,或參閱​文件中的各 Client 安裝​步驟。

查看使用者設定​文件