Twinkle HubTwinkle Hub

文化資產(古蹟/民俗/古物/景觀)語意+關鍵字檢索

tw_search_cultural_heritage

문화유산 · 2개🇹🇼 대만읽기 전용

關鍵字 / Keywords: 文化資產 古蹟 歷史建築 民俗 古物 文化部 cultural heritage MOC monument historic-site

台灣文化資產語意檢索 (4,187 筆,涵蓋 6 類).

Args: query: 自然語言 (e.g. "媽祖信仰", "日治建築", "原住民傳統") heritage_type: 類別 filter — "古蹟" / "民俗" / "古物" / "文化景觀" / "考古遺址" / "史蹟" institution_contains: 主管機關必含字串 (e.g. "臺南市", "文化部") name_contains: 文資名稱必含字串 (e.g. "媽祖", "孔廟") limit: top-K (1..100)

Returns: {n_corpus, n_returned, query, hits: [{heritage_type, dataset_id, caseId, caseName, assetsClassifyName, registerReason, judgeCriteria, addresses, govInstitutionName, caseUrl, similarity}, ...]}

典型用例: # 跨類別找媽祖相關 tw_search_cultural_heritage("媽祖") # 只找民俗 tw_search_cultural_heritage("祭典", heritage_type="民俗") # 臺南市古蹟 tw_search_cultural_heritage("廟宇", heritage_type="古蹟", institution_contains="臺南市")

파라미터

이름타입설명
query *string
heritage_typestring
institution_containsstring
name_containsstring
limitinteger
modestring
원본 JSON schema
{
  "properties": {
    "query": {
      "title": "Query",
      "type": "string"
    },
    "heritage_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Heritage Type"
    },
    "institution_contains": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Institution Contains"
    },
    "name_contains": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Name Contains"
    },
    "limit": {
      "default": 20,
      "title": "Limit",
      "type": "integer"
    },
    "mode": {
      "default": "hybrid",
      "title": "Mode",
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "title": "tw_search_cultural_heritageArguments",
  "type": "object"
}

호출 방법

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