This commit is contained in:
mislayming
2025-02-19 19:34:09 +08:00
committed by GitHub
8 changed files with 250 additions and 80 deletions

View File

@@ -1,14 +1,14 @@
spring:
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://${S2_DB_HOST:localhost}:${S2_DB_PORT:5432}/${S2_DB_DATABASE:postgres}?stringtype=unspecified
username: ${S2_DB_USER:postgres}
password: ${S2_DB_PASSWORD:postgres}
url: jdbc:postgresql://localhost:5432/postgres?stringtype=unspecified
username: postgres
password: postgres
sql:
init:
mode: always
username: ${S2_DB_USER:postgres}
password: ${S2_DB_PASSWORD:postgres}
username: postgres
password: postgres
schema-locations: classpath:db/schema-postgres.sql,classpath:db/schema-postgres-demo.sql
data-locations: classpath:db/data-postgres.sql,classpath:db/data-postgres-demo.sql
@@ -17,9 +17,9 @@ s2:
store:
provider: PGVECTOR
base:
url: ${S2_DB_HOST:127.0.0.1}
port: ${S2_DB_PORT:5432}
databaseName: ${S2_DB_DATABASE:postgres}
user: ${S2_DB_USER:postgres}
password: ${S2_DB_PASSWORD:postgres}
url: 127.0.0.1
port: 5432
databaseName: postgres
user: postgres
password: postgres
dimension: 512

View File

@@ -41,3 +41,5 @@ s2:
threshold: 0.5
min:
threshold: 0.3
embedding:
use-llm-enhance: true