Class ChunkVector

java.lang.Object
com.bytedesk.kbase.llm_chunk.ChunkVector

public class ChunkVector extends Object
Chunk向量索引实体类 用于在Elasticsearch中存储Chunk的向量表示
  • Field Details

    • uid

      private String uid
    • name

      @Field(type=Text) private String name
    • content

      @Field(type=Text) private String content
    • type

      @Field(type=Keyword) private String type
    • tagList

      @Field(type=Keyword) private List<String> tagList
    • orgUid

      @Field(type=Keyword) private String orgUid
    • kbUid

      @Field(type=Keyword) private String kbUid
    • categoryUid

      @Field(type=Keyword) private String categoryUid
    • enabled

      @Field(type=Boolean) private Boolean enabled
    • contentEmbedding

      @Field(type=Dense_Vector, dims=1536) private float[] contentEmbedding
    • docId

      @Field(type=Keyword) private String docId
    • fileUid

      @Field(type=Keyword) private String fileUid
    • startDate

      @Field(type=Date, format=date_hour_minute_second_millis) private LocalDateTime startDate
    • endDate

      @Field(type=Date, format=date_hour_minute_second_millis) private LocalDateTime endDate
    • status

      @Field(type=Keyword) private String status
    • vectorStatus

      @Field(type=Keyword) private String vectorStatus
  • Constructor Details

    • ChunkVector

      public ChunkVector()
  • Method Details

    • fromChunkEntity

      public static ChunkVector fromChunkEntity(ChunkEntity chunk)
      从ChunkEntity创建ChunkVector实体的静态方法 注意:向量嵌入需要单独计算并设置