Class ArticleVector

java.lang.Object
com.bytedesk.kbase.article.vector.ArticleVector

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

    • uid

      private String uid
    • title

      @Field(type=Text) private String title
    • summary

      @Field(type=Text) private String summary
    • contentMarkdown

      @Field(type=Text) private String contentMarkdown
    • contentHtml

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

      @Field(type=Boolean) private Boolean top
    • titleEmbedding

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

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

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

      @Field(type=Keyword) private String endDate
    • readCount

      @Field(type=Integer) private Integer readCount
    • likeCount

      @Field(type=Integer) private Integer likeCount
  • Constructor Details

    • ArticleVector

      public ArticleVector()
  • Method Details

    • fromArticleEntity

      public static ArticleVector fromArticleEntity(ArticleEntity article)
      从ArticleEntity创建ArticleVector实体的静态方法 注意:向量嵌入需要单独计算并设置