Twinkle HubTwinkle Hub

立法院質詢語意+關鍵字檢索

tw_search_ly_interpellations

議会 · 3 件🇹🇼 台湾読み取り専用

關鍵字 / Keywords: 立委質詢 立法院 質詢紀錄 legislature interpellation question parliamentary Taiwan LY

立法院質詢語意檢索 (~12k 質詢, 事由+說明合併向量).

Args: query: 自然語言 (e.g. "長照經費", "兒少安置") legislator_contains: 質詢委員字串 (e.g. "王婉諭") term: 屆別 session: 會期 limit: top-K (1..100)

Returns: {n_corpus, n_returned, query, hits: [{屆, 質詢委員, 質詢編號, 刊登日期, 事由, 說明, similarity}, ...]}

パラメータ

名前説明
query *string
legislator_containsstring
terminteger
sessioninteger
limitinteger
modestring
生の JSON schema
{
  "properties": {
    "query": {
      "title": "Query",
      "type": "string"
    },
    "legislator_contains": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Legislator Contains"
    },
    "term": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Term"
    },
    "session": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Session"
    },
    "limit": {
      "default": 20,
      "title": "Limit",
      "type": "integer"
    },
    "mode": {
      "default": "hybrid",
      "title": "Mode",
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "title": "tw_search_ly_interpellationsArguments",
  "type": "object"
}

呼び出し方

スターター——パラメータは​上表参照
tw_search_ly_interpellations({ query: "…" })