Class FaqVector

java.lang.Object
com.bytedesk.kbase.faq.vector.FaqVector

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

    • uid

      private String uid
    • question

      @Field(type=Text) private String question
    • answer

      @Field(type=Text) private String answer
    • similarQuestions

      @Field(type=Text) private List<String> similarQuestions
    • 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
    • questionEmbedding

      @Field(type=Dense_Vector, dims=1536) private float[] questionEmbedding
    • answerEmbedding

      @Field(type=Dense_Vector, dims=1536) private float[] answerEmbedding
    • 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
    • viewCount

      @Field(type=Integer) private Integer viewCount
    • clickCount

      @Field(type=Integer) private Integer clickCount
    • upCount

      @Field(type=Integer) private Integer upCount
    • downCount

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

    • FaqVector

      public FaqVector()
  • Method Details

    • fromFaqEntity

      public static FaqVector fromFaqEntity(FaqEntity faq)
      从FaqEntity创建FaqVector实体的静态方法 注意:向量嵌入需要单独计算并设置