鼎稔道學館
← 開源 LLM/Cookbook/11
11

How we build a Field-Interview Helper (B3)

CC0

貼逐字稿 → LLM 自動標 8 類 entity(神祇/儀式/經文/流派/概念/聖地/人物/禁忌)+ lius.cc 推薦連結。LLM-only,不打 RAG。

entity taggingLLM-only田野調查5,000 字限

對應 Live Demo

🔒 重現條件鎖
MODEL    = "lius-cc/Daoism-Qwen3.5-9B"
DATASET  = "lius-cc/daoism-knowledge-rag@v1"
RAG_API  = "https://lius.cc/api/llm-rag"
SNAPSHOT = "2026-05-17"

1 · Endpoint 契約

POST /api/llm/generate {task:'tag', transcript:'…'} → output 含「- [type] word → note」list + 5 個重點推薦 lius.cc 連結

import requests

transcript = """我去鎮瀾宮拜媽祖,求全家平安。家裡祖傳拜天上聖母,
每年三月初一過爐,誦《天上聖母經》三遍。這是正一道的傳統。"""

r = requests.post(
    "https://lius.cc/api/llm/generate",
    json={"task": "tag", "transcript": transcript},
    timeout=60,
).json()

print(f"provider={r['provider']}  latency={r['latency_ms']}ms")
print(r['output'])

2 · 解析回結構化

用 regex `^[-•·]\\s*\\[([a-z]+)\\]\\s*([^→\\-]+?)\\s*[→\\-]\\s*(.+)$` 抓 type / word / note。

3 · 8 類 entity

deity / ritual / scripture / sect / concept / location / person / taboo

📜 本 recipe 採 CC0 1.0 · 改一行 prompt → 寫到論文裡 → 引用 LIUS API

引用建議:We use the open-source Daoism-Qwen3.5-9B with the public RAG API at https://lius.cc/api/llm-rag (Liu & Dingren Daoxue Lab, 2026).

← 回 Cookbook 索引

11 · How we build a Field-Interview Helper (B3) · Cookbook · 鼎稔道學館