You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.0 KiB
Java

package com.supervision.pdfqaserver.domain;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.supervision.pdfqaserver.config.VectorTypeHandler;
import lombok.Data;
/**
* 文本向量表
* @TableName text_vector
*/
@TableName(value ="text_vector", autoResultMap = true)
@Data
public class TextVector implements Serializable {
/**
* 主键
*/
@TableId
private String id;
/**
* 文本内容
*/
private String content;
/**
* 向量值
*/
@TableField(typeHandler = VectorTypeHandler.class)
private float[] embedding;
/**
* 分类id
*/
private String categoryId;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}