|
@@ -9,6 +9,10 @@ server:
|
|
|
spring:
|
|
spring:
|
|
|
application:
|
|
application:
|
|
|
name: 学习Spring AI Alibaba的项目
|
|
name: 学习Spring AI Alibaba的项目
|
|
|
|
|
+ datasource:
|
|
|
|
|
+ url: jdbc:postgresql://localhost:5432/test
|
|
|
|
|
+ username: postgres
|
|
|
|
|
+ password: postgres
|
|
|
ai:
|
|
ai:
|
|
|
openai:
|
|
openai:
|
|
|
api-key: ${QWEN_APIKEY}
|
|
api-key: ${QWEN_APIKEY}
|
|
@@ -17,6 +21,13 @@ spring:
|
|
|
completions-path: /v1/chat/completions
|
|
completions-path: /v1/chat/completions
|
|
|
options:
|
|
options:
|
|
|
model: qwen-flash
|
|
model: qwen-flash
|
|
|
|
|
+# 向量存储相关的配置
|
|
|
|
|
+ vectorstore:
|
|
|
|
|
+ pgvectore:
|
|
|
|
|
+ index-type: HNSW
|
|
|
|
|
+ distance: COSINE_DISTANCE
|
|
|
|
|
+ dimensions: 1536
|
|
|
|
|
+ max-document-batch-size: 1000
|
|
|
logging:
|
|
logging:
|
|
|
level:
|
|
level:
|
|
|
root: DEBUG
|
|
root: DEBUG
|