embeddign优化

This commit is contained in:
spllzh
2025-08-07 20:51:29 +08:00
parent bdb78caf59
commit bd20deca35
12 changed files with 336 additions and 7 deletions

View File

@@ -19,6 +19,7 @@ langchain4j:
log-requests: true
log-responses: true
max-segments-per-batch: 10
# redis 向量数据库
community:
redis:
host: 101.43.230.106
@@ -35,4 +36,22 @@ spring:
port: 6389
host: 124.221.59.58
password: qwe123
database: 0
database: 0
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://124.221.59.58:3309/rj_user_clue?useUnicode=true&characterEncoding=utf8
username: root
password: ChangAndb.123!
hikari:
maximumPoolSize: 10
minimumIdle: 5
idleTimeout: 300000
maxLifetime: 600000
connectionTestQuery: "SELECT 1"
output:
ansi:
enabled: always
mybatis:
configuration:
map-underscore-to-camel-case: true

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.rongl.mapper.ReservationMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.cst.langchain4jheima.pojo.Reservation">
<id column="id" property="id" />
<result column="name" property="name" />
<result column="gender" property="gender" />
<result column="phone" property="phone" />
<result column="province" property="province" />
<result column="datetime" property="datetime" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, name, gender, phone, province, datetime
</sql>
</mapper>