mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
【优化】AI 知识库: 重命名 AiVectorFactory -> AiVectorStoreFactory
This commit is contained in:
parent
f97fb0a8fe
commit
abf5a22cd0
@ -2,7 +2,7 @@ package cn.iocoder.yudao.module.ai.service.model;
|
|||||||
|
|
||||||
import cn.iocoder.yudao.framework.ai.core.enums.AiPlatformEnum;
|
import cn.iocoder.yudao.framework.ai.core.enums.AiPlatformEnum;
|
||||||
import cn.iocoder.yudao.framework.ai.core.factory.AiModelFactory;
|
import cn.iocoder.yudao.framework.ai.core.factory.AiModelFactory;
|
||||||
import cn.iocoder.yudao.framework.ai.core.factory.AiVectorFactory;
|
import cn.iocoder.yudao.framework.ai.core.factory.AiVectorStoreFactory;
|
||||||
import cn.iocoder.yudao.framework.ai.core.model.midjourney.api.MidjourneyApi;
|
import cn.iocoder.yudao.framework.ai.core.model.midjourney.api.MidjourneyApi;
|
||||||
import cn.iocoder.yudao.framework.ai.core.model.suno.api.SunoApi;
|
import cn.iocoder.yudao.framework.ai.core.model.suno.api.SunoApi;
|
||||||
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
|
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
|
||||||
@ -40,7 +40,7 @@ public class AiApiKeyServiceImpl implements AiApiKeyService {
|
|||||||
@Resource
|
@Resource
|
||||||
private AiModelFactory modelFactory;
|
private AiModelFactory modelFactory;
|
||||||
@Resource
|
@Resource
|
||||||
private AiVectorFactory vectorFactory;
|
private AiVectorStoreFactory vectorFactory;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Long createApiKey(AiApiKeySaveReqVO createReqVO) {
|
public Long createApiKey(AiApiKeySaveReqVO createReqVO) {
|
||||||
|
@ -2,8 +2,8 @@ package cn.iocoder.yudao.framework.ai.config;
|
|||||||
|
|
||||||
import cn.iocoder.yudao.framework.ai.core.factory.AiModelFactory;
|
import cn.iocoder.yudao.framework.ai.core.factory.AiModelFactory;
|
||||||
import cn.iocoder.yudao.framework.ai.core.factory.AiModelFactoryImpl;
|
import cn.iocoder.yudao.framework.ai.core.factory.AiModelFactoryImpl;
|
||||||
import cn.iocoder.yudao.framework.ai.core.factory.AiVectorFactory;
|
import cn.iocoder.yudao.framework.ai.core.factory.AiVectorStoreFactory;
|
||||||
import cn.iocoder.yudao.framework.ai.core.factory.AiVectorFactoryImpl;
|
import cn.iocoder.yudao.framework.ai.core.factory.AiVectorStoreFactoryImpl;
|
||||||
import cn.iocoder.yudao.framework.ai.core.model.deepseek.DeepSeekChatModel;
|
import cn.iocoder.yudao.framework.ai.core.model.deepseek.DeepSeekChatModel;
|
||||||
import cn.iocoder.yudao.framework.ai.core.model.deepseek.DeepSeekChatOptions;
|
import cn.iocoder.yudao.framework.ai.core.model.deepseek.DeepSeekChatOptions;
|
||||||
import cn.iocoder.yudao.framework.ai.core.model.midjourney.api.MidjourneyApi;
|
import cn.iocoder.yudao.framework.ai.core.model.midjourney.api.MidjourneyApi;
|
||||||
@ -39,8 +39,8 @@ public class YudaoAiAutoConfiguration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public AiVectorFactory aiVectorFactory() {
|
public AiVectorStoreFactory aiVectorFactory() {
|
||||||
return new AiVectorFactoryImpl();
|
return new AiVectorStoreFactoryImpl();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import org.springframework.ai.vectorstore.VectorStore;
|
|||||||
* AI Vector 模型工厂的接口类
|
* AI Vector 模型工厂的接口类
|
||||||
* @author xiaoxin
|
* @author xiaoxin
|
||||||
*/
|
*/
|
||||||
public interface AiVectorFactory {
|
public interface AiVectorStoreFactory {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
@ -18,7 +18,7 @@ import redis.clients.jedis.JedisPooled;
|
|||||||
*
|
*
|
||||||
* @author xiaoxin
|
* @author xiaoxin
|
||||||
*/
|
*/
|
||||||
public class AiVectorFactoryImpl implements AiVectorFactory {
|
public class AiVectorStoreFactoryImpl implements AiVectorStoreFactory {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public VectorStore getOrCreateVectorStore(EmbeddingModel embeddingModel, AiPlatformEnum platform, String apiKey, String url) {
|
public VectorStore getOrCreateVectorStore(EmbeddingModel embeddingModel, AiPlatformEnum platform, String apiKey, String url) {
|
Loading…
Reference in New Issue
Block a user