Uses of Class
com.bytedesk.kbase.llm_chunk.ChunkEntity
Packages that use ChunkEntity
Package
Description
ByteDesk 文档分割包
提供文档分割、向量化等功能
-
Uses of ChunkEntity in com.bytedesk.kbase.llm_chunk
Methods in com.bytedesk.kbase.llm_chunk that return ChunkEntityModifier and TypeMethodDescriptionprotected ChunkEntityChunkRestService.doSave(ChunkEntity entity) ChunkRestService.handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, ChunkEntity entity) ChunkEntity.setElasticError()ChunkEntity.setElasticSuccess()ChunkEntity.setVectorError()ChunkEntity.setVectorSuccess()Methods in com.bytedesk.kbase.llm_chunk that return types with arguments of type ChunkEntityModifier and TypeMethodDescriptionprotected org.springframework.data.jpa.domain.Specification<ChunkEntity>ChunkRestService.createSpecification(ChunkRequest request) protected org.springframework.data.domain.Page<ChunkEntity>ChunkRestService.executePageQuery(org.springframework.data.jpa.domain.Specification<ChunkEntity> spec, org.springframework.data.domain.Pageable pageable) ChunkRepository.findByDocId(String docId) ChunkRepository.findByFile_UidAndDeletedFalse(String fileUid) ChunkRestService.findByFileUid(String fileUid) ChunkRepository.findByKbase_UidAndDeletedFalse(String kbUid) ChunkRestService.findByKbUid(String kbUid) static org.springframework.data.jpa.domain.Specification<ChunkEntity>ChunkSpecification.search(ChunkRequest request, AuthService authService) Methods in com.bytedesk.kbase.llm_chunk with parameters of type ChunkEntityModifier and TypeMethodDescriptionChunkRestService.convertToExcel(ChunkEntity chunk) ChunkRestService.convertToResponse(ChunkEntity entity) protected ChunkEntityChunkRestService.doSave(ChunkEntity entity) ChunkRestService.handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, ChunkEntity entity) voidChunkEntityListener.onPostPersist(ChunkEntity chunk) voidChunkEntityListener.onPostUpdate(ChunkEntity chunk) Method parameters in com.bytedesk.kbase.llm_chunk with type arguments of type ChunkEntityModifier and TypeMethodDescriptionprotected org.springframework.data.domain.Page<ChunkEntity>ChunkRestService.executePageQuery(org.springframework.data.jpa.domain.Specification<ChunkEntity> spec, org.springframework.data.domain.Pageable pageable) -
Uses of ChunkEntity in com.bytedesk.kbase.llm_chunk.elastic
Methods in com.bytedesk.kbase.llm_chunk.elastic with parameters of type ChunkEntityModifier and TypeMethodDescriptionstatic ChunkElasticChunkElastic.fromEntity(ChunkEntity entity) 将单个 ChunkEntity 转换为 ChunkElasticvoidChunkElasticService.indexChunk(ChunkEntity chunk) 索引Chunk实体到ElasticsearchMethod parameters in com.bytedesk.kbase.llm_chunk.elastic with type arguments of type ChunkEntityModifier and TypeMethodDescriptionstatic List<ChunkElastic>ChunkElastic.fromEntityList(List<ChunkEntity> entities) 将 ChunkEntity 列表转换为 ChunkElastic 列表 -
Uses of ChunkEntity in com.bytedesk.kbase.llm_chunk.event
Fields in com.bytedesk.kbase.llm_chunk.event declared as ChunkEntityMethods in com.bytedesk.kbase.llm_chunk.event that return ChunkEntityModifier and TypeMethodDescriptionAbstractChunkEvent.getChunk()private ChunkEntityAbstractChunkEvent.snapshot(ChunkEntity source) Methods in com.bytedesk.kbase.llm_chunk.event with parameters of type ChunkEntityModifier and TypeMethodDescriptionprivate ChunkEntityAbstractChunkEvent.snapshot(ChunkEntity source) Constructors in com.bytedesk.kbase.llm_chunk.event with parameters of type ChunkEntityModifierConstructorDescriptionprotectedAbstractChunkEvent(Object source, ChunkEntity chunk) ChunkCreateEvent(Object source, ChunkEntity chunk) ChunkDeleteEvent(Object source, ChunkEntity chunk) ChunkUpdateDocEvent(Object source, ChunkEntity chunk) ChunkUpdateEvent(Object source, ChunkEntity chunk) -
Uses of ChunkEntity in com.bytedesk.kbase.llm_chunk.mq
Methods in com.bytedesk.kbase.llm_chunk.mq with parameters of type ChunkEntityModifier and TypeMethodDescriptionprivate voidChunkIndexConsumer.handleDeleteOperation(ChunkEntity chunk, ChunkIndexMessage message, String batchInfo) 处理删除操作 将全文索引和向量索引的删除操作分开处理private voidChunkIndexConsumer.handleIndexOperation(ChunkEntity chunk, ChunkIndexMessage message, String batchInfo) 处理索引操作 将全文索引和向量索引的操作分开处理,避免一个操作失败影响另一个操作private booleanChunkIndexConsumer.isDuplicateContent(ChunkEntity chunk) 检查是否为重复内容 简单的重复检查策略:基于内容哈希值voidChunkIndexConsumer.markChunkAsProcessed(ChunkEntity chunk) 标记chunk为已处理voidChunkIndexConsumer.processElasticIndex(ChunkEntity chunk) 在单独事务中处理全文索引ChunkIndexConsumer.processVectorDelete(ChunkEntity chunk) 在单独事务中处理向量索引删除voidChunkIndexConsumer.processVectorIndex(ChunkEntity chunk) 处理向量索引(使用独立的事务管理策略)private voidChunkIndexConsumer.sendChunkCompleteNotification(ChunkEntity chunk, String status, String errorMessage, String processType) 发送chunk处理完成通知 -
Uses of ChunkEntity in com.bytedesk.kbase.llm_chunk.vector
Methods in com.bytedesk.kbase.llm_chunk.vector with parameters of type ChunkEntityModifier and TypeMethodDescriptionvoidChunkVectorService.deleteChunkVector(ChunkEntity chunk) 删除chunk的向量索引static ChunkVectorChunkVector.fromChunkEntity(ChunkEntity chunk) 从ChunkEntity创建ChunkVector实体的静态方法 注意:向量嵌入需要单独计算并设置voidChunkVectorService.indexChunkVector(ChunkEntity chunk) 将chunk内容添加到向量存储中