Merge branch 'dev' into hugo

This commit is contained in:
hugo committed 2026-06-17 22:29:48 +08:00
commit 97a5a1f106
35 files changed
+3749 -259

No files matched your search

+94 -6
View File
@@ -197,27 +197,115 @@
},
"question": {
"title": "Common Questions",
"subtitle": "Manage global quick questions for all users",
"subtitle": "Manage global quick questions with optional FAQ cache to skip Dify on match",
"formHint": "When FAQ cache is enabled, matched questions return the preset answer without consuming tokens.",
"edit": "Edit Question",
"add": "Add New Question",
"noData": "No common questions configured.",
"headers": {
"title": "Title",
"agent": "Agent",
"content": "Match Query",
"answer": "Preset Answer",
"cache": "FAQ Cache",
"hits": "Hits",
"order": "Order",
"actions": "Actions"
},
"sections": {
"basic": "Basic Info",
"matching": "Query Matching",
"cache": "FAQ Cached Answer"
},
"fields": {
"title": "Title",
"titlePlaceholder": "e.g. Write Report",
"titlePlaceholder": "e.g. Working Hours",
"targetAgent": "Target Agent",
"sortOrder": "Sort Order",
"content": "Question Content",
"contentPlaceholder": "Enter the prompt content..."
"content": "Canonical Query",
"contentPlaceholder": "e.g. What time does work start?",
"contentHelp": "Users sending this normalized query will hit the cache.",
"aliases": "Alternative Phrasings",
"aliasesPlaceholder": "One per line, e.g.:\nWhat time do we start?\nOffice hours?",
"aliasesHelp": "Optional. Each line is an alternative phrasing that maps to the same answer.",
"answer": "Preset Answer",
"answerPlaceholder": "Full answer returned directly on cache hit…",
"cacheEnabled": "Enable FAQ cache (skip Dify)",
"isEnabled": "Show on workspace",
"cacheHelp": "When enabled, matched queries return the preset answer below without calling Dify.",
"expiresAt": "Expires At",
"expiresAtHelp": "Optional. After expiry the entry will not match. Leave empty for no expiry."
},
"filters": {
"search": "Search title, query or answer…",
"allAgents": "All agents",
"cacheOnly": "Cache enabled only",
"resultCount": "{count} item(s)"
},
"badges": {
"cacheOn": "Cached",
"cacheOff": "Not cached",
"disabled": "Disabled"
},
"labels": {
"aliases": "{count} alias(es)"
},
"confirmDelete": "Are you sure you want to delete this question?",
"actions": {
"edit": "Edit",
"delete": "Delete"
},
"confirmDelete": "Are you sure?",
"msg": {
"fillAll": "Please fill all fields"
"fillAll": "Please fill in title, query and target agent",
"answerRequired": "Preset answer is required when FAQ cache is enabled",
"saved": "Saved successfully"
},
"tabs": {
"manual": "Common Questions",
"hotDiscovery": "Hot Discovery"
}
},
"hotFaq": {
"intro": "Discovers frequent queries from recent ChatLogs and stores candidates in PostgreSQL. Promote to FAQ after review.",
"showRules": "View aggregation rules",
"hideRules": "Hide rules",
"redisUnavailable": "Redis is not configured or unavailable.",
"noData": "No hot candidates yet. Click Refresh to aggregate from ChatLog.",
"headers": {
"query": "Hot Query",
"agent": "Agent",
"answer": "Suggested Answer",
"asks": "7d Asks",
"users": "Users",
"tokens": "Avg Tokens",
"dominance": "Consensus",
"actions": "Actions"
},
"filters": {
"search": "Search query or answer…",
"allAgents": "All agents"
},
"stats": {
"summary": "{count} candidate(s), {asks} asks in 7 days"
},
"rules": {
"selection": "Selection:",
"answer": "Best answer:",
"windowDays": "Last {n} days, tokens_used>0 (Dify only)",
"minCount": "At least {n} asks per normalized query",
"minUsers": "At least {n} distinct users"
},
"actions": {
"refresh": "Refresh",
"dryRun": "Preview",
"promote": "Promote to FAQ",
"dismiss": "Dismiss"
},
"msg": {
"refreshed": "Hot FAQ aggregation completed",
"dryRunDone": "Preview done: {promoted} group(s) would promote ({scanned} logs scanned)",
"promoted": "Promoted to common question FAQ",
"dismissed": "Hot candidate dismissed"
}
},
"announcement": {
+94 -6
View File
@@ -197,27 +197,115 @@
},
"question": {
"title": "คำถามทั่วไป",
"subtitle": "จัดการคำถามด่วนทั่วโลก",
"subtitle": "จัดการคำถามด่วนทั่วโลก พร้อม FAQ cache เพื่อข้าม Dify เมื่อจับคู่ได้",
"formHint": "เมื่อเปิด FAQ cache คำถามที่จับคู่ได้จะส่งคำตอบที่กำหนดไว้โดยไม่ใช้ Token",
"edit": "แก้ไขคำถาม",
"add": "เพิ่มคำถามใหม่",
"noData": "ไม่มีคำถามทั่วไป",
"headers": {
"title": "หัวข้อ",
"agent": "ตัวแทน",
"content": "คำถามจับคู่",
"answer": "คำตอบมาตรฐาน",
"cache": "FAQ Cache",
"hits": "จำนวนครั้ง",
"order": "ลำดับ",
"actions": "การกระทำ"
},
"sections": {
"basic": "ข้อมูลพื้นฐาน",
"matching": "การจับคู่คำถาม",
"cache": "คำตอบ FAQ Cache"
},
"fields": {
"title": "หัวข้อ",
"titlePlaceholder": "เช่น เขียนรายงาน",
"titlePlaceholder": "เช่น เวลาทำงาน",
"targetAgent": "ตัวแทนเป้าหมาย",
"sortOrder": "ลำดับการเรียง",
"content": "เนื้อหาคำถาม",
"contentPlaceholder": "กรอกเนื้อหาคำถาม..."
"content": "คำถามมาตรฐาน",
"contentPlaceholder": "เช่น บริษัทเปิดกี่โมง?",
"contentHelp": "ผู้ใช้ที่ส่งคำถามที่ตรงกัน (หลัง normalize) จะโดน cache",
"aliases": "คำถามทางเลือก",
"aliasesPlaceholder": "หนึ่งบรรทัดต่อหนึ่งคำถาม เช่น:\nกี่โมงเข้างาน\nเวลาเข้างานคืออะไร",
"aliasesHelp": "ไม่บังคับ แต่ละบรรทัดเป็นคำถามทางเลือกที่ได้คำตอบเดียวกัน",
"answer": "คำตอบมาตรฐาน",
"answerPlaceholder": "คำตอบเต็มที่ส่งกลับเมื่อ cache hit…",
"cacheEnabled": "เปิด FAQ cache (ข้าม Dify)",
"isEnabled": "แสดงในหน้า workspace",
"cacheHelp": "เมื่อเปิดใช้ คำถามที่จับคู่ได้จะส่งคำตอบด้านล่างโดยไม่เรียก Dify",
"expiresAt": "หมดอายุเมื่อ",
"expiresAtHelp": "ไม่บังคับ หลังหมดอายุจะไม่จับคู่ ปล่อยว่างหากไม่มีวันหมดอายุ"
},
"filters": {
"search": "ค้นหาหัวข้อ คำถาม หรือคำตอบ…",
"allAgents": "ตัวแทนทั้งหมด",
"cacheOnly": "เฉพาะที่เปิด cache",
"resultCount": "{count} รายการ"
},
"badges": {
"cacheOn": "Cache แล้ว",
"cacheOff": "ยังไม่ cache",
"disabled": "ปิดใช้งาน"
},
"labels": {
"aliases": "{count} คำถามทางเลือก"
},
"confirmDelete": "คุณแน่ใจหรือไม่ว่าต้องการลบคำถามนี้?",
"actions": {
"edit": "แก้ไข",
"delete": "ลบ"
},
"confirmDelete": "คุณแน่ใจหรือไม่?",
"msg": {
"fillAll": "กรุณากรอกข้อมูลให้ครบถ้วน"
"fillAll": "กรุณากรอกหัวข้อ คำถาม และตัวแทนเป้าหมาย",
"answerRequired": "ต้องกรอกคำตอบมาตรฐานเมื่อเปิด FAQ cache",
"saved": "บันทึกสำเร็จ"
},
"tabs": {
"manual": "คำถามทั่วไป",
"hotDiscovery": "ค้นพบ Hotspot"
}
},
"hotFaq": {
"intro": "ค้นหาคำถามที่พบบ่อยจาก ChatLog 7 วันล่าสุด เก็บในตาราง PostgreSQL แล้วส่งเสริมเป็น FAQ",
"showRules": "ดูกฎการรวม",
"hideRules": "ซ่อนกฎ",
"redisUnavailable": "Redis ไม่พร้อมใช้งาน",
"noData": "ยังไม่มี candidate กด Refresh เพื่อรวมจาก ChatLog",
"headers": {
"query": "คำถาม Hot",
"agent": "ตัวแทน",
"answer": "คำตอบแนะนำ",
"asks": "ถาม 7 วัน",
"users": "ผู้ใช้",
"tokens": "Token เฉลี่ย",
"dominance": "ความสอดคล้อง",
"actions": "การกระทำ"
},
"filters": {
"search": "ค้นหาคำถามหรือคำตอบ…",
"allAgents": "ตัวแทนทั้งหมด"
},
"stats": {
"summary": "{count} candidate, ถามรวม {asks} ครั้งใน 7 วัน"
},
"rules": {
"selection": "การเลือก hotspot:",
"answer": "คำตอบที่ดีที่สุด:",
"windowDays": "สถิติ {n} วันล่าสุด tokens_used>0",
"minCount": "ถามอย่างน้อย {n} ครั้งต่อคำถาม normalize",
"minUsers": "ผู้ใช้ต่างกันอย่างน้อย {n} คน"
},
"actions": {
"refresh": "รีเฟรช",
"dryRun": "ดูตัวอย่าง",
"promote": "ส่งเสริงเป็น FAQ",
"dismiss": "ละเว้น"
},
"msg": {
"refreshed": "รวม hotspot FAQ เสร็จแล้ว",
"dryRunDone": "ดูตัวอย่างเสร็จ: promote {promoted} กลุ่ม (สแกน {scanned} log)",
"promoted": "ส่งเสริงเป็นคำถามทั่วไป FAQ แล้ว",
"dismissed": "ละเว้น hotspot แล้ว"
}
},
"announcement": {
+94 -6
View File
@@ -198,27 +198,115 @@
},
"question": {
"title": "常用问题",
"subtitle": "管理全局常用问题",
"subtitle": "管理全局常用问题,可配置标准答案并启用 FAQ 缓存,优先命中、跳过 Dify",
"formHint": "启用 FAQ 缓存后,用户提问匹配成功时将直接返回标准答案,不消耗 Token。",
"edit": "编辑问题",
"add": "添加问题",
"noData": "暂无常用问题配置",
"headers": {
"title": "标题",
"agent": "所属应用",
"content": "匹配问句",
"answer": "标准答案",
"cache": "FAQ 缓存",
"hits": "命中",
"order": "排序",
"actions": "操作"
},
"sections": {
"basic": "基础信息",
"matching": "问句匹配",
"cache": "FAQ 缓存答案"
},
"fields": {
"title": "标题",
"titlePlaceholder": "例如:写日报",
"titlePlaceholder": "例如:上班时间",
"targetAgent": "目标应用",
"sortOrder": "排序",
"content": "问题内容",
"contentPlaceholder": "请输入完整的问题提示词..."
"content": "标准问句",
"contentPlaceholder": "例如:公司几点上班?",
"contentHelp": "用户发送与此问句一致(归一化后)的文本时将命中缓存。",
"aliases": "同义问法",
"aliasesPlaceholder": "每行一条,例如:\n几点上班\n上班时间是什么",
"aliasesHelp": "可选。每行填写一种同义问法,命中后同样返回标准答案。",
"answer": "标准答案",
"answerPlaceholder": "填写命中后直接返回给用户的完整回答…",
"cacheEnabled": "启用 FAQ 缓存(跳过 Dify)",
"isEnabled": "在前台展示",
"cacheHelp": "开启后,匹配成功的问题将直接返回下方标准答案,不再调用 Dify。",
"expiresAt": "过期时间",
"expiresAtHelp": "可选。到期后不再命中缓存,留空表示长期有效。"
},
"filters": {
"search": "搜索标题、问句或答案…",
"allAgents": "全部应用",
"cacheOnly": "仅显示已启用缓存",
"resultCount": "共 {count} 条"
},
"badges": {
"cacheOn": "已缓存",
"cacheOff": "未缓存",
"disabled": "已停用"
},
"labels": {
"aliases": "{count} 条同义问法"
},
"confirmDelete": "确定删除该常用问题吗?",
"actions": {
"edit": "编辑",
"delete": "删除"
},
"confirmDelete": "确定删除吗?",
"msg": {
"fillAll": "请填写所有必填项"
"fillAll": "请填写标题、问句和目标应用",
"answerRequired": "启用 FAQ 缓存时必须填写标准答案",
"saved": "保存成功"
},
"tabs": {
"manual": "常用问题",
"hotDiscovery": "热点发现"
}
},
"hotFaq": {
"intro": "系统从近 7 天 ChatLog 自动发现高频问句,写入数据库候选表;审核后可「晋升为 FAQ」,启用常用问题缓存。",
"showRules": "查看聚合规则",
"hideRules": "收起规则",
"redisUnavailable": "Redis 未配置或不可用,无法存储热点候选。请配置 REDIS_URL 后重试。",
"noData": "暂无热点候选,可点击「刷新聚合」从 ChatLog 统计。",
"headers": {
"query": "热点问句",
"agent": "所属应用",
"answer": "推荐答案",
"asks": "7日提问",
"users": "独立用户",
"tokens": "均Token",
"dominance": "答案一致率",
"actions": "操作"
},
"filters": {
"search": "搜索问句或答案…",
"allAgents": "全部应用"
},
"stats": {
"summary": "共 {count} 条候选,7日合计 {asks} 次提问"
},
"rules": {
"selection": "热点选取:",
"answer": "最佳答案:",
"windowDays": "统计近 {n} 天且 tokens_used>0 的 Dify 对话",
"minCount": "同一归一化问句至少 {n} 次提问",
"minUsers": "至少 {n} 个不同用户提问"
},
"actions": {
"refresh": "刷新聚合",
"dryRun": "预览统计",
"promote": "晋升为 FAQ",
"dismiss": "忽略"
},
"msg": {
"refreshed": "热点聚合已完成",
"dryRunDone": "预览完成:扫描记录参与统计,晋升 {promoted} 组(扫描 {scanned} 条日志)",
"promoted": "已晋升为常用问题 FAQ",
"dismissed": "已忽略该热点"
}
},
"announcement": {
+94 -6
View File
@@ -197,27 +197,115 @@
},
"question": {
"title": "常用問題",
"subtitle": "管理全局常用問題",
"subtitle": "管理全局常用問題,可配置標準答案並啟用 FAQ 快取,優先命中、跳過 Dify",
"formHint": "啟用 FAQ 快取後,使用者提問匹配成功時將直接返回標準答案,不消耗 Token。",
"edit": "編輯問題",
"add": "添加問題",
"noData": "暫無常用問題配置",
"headers": {
"title": "標題",
"agent": "所屬應用",
"content": "匹配問句",
"answer": "標準答案",
"cache": "FAQ 快取",
"hits": "命中",
"order": "排序",
"actions": "操作"
},
"sections": {
"basic": "基礎資訊",
"matching": "問句匹配",
"cache": "FAQ 快取答案"
},
"fields": {
"title": "標題",
"titlePlaceholder": "例如:寫日報",
"titlePlaceholder": "例如:上班時間",
"targetAgent": "目標應用",
"sortOrder": "排序",
"content": "問題內容",
"contentPlaceholder": "請輸入完整的問題提示詞..."
"content": "標準問句",
"contentPlaceholder": "例如:公司幾點上班?",
"contentHelp": "使用者發送與此問句一致(歸一化後)的文本時將命中快取。",
"aliases": "同義問法",
"aliasesPlaceholder": "每行一條,例如:\n幾點上班\n上班時間是什麼",
"aliasesHelp": "可選。每行填寫一種同義問法,命中後同樣返回標準答案。",
"answer": "標準答案",
"answerPlaceholder": "填寫命中後直接返回給使用者的完整回答…",
"cacheEnabled": "啟用 FAQ 快取(跳過 Dify)",
"isEnabled": "在前台展示",
"cacheHelp": "開啟後,匹配成功的問題將直接返回下方標準答案,不再呼叫 Dify。",
"expiresAt": "過期時間",
"expiresAtHelp": "可選。到期後不再命中快取,留空表示長期有效。"
},
"filters": {
"search": "搜尋標題、問句或答案…",
"allAgents": "全部應用",
"cacheOnly": "僅顯示已啟用快取",
"resultCount": "共 {count} 條"
},
"badges": {
"cacheOn": "已快取",
"cacheOff": "未快取",
"disabled": "已停用"
},
"labels": {
"aliases": "{count} 條同義問法"
},
"confirmDelete": "確定刪除該常用問題嗎?",
"actions": {
"edit": "編輯",
"delete": "刪除"
},
"confirmDelete": "確定刪除嗎?",
"msg": {
"fillAll": "請填寫所有必填項"
"fillAll": "請填寫標題、問句和目標應用",
"answerRequired": "啟用 FAQ 快取時必須填寫標準答案",
"saved": "儲存成功"
},
"tabs": {
"manual": "常用問題",
"hotDiscovery": "熱點發現"
}
},
"hotFaq": {
"intro": "系統從近 7 天 ChatLog 自動發現高頻問句,寫入資料庫候選表;審核後可「晉升為 FAQ」。",
"showRules": "查看聚合規則",
"hideRules": "收起規則",
"redisUnavailable": "Redis 未配置或不可用,無法儲存熱點候選。",
"noData": "暫無熱點候選,可點擊「刷新聚合」。",
"headers": {
"query": "熱點問句",
"agent": "所屬應用",
"answer": "推薦答案",
"asks": "7日提問",
"users": "獨立用戶",
"tokens": "均Token",
"dominance": "答案一致率",
"actions": "操作"
},
"filters": {
"search": "搜尋問句或答案…",
"allAgents": "全部應用"
},
"stats": {
"summary": "共 {count} 條候選,7日合計 {asks} 次提問"
},
"rules": {
"selection": "熱點選取:",
"answer": "最佳答案:",
"windowDays": "統計近 {n} 天且 tokens_used>0 的 Dify 對話",
"minCount": "同一歸一化問句至少 {n} 次提問",
"minUsers": "至少 {n} 個不同用戶提問"
},
"actions": {
"refresh": "刷新聚合",
"dryRun": "預覽統計",
"promote": "晉升為 FAQ",
"dismiss": "忽略"
},
"msg": {
"refreshed": "熱點聚合已完成",
"dryRunDone": "預覽完成:晉升 {promoted} 組(掃描 {scanned} 條日誌)",
"promoted": "已晉升為常用問題 FAQ",
"dismissed": "已忽略該熱點"
}
},
"announcement": {