咨询台接 Ragflow 检索与示例知识库,支持追问、判定、引用和留资。 Co-authored-by: haijd <haijd@163.com>
25 lines
692 B
Python
25 lines
692 B
Python
from pathlib import Path
|
|
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
KNOWLEDGE_DIR = ROOT / "knowledge"
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(env_file=str(ROOT / ".env"), extra="ignore")
|
|
|
|
app_name: str = "鲜境智能客服"
|
|
knowledge_dir: Path = KNOWLEDGE_DIR
|
|
retrieval_backend: str = "ragflow"
|
|
ragflow_base_url: str = "http://127.0.0.1:9380"
|
|
ragflow_api_key: str = ""
|
|
ragflow_dataset_ids: str = ""
|
|
ragflow_web_url: str = "http://127.0.0.1:18080"
|
|
ragflow_email: str = "admin@xianjing.local"
|
|
ragflow_password: str = "XianjingDemo2026"
|
|
|
|
|
|
settings = Settings()
|