Twinkle HubTwinkle Hub
Sign in

📌 2026-08-17 added: ⚖️ Taiwan statute time machine — historical article text · revision history · full-text search · citation graph (935 datasets · 35,454+ rows)

View full changelog →

Semantic + keyword patent search (TIPO)

tw_search_patents

TW-specificMIT

**關鍵字 / Keywords**: 專利 智財局 TIPO patent invention utility design gazette 發明 新型 設計 語意搜尋

以自然語言查詢 TIPO 發明專利**公開案** corpus (data.gov.tw dataset 15992,
OGDL 商用 OK)。背後用 Qwen3-Embedding-4B 做 semantic search,適合白話 query。

參數:
    query: 自然語言描述,例如「防止電池爆炸的技術」「AI 偵測癌症的方法」
           「環保可分解包裝設計」。不必用專利術語,用日常語言即可。
    year_from / year_to: 公開年 (西元) 範圍,例 year_from=2024
    title_contains: 標題硬性過濾子字串 (中文/英文皆可)
    abstract_contains: 摘要硬性過濾子字串 (v1.16.2)
    claim_contains: 申請專利範圍硬性過濾子字串 (v1.16.2)
    limit: 回傳 top-K (1..100, 預設 20)

keyword + query 組合:
    純 query → semantic ranking
    query + claim_contains="鋰電池" → 先必含「鋰電池」, 再 semantic
                                      排序 (typical FTS+semantic hybrid)

回傳:
    {
      "n_corpus": int,        # corpus 已 ingest 件數 (cron 動態增加)
      "n_returned": int,
      "query": str,
      "hits": [
        {appl_no, notice_no, notice_date, title_zh, abstract_zh,
         claims_count, similarity}, ...
      ]
    }

後續查單件全文 (含 description body / 實施方式 / 全部 claims):
    tw_get_patent_body(appl_no="112108163")

Corpus 範圍 (alpha):
  - 發明專利公開案 (尚未獲證, 申請後 18 個月公開)
  - 2024-2025 公開期間 ~100K 件 (backfill 中, 已有 ~28K)
  - 未含已獲證 (PatentRights), 未含新型/設計

Input schema

{
  "properties": {
    "query": {
      "title": "Query",
      "type": "string"
    },
    "year_from": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Year From"
    },
    "year_to": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Year To"
    },
    "title_contains": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Title Contains"
    },
    "abstract_contains": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Abstract Contains"
    },
    "claim_contains": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Claim Contains"
    },
    "limit": {
      "default": 20,
      "title": "Limit",
      "type": "integer"
    }
  },
  "required": [
    "query"
  ],
  "title": "tw_search_patentsArguments",
  "type": "object"
}

How to call

Once your Twinkle Hub MCP client is configured, your agent will see tw_search_patents. Just ask it to call — example:

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

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

Haven't set up a client yet?

Claude Desktop in 3 minutes — download the .mcpb and double-click, or see docs for other clients.

See user docs