TypeSafe模型生成评分
This commit is contained in:
+8
-2
@@ -3,7 +3,7 @@ from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
class Settings(BaseSettings):
|
||||
# 服务配置
|
||||
service_host: str = "0.0.0.0"
|
||||
service_host: str = "127.0.0.1"
|
||||
service_port: int = 8990
|
||||
|
||||
# ChromaDB 配置 (PersistentClient 模式)
|
||||
@@ -55,10 +55,16 @@ class Settings(BaseSettings):
|
||||
# LLM 自评(generate 节点输出 JSON 自评分数,融入 KB 路径置信度;出问题可一键旁路)
|
||||
rag_self_eval_enabled: bool = True
|
||||
# 自评信号融合权重(检索信号权重 = 1 - 该值)
|
||||
rag_confidence_self_eval_weight: float = 0.3
|
||||
rag_confidence_self_eval_weight: float = 0.4
|
||||
# RAG 流水线 LLM 调用统一 max_tokens(preprocess / generate 共用;JSON 结构 + 自评字段需更大预算)
|
||||
rag_llm_max_tokens: int = 1024
|
||||
|
||||
# TypeSafe 集成(generate 节点回答打分;出问题可一键旁路)
|
||||
rag_typesafe_enabled: bool = False
|
||||
typesafe_api_key: str = ""
|
||||
typesafe_model: str = "jev-latest"
|
||||
typesafe_timeout: int = 10
|
||||
|
||||
# BM25 关键词检索
|
||||
bm25_index_path: str = "./bm25_data"
|
||||
bm25_enabled: bool = True
|
||||
|
||||
Reference in New Issue
Block a user