mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-03-26 11:03:45 +08:00
feat: 修复知识库上传失败
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.ruoyi.domain;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
@@ -78,14 +79,19 @@ public class KnowledgeInfo extends BaseEntity {
|
||||
private Long textBlockSize;
|
||||
|
||||
/**
|
||||
* 向量库
|
||||
* 向量库模型名称
|
||||
*/
|
||||
private String vector;
|
||||
private String vectorModelName;
|
||||
|
||||
/**
|
||||
* 向量模型
|
||||
* 向量化模型名称
|
||||
*/
|
||||
private String vectorModel;
|
||||
private String embeddingModelName;
|
||||
|
||||
/**
|
||||
* 系统提示词
|
||||
*/
|
||||
private String systemPrompt;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
|
||||
@@ -83,16 +83,22 @@ public class KnowledgeInfoBo extends BaseEntity {
|
||||
private Long textBlockSize;
|
||||
|
||||
/**
|
||||
* 向量库
|
||||
* 向量库模型名称
|
||||
*/
|
||||
@NotBlank(message = "向量库不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String vector;
|
||||
private String vectorModelName;
|
||||
|
||||
/**
|
||||
* 向量模型
|
||||
* 向量化模型名称
|
||||
*/
|
||||
@NotBlank(message = "向量模型不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String vectorModel;
|
||||
private String embeddingModelName;
|
||||
|
||||
|
||||
/**
|
||||
* 系统提示词
|
||||
*/
|
||||
private String systemPrompt;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
|
||||
@@ -26,9 +26,14 @@ public class QueryVectorBo {
|
||||
private Integer maxResults;
|
||||
|
||||
/**
|
||||
* 模型名称
|
||||
* 向量库模型名称
|
||||
*/
|
||||
private String modelName;
|
||||
private String vectorModelName;
|
||||
|
||||
/**
|
||||
* 向量化模型名称
|
||||
*/
|
||||
private String embeddingModelName;
|
||||
|
||||
/**
|
||||
* 请求key
|
||||
|
||||
@@ -32,9 +32,14 @@ public class StoreEmbeddingBo {
|
||||
private List<String> fids;
|
||||
|
||||
/**
|
||||
* 模型名称
|
||||
* 向量库模型名称
|
||||
*/
|
||||
private String modelName;
|
||||
private String vectorModelName;
|
||||
|
||||
/**
|
||||
* 向量化模型名称
|
||||
*/
|
||||
private String embeddingModelName;
|
||||
|
||||
/**
|
||||
* 请求key
|
||||
|
||||
@@ -98,16 +98,20 @@ public class KnowledgeInfoVo implements Serializable {
|
||||
private Integer textBlockSize;
|
||||
|
||||
/**
|
||||
* 向量库
|
||||
* 向量库模型名称
|
||||
*/
|
||||
@ExcelProperty(value = "向量库")
|
||||
private String vector;
|
||||
private String vectorModelName;
|
||||
|
||||
/**
|
||||
* 向量模型
|
||||
* 向量化模型名称
|
||||
*/
|
||||
@ExcelProperty(value = "向量模型")
|
||||
private String vectorModel;
|
||||
private String embeddingModelName;
|
||||
|
||||
|
||||
/**
|
||||
* 系统提示词
|
||||
*/
|
||||
private String systemPrompt;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
|
||||
Reference in New Issue
Block a user