|
@@ -1,16 +1,13 @@
|
|
|
package com.pavis.admin.aigc.model.req;
|
|
|
|
|
|
-import jakarta.validation.constraints.*;
|
|
|
-
|
|
|
-import lombok.Data;
|
|
|
-
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
-
|
|
|
+import jakarta.validation.constraints.NotBlank;
|
|
|
+import jakarta.validation.constraints.NotNull;
|
|
|
+import lombok.Data;
|
|
|
import org.hibernate.validator.constraints.Length;
|
|
|
+
|
|
|
import java.io.Serial;
|
|
|
import java.io.Serializable;
|
|
|
-import java.time.*;
|
|
|
-import java.math.BigDecimal;
|
|
|
|
|
|
/**
|
|
|
* AIGC知识库创建或修改参数
|
|
@@ -34,9 +31,10 @@ public class KnowledgeReq implements Serializable {
|
|
|
private String name;
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
+ * 向量库配置
|
|
|
+ * {"store_type":"milvus","collection":"default","index_type":"HNSW","dimension":768,"metadata_schema":{"author":"string","publish_date":"date"}}
|
|
|
*/
|
|
|
- @Schema(description = "")
|
|
|
+ @Schema(description = "向量库配置 {\"store_type\":\"milvus\",\"collection\":\"default\",\"index_type\":\"HNSW\",\"dimension\":768,\"metadata_schema\":{\"author\":\"string\",\"publish_date\":\"date\"}}")
|
|
|
@NotBlank(message = "不能为空")
|
|
|
@Length(max = 1073741824, message = "长度不能超过 {max} 个字符")
|
|
|
private String embedConfig;
|
|
@@ -54,18 +52,4 @@ public class KnowledgeReq implements Serializable {
|
|
|
@Schema(description = "关联向量存储ID")
|
|
|
@NotNull(message = "关联向量存储ID不能为空")
|
|
|
private Long embedStoreId;
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建人
|
|
|
- */
|
|
|
- @Schema(description = "创建人")
|
|
|
- @NotNull(message = "创建人不能为空")
|
|
|
- private Long createUser;
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建时间
|
|
|
- */
|
|
|
- @Schema(description = "创建时间")
|
|
|
- @NotNull(message = "创建时间不能为空")
|
|
|
- private LocalDateTime createTime;
|
|
|
}
|