mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 19:15:06 +08:00
【代码评审】AI 大模型:知识库的逻辑
This commit is contained in:
@ -47,7 +47,7 @@
|
||||
|
||||
<!-- 向量化,基于 Redis 存储,Tika 解析内容 -->
|
||||
|
||||
<!-- 暂不做经济型,先注释 -->
|
||||
<!-- 暂不做经济型,先注释 TODO 经济型是啥呀? -->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>${spring-ai.groupId}</groupId>-->
|
||||
<!-- <artifactId>spring-ai-transformers-spring-boot-starter</artifactId>-->
|
||||
|
@ -197,6 +197,7 @@ public class AiModelFactoryImpl implements AiModelFactory {
|
||||
});
|
||||
}
|
||||
|
||||
// TODO @新:貌似可以创建一个大的 VectorStore。然后搜的时候,通过 Filter.Expression 过滤对应的数据。
|
||||
@Override
|
||||
public VectorStore getOrCreateVectorStore(EmbeddingModel embeddingModel, AiPlatformEnum platform, String apiKey, String url) {
|
||||
String cacheKey = buildClientCacheKey(VectorStore.class, platform, apiKey, url);
|
||||
|
Reference in New Issue
Block a user