采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
我这边添加ai-transfer中的redisson依赖后,项目启动报错, 去掉redisson依赖后,项目正常启动,但向量会自动写入db0.
报错信息如下:Description: A component required a bean of type ‘org.springframework.ai.vectorstore.VectorStore’ that could not be found.
还有您这边还需要明确告诉我一下您使用redisson在bi-helper中想要实现什么目的
您这边在config中写Redssion的配置类
RedissonConfig
了吗
我是想要实现将向量存入指定的reids db中 配置了RedissonConfig也会报错: 以下是AI的回答: Redisson 会替换 RedisConnectionFactory — Redisson 的自动配置会创建一个 RedissonConnectionFactory bean Spring AI Redis VectorStore 需要 RedisConnectionFactory — 但它期望的是 Spring Data Redis 的 LettuceConnectionFactory 或 JedisConnectionFactory
如果想要将向量存在redis中需要使用spring ai 官方提供的依赖<dependency> <groupId>org.springframework.ai</groupId> <artifactId>spring-ai-starter-vector-store-redis</artifactId> </dependency> 然后去配置文件中修改redis的配置,你的redis配置的database是几对应的向量就会存在那里。因为它底层也是依赖的redis.
回复 Carl老师:ok
登录后可查看更多问答,登录/注册
Java转 AI高薪领域必备,从0到1打通生产级AI Agent开发
83 5
87 5
21 5
92 4
79 4
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号