feat(embedding): 添加模型维度支持并重构向量存储策略

- 在ChatModelVo中添加dimension字段用于存储模型维度
- 重构EmbeddingModelFactory以支持按模型名称和维度创建实例
- 修改向量存储策略接口参数顺序并统一维度处理
- 为OpenAI和ZhiPuAI嵌入提供者添加维度配置支持
- 优化知识库服务中模型选择逻辑,添加回退机制
This commit is contained in:
Yzm
2025-10-17 19:55:24 +08:00
parent 9d4a0e0b36
commit e242a67c74
11 changed files with 64 additions and 69 deletions

View File

@@ -70,6 +70,11 @@ public class ChatModelVo implements Serializable {
@ExcelProperty(value = "是否显示")
private String modelShow;
/**
* 模型维度
*/
private Integer dimension;
/**
* 系统提示词
*/