app:
  name: deepinsight
  host: 0.0.0.0
  port: 8888
  api_prefix: /api/v1
  reload: false

database:
  url: sqlite:///data/deepinsight.db

llms:
  - type: deepseek
    model: deepseek-chat
    base_url: https://api.deepseek.com/
    api_key: ${DEEPSEEK_API_KEY}
    setting:
      max_tokens: 4096
      timeout: 120

# 文件存储服务(可选)默认使用本地存储且不提供 HTTP 访问
#file_storage:
#  type: local  # 环境变量名 STORAGE_TYPE 默认 local 模式(本地磁盘)。可选: s3 (AWS S3 API 兼容的 OBS 服务)
  # s3:  # 当模式设置为 s3 时,以下三个参数为必要参数,或均通过环境变量 S3_ENDPOINT, S3_AK, S3_SK 设置
  #   endpoint:
  #   ak:
  #   sk:
  # remote_access: false  # 是否开放存储服务的远端访问,当前总是为False

# 通用工作路径配置(独立于 RAG)
workspace:
  work_root: ./data
  # 会议洞察报告 PPT 模板路径(支持环境变量展开,如 ${PPT_TEMPLATE_PATH})
  conference_ppt_template_path: ./templates/conference_template.pptx
  chart_image_dir: charts
  image_path_mode: ${WORKSPACE_IMAGE_PATH_MODE}
  image_base_url: ${WORKSPACE_IMAGE_BASE_URL}
#  resource_base_uri: 可从 WORKSPACE_RESOURCE_BASE_URI 环境变量配置

# RAG 相关工作路径配置
# 将作为所有 RAG 本地数据的前缀目录,例如:
# - LightRAG working_dir -> ${rag.work_root}/rag_storage
# - 会务文档目标根目录 -> ${rag.work_root}/original_files/conference/<conference_id>
rag:
  work_root: ./data
  engine:
    type: llamaindex  # lightrag / llamaindex
    lightrag:
      embedding_model: sentence-transformers/all-MiniLM-L6-v2
      embedding_dim: 384
      enable_graph_extraction: false
    llamaindex:
      embed_model: BAAI/bge-small-en-v1.5
      embed_device: cpu
      llm_model:
      llm_api_key:
      llm_base_url:
  parser:
    type: llamaindex  # mineru_vl / llamaindex
    mineru_vl:
      enable_vl: false
    llamaindex:
      use_llama_parse: false
      api_key: ${LLAMA_PARSE_API_KEY}
      premium: false

prompt_management:
  source: local # local / remote
  env: dev # dev / prod
  langfuse:
    public_key: ${LANGFUSE_PUBLIC_KEY}
    secret_key: ${LANGFUSE_SECRET_KEY}
    host: ${LANGFUSE_HOST}
  groups:
    resch_gen:
      label: "latest"
    conf_chat:
      label: "latest"
    conf_gen_supervisor:
      label: "latest"
    conf_gen_overview:
      label: "latest"
    conf_gen_submission:
      label: "latest"
    conf_gen_keynotes:
      label: "latest"
    conf_gen_topic:
      label: "latest"
    conf_gen_best_papers:
      label: "latest"
    conf_gen_cross_topic:
      label: "latest"
    conf_gen_ppt_generate:
      label: "latest"
    expert_review:
      label: "latest"
    summary_experts:
      label: "latest"
      
# 场景配置
scenarios:
  deep_research:
    final_report_model: deepseek-chat
    allow_user_clarification: true
    allow_edit_research_brief: true
    allow_edit_report_outline: true
    stream_blocklist:
      text:
        clarify_with_user: true
        write_research_brief: true
        compress_research: true
      tool_call:
        clarify_with_user: true
        write_research_brief: true
        compress_research: true