feat(faq): 缓存高频问题及答案,命中直接返回预置答案,不走dify
This commit is contained in:
1 parent
3264ed1e07
commit
cf7cc11ffc
32 files changed
+3504
-180
No files matched your search
+15
@@ -122,3 +122,18 @@ SRM_SQLSERVER_TIMEOUT=10
|
||||
# ERP
|
||||
ERP_DB_DSN=192.168.8.24:1521/topprod
|
||||
TEXT2SQL_SCHEMA_PATH=
|
||||
|
||||
# Hot FAQ offline aggregation (ChatLog -> PostgreSQL faq_hot_candidates table)
|
||||
FAQ_HOT_ENABLED=true
|
||||
FAQ_HOT_WINDOW_DAYS=7
|
||||
FAQ_HOT_MIN_COUNT=5
|
||||
FAQ_HOT_MIN_USERS=3
|
||||
FAQ_HOT_MIN_AVG_TOKENS=0
|
||||
FAQ_HOT_MAX_QUERY_LEN=200
|
||||
FAQ_HOT_MIN_QUERY_LEN=4
|
||||
FAQ_HOT_MIN_ANSWER_LEN=8
|
||||
FAQ_HOT_TTL_SECONDS=604800
|
||||
FAQ_HOT_ANSWER_SIMILARITY=0.95
|
||||
FAQ_HOT_ANSWER_DOMINANCE=0.6
|
||||
FAQ_HOT_GOOD_SCORE=4
|
||||
FAQ_HOT_BAD_SCORE=2
|
||||
Reference in new issue
Block a user