mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-20 05:26:57 +08:00
78 lines
1.4 KiB
YAML
78 lines
1.4 KiB
YAML
spring:
|
|
h2:
|
|
console:
|
|
path: /h2-console/semantic
|
|
# enabled web
|
|
enabled: true
|
|
datasource:
|
|
driver-class-name: org.h2.Driver
|
|
schema: classpath:db/schema-h2.sql
|
|
data: classpath:db/data-h2.sql
|
|
url: jdbc:h2:mem:semantic;DATABASE_TO_UPPER=false
|
|
username: root
|
|
password: semantic
|
|
|
|
demo:
|
|
enabled: true
|
|
|
|
server:
|
|
port: 9080
|
|
|
|
authentication:
|
|
enable: true
|
|
exclude:
|
|
path: /api/auth/user/register,/api/auth/user/login
|
|
token:
|
|
http:
|
|
header:
|
|
key: Authorization
|
|
|
|
time:
|
|
threshold: 100
|
|
|
|
mybatis:
|
|
mapper-locations=classpath:mappers/custom/*.xml,classpath*:/mappers/*.xml
|
|
|
|
|
|
llm:
|
|
parser:
|
|
url: http://127.0.0.1:9092
|
|
embedding:
|
|
url: http://127.0.0.1:9092
|
|
functionCall:
|
|
url: http://127.0.0.1:9092
|
|
|
|
#langchain4j config
|
|
langchain4j:
|
|
#1.chat-model
|
|
chat-model:
|
|
provider: open_ai
|
|
openai:
|
|
api-key: api_key
|
|
model-name: gpt-3.5-turbo
|
|
temperature: 0.0
|
|
timeout: PT60S
|
|
#2.embedding-model
|
|
#2.1 in_memory
|
|
embedding-model:
|
|
provider: in_memory
|
|
#2.2 open_ai
|
|
# embedding-model:
|
|
# provider: open_ai
|
|
# openai:
|
|
# api-key: api_key
|
|
# modelName: all-minilm-l6-v2.onnx
|
|
|
|
#2.2 hugging_face
|
|
# embedding-model:
|
|
# provider: hugging_face
|
|
# hugging-face:
|
|
# access-token: hg_access_token
|
|
# model-id: sentence-transformers/all-MiniLM-L6-v2
|
|
# timeout: 1h
|
|
|
|
#langchain4j log
|
|
logging:
|
|
level:
|
|
dev.langchain4j: DEBUG
|
|
dev.ai4j.openai4j: DEBUG |