server:
  port: 9080
  compression:
    enabled: true
    min-response-size: 1024
    mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
spring:
  datasource:
    url: jdbc:mysql://localhost:3306/prindex?useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowMultiQueries=true
    username: root
    password: root
    driver-class-name: com.mysql.cj.jdbc.Driver
mybatis:
  mapper-locations=classpath:mappers/custom/*.xml,classpath*:/mappers/*.xml

dolphinscheduler:
  url: http://172.20.2.23:18080/dolphinscheduler/
  token: 92935813851f99c52e740a061d12e3fd
  source-name: DW
  target-name: PRINDEX
  source-type: DORIS
  target-type: DORIS

authentication:
  enable: true
  exclude:
    path: /api/auth/user/register,/api/auth/user/login
  token:
    http:
      header:
        key: Authorization

logging:
  level:
    dev.langchain4j: DEBUG
    dev.ai4j.openai4j: DEBUG

s2:
  pyllm:
    url: http://127.0.0.1:9092

  parser:
    url: ${s2.pyllm.url}
    strategy: ONE_PASS_SELF_CONSISTENCY
    exemplar-recall:
      number: 10
    few-shot:
      number: 5
    self-consistency:
      number: 1
    multi-turn:
      enable: false

  corrector:
    additional:
      information: true
    date: true
  functionCall:
    url: ${s2.pyllm.url}

  embedding:
    url: ${s2.pyllm.url}
    persistent:
      path: /tmp

  demo:
    names: S2VisitsDemo,S2ArtistDemo
    enableLLM: false

  schema:
    cache:
      enable: false

# swagger配置
swagger:
  title: '接口文档'
  base:
    package: com.purui.prims
  description: '指标系统接口文档'
  url: ''
  contact:
    name: '数据中台'
    email:
    url: ''
  version: 3.0


langchain4j:
  open-ai:
    chat-model:
      # Replace with your LLM configs
      # Note: The default API key `demo` is provided by langchain4j community
      #       which limits 1000 tokens per request.
      base-url: ${OPENAI_API_BASE:https://api.openai.com/v1}
      api-key: ${OPENAI_API_KEY:demo}
      model-name: ${OPENAI_MODEL_NAME:gpt-3.5-turbo}
      temperature: ${OPENAI_TEMPERATURE:0.0}
      timeout: ${OPENAI_TIMEOUT:PT60S}
  # java.lang.RuntimeException: dev.ai4j.openai4j.OpenAiHttpException: Too many requests
  #    embedding-model:
  #      base-url: ${OPENAI_API_BASE:https://api.openai.com/v1}
  #      api-key: ${OPENAI_API_KEY:demo}
  in-memory:
    embedding-model:
      model-name: bge-small-zh
      #modelPath: /data/model.onnx
      #vocabularyPath: /data/onnx_vocab.txt
    embedding-store:
      file-path: /tmp