Twinkle HubTwinkle Hub
登入

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

查看完整 Changelog →

國考題目語意+關鍵字檢索

tw_search_exam_questions

台灣​專屬MIT

**關鍵字 / Keywords**: 國考題 選擇題 exam question 高普考 律師 醫師 考古題 practice test

以自然語言 + (可選) 關鍵字過濾, 檢索國家考試**題目**級別.
320,663 questions (民國 101-114 / 西元 2012-2025).

參數:
    query: 自然語言, 例「土壤液化的計算」「公司法 董事決議責任」
    stem_contains: 題幹硬性子字串 filter (e.g. "土壤液化"),
        與 query 並用 = 過濾後對子集 semantic ranking
    其他同 tw_search_exam (paper-level), 但作用在題目 level

回傳 schema:
    {n_corpus, n_returned, query,
     hits: [{paper_id, exam_year (民國), exam_year_西元,
             exam_name, subject_name, question_no, question_type,
             stem, options{A,B,C,D}?, answer?,  similarity}, ...]}

典型用法:
    # 純 semantic
    tw_search_exam_questions("液體流動的計算")
    # keyword 過濾 + semantic ranking
    tw_search_exam_questions("計算題", stem_contains="土壤液化")
    # 含 metadata filter
    tw_search_exam_questions("董事責任", subject_contains="公司法",
                          year_from=2020, question_type="申論")

跟 tw_search_exam (paper-level) 差別:
  - tw_search_exam       回「整科目」(科目級, 1 paper = 多題)
  - tw_search_exam_questions 回「單題」(題目級, 直接看 stem/options/answer)

輸入 schema

{
  "properties": {
    "query": {
      "title": "Query",
      "type": "string"
    },
    "stem_contains": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Stem Contains"
    },
    "exam_name_contains": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Exam Name Contains"
    },
    "year_from": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Year From"
    },
    "year_to": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Year To"
    },
    "subject_contains": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Subject Contains"
    },
    "question_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Question Type"
    },
    "limit": {
      "default": 20,
      "title": "Limit",
      "type": "integer"
    }
  },
  "required": [
    "query"
  ],
  "title": "tw_search_exam_questionsArguments",
  "type": "object"
}

呼叫​方式

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

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

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

尚未​設定 Client?

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

查看使用者設定​文件