Class TextVector

java.lang.Object
com.bytedesk.kbase.llm_text.TextVector

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

    • uid

      private String uid
    • title

      @Field(type=Text) private String title
    • 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
    • titleEmbedding

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

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

      @Field(type=Keyword) private List<String> docIdList
    • 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

    • TextVector

      public TextVector()
  • Method Details

    • fromTextEntity

      public static TextVector fromTextEntity(TextEntity text)
      从TextEntity创建TextVector实体的静态方法 注意:向量嵌入需要单独计算并设置