feat: 用 Ragflow 搭建鲜境方案客服
咨询台接 Ragflow 检索与示例知识库,支持追问、判定、引用和留资。 Co-authored-by: haijd <haijd@163.com>
This commit is contained in:
@@ -8,15 +8,17 @@ KNOWLEDGE_DIR = ROOT / "knowledge"
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
||||
model_config = SettingsConfigDict(env_file=str(ROOT / ".env"), extra="ignore")
|
||||
|
||||
app_name: str = "鲜境方案引擎原型"
|
||||
app_name: str = "鲜境智能客服"
|
||||
knowledge_dir: Path = KNOWLEDGE_DIR
|
||||
retrieval_backend: str = "mock" # mock | ragflow
|
||||
retrieval_backend: str = "ragflow"
|
||||
ragflow_base_url: str = "http://127.0.0.1:9380"
|
||||
ragflow_api_key: str = ""
|
||||
ragflow_dataset_ids: str = ""
|
||||
llm_mode: str = "template" # template(无 Key 可跑)| openai_compatible(预留)
|
||||
ragflow_web_url: str = "http://127.0.0.1:18080"
|
||||
ragflow_email: str = "admin@xianjing.local"
|
||||
ragflow_password: str = "XianjingDemo2026"
|
||||
|
||||
|
||||
settings = Settings()
|
||||
|
||||
Reference in New Issue
Block a user