Twinkle HubTwinkle Hub

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

tw_search_exam_questions

시험 · 9개🇹🇼 대만읽기 전용

關鍵字 / 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)

파라미터

이름타입설명
query *string
stem_containsstring
exam_name_containsstring
year_frominteger
year_tointeger
subject_containsstring
question_typestring
limitinteger
원본 JSON 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"
}

호출 방법

스타터 — 파라미터는 위 표 참조
tw_search_exam_questions({ query: "…" })