Chunk.java 582 B

1234567891011121314151617181920212223242526
  1. package io.github.qifan777.knowledge.graph.chunk;
  2. import lombok.Builder;
  3. import lombok.Data;
  4. import org.springframework.data.neo4j.core.schema.Id;
  5. import org.springframework.data.neo4j.core.schema.Node;
  6. import java.util.List;
  7. @Builder
  8. @Data
  9. @Node
  10. public class Chunk {
  11. @Id
  12. private String id;
  13. // 切割后的文本
  14. private String text;
  15. // item1, item1a, item7, item7a
  16. private String item;
  17. // Chunk序列号
  18. private Integer chunkSeqId;
  19. // 属于的Form
  20. private String formId;
  21. // text的embedding
  22. private List<Double> textEmbedding;
  23. }