Uses of Class
com.bytedesk.kbase.llm_faq.FaqEntity
Packages that use FaqEntity
Package
Description
-
Uses of FaqEntity in com.bytedesk.kbase.llm_faq
Fields in com.bytedesk.kbase.llm_faq with type parameters of type FaqEntityMethods in com.bytedesk.kbase.llm_faq that return FaqEntityModifier and TypeMethodDescriptionFaqRestService.convertExcelToFaq
(FaqExcel excel, String kbType, String fileUid, String kbUid, String orgUid) protected FaqEntity
FaqRestService.handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, FaqEntity entity) FaqEntity.setElasticError()
FaqEntity.setElasticSuccess()
FaqEntity.setVectorError()
FaqEntity.setVectorSuccess()
Methods in com.bytedesk.kbase.llm_faq that return types with arguments of type FaqEntityModifier and TypeMethodDescriptionprotected org.springframework.data.jpa.domain.Specification<FaqEntity>
FaqRestService.createSpecification
(FaqRequest request) protected org.springframework.data.domain.Page<FaqEntity>
FaqRestService.executePageQuery
(org.springframework.data.jpa.domain.Specification<FaqEntity> spec, org.springframework.data.domain.Pageable pageable) FaqRepository.findByKbase_UidAndDeletedFalse
(String kbUid) FaqRestService.findByKbUid
(String kbUid) FaqRepository.findByQuestionContains
(String question) FaqRestService.findByQuestionContains
(String question) FaqRepository.findRandomFaq
(int limit) 获取随机FAQ,用于测试FaqRestService.findRandomFaq()
获取一个随机FAQ,用于测试static org.springframework.data.jpa.domain.Specification<FaqEntity>
FaqSpecification.search
(FaqRequest request, AuthService authService) Methods in com.bytedesk.kbase.llm_faq with parameters of type FaqEntityModifier and TypeMethodDescriptionFaqRestService.convertToExcel
(FaqEntity faq) FaqRestService.convertToResponse
(FaqEntity entity) protected FaqEntity
FaqRestService.handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, FaqEntity entity) void
FaqEntityListener.onPostPersist
(FaqEntity faq) void
FaqEntityListener.onPostUpdate
(FaqEntity faq) Method parameters in com.bytedesk.kbase.llm_faq with type arguments of type FaqEntity -
Uses of FaqEntity in com.bytedesk.kbase.llm_faq.batch
Methods in com.bytedesk.kbase.llm_faq.batch that return FaqEntityModifier and TypeMethodDescription处理每一条Excel中的FAQ数据Method parameters in com.bytedesk.kbase.llm_faq.batch with type arguments of type FaqEntity -
Uses of FaqEntity in com.bytedesk.kbase.llm_faq.elastic
Methods in com.bytedesk.kbase.llm_faq.elastic with parameters of type FaqEntityModifier and TypeMethodDescriptionstatic FaqElastic
FaqElastic.fromFaqEntity
(FaqEntity faq) void
索引FAQ实体到Elasticsearch -
Uses of FaqEntity in com.bytedesk.kbase.llm_faq.event
Fields in com.bytedesk.kbase.llm_faq.event declared as FaqEntityModifier and TypeFieldDescriptionprivate FaqEntity
FaqCreateEvent.faq
private FaqEntity
FaqDeleteEvent.faq
private FaqEntity
FaqUpdateDocEvent.faq
private FaqEntity
FaqUpdateEvent.faq
Constructors in com.bytedesk.kbase.llm_faq.event with parameters of type FaqEntityModifierConstructorDescriptionFaqCreateEvent
(FaqEntity faq) FaqDeleteEvent
(FaqEntity faq) FaqUpdateEvent
(FaqEntity faq) -
Uses of FaqEntity in com.bytedesk.kbase.llm_faq.mq
Methods in com.bytedesk.kbase.llm_faq.mq with parameters of type FaqEntityModifier and TypeMethodDescriptionFaqIndexConsumer.deleteFaqVector
(FaqEntity faq) 在完全独立事务中删除向量索引private void
FaqIndexConsumer.handleDeleteOperation
(FaqEntity faq, FaqIndexMessage message) 处理删除操作 将全文索引和向量索引的删除操作分开处理private void
FaqIndexConsumer.handleIndexOperation
(FaqEntity faq, FaqIndexMessage message) 处理索引操作 将全文索引和向量索引的操作分开处理,避免一个操作失败影响另一个操作void
FaqIndexConsumer.processElasticIndex
(FaqEntity faq) 在单独事务中处理全文索引FaqIndexConsumer.processVectorDelete
(FaqEntity faq) 在单独事务中处理向量索引删除void
FaqIndexConsumer.processVectorIndex
(FaqEntity faq) 在单独事务中处理向量索引 删除向量索引后,更新实体状态 -
Uses of FaqEntity in com.bytedesk.kbase.llm_faq.vector
Methods in com.bytedesk.kbase.llm_faq.vector with parameters of type FaqEntityModifier and TypeMethodDescriptionFaqVectorService.deleteFaqVector
(FaqEntity faq) 从向量存储中删除FAQ向量文档 修改为不更新实体的方式,只进行向量删除操作,避免实体并发修改冲突static FaqVector
FaqVector.fromFaqEntity
(FaqEntity faq) 从FaqEntity创建FaqVector实体的静态方法 注意:向量嵌入需要单独计算并设置void
FaqVectorService.indexFaqVector
(FaqEntity faq) 将FAQ内容添加到向量存储中 添加版本检查,以更好地处理乐观锁冲突 -
Uses of FaqEntity in com.bytedesk.kbase.settings
Fields in com.bytedesk.kbase.settings with type parameters of type FaqEntityModifier and TypeFieldDescriptionServiceSettings.faqs
ServiceSettings.guessFaqs
ServiceSettings.hotFaqs
ServiceSettings.proactiveFaqs
ServiceSettings.quickFaqs
ServiceSettings.shortcutFaqs
ServiceSettings.welcomeFaqs
-
Uses of FaqEntity in com.bytedesk.kbase.utils
Methods in com.bytedesk.kbase.utils with parameters of type FaqEntityModifier and TypeMethodDescriptionstatic FaqResponse
KbaseConvertUtils.convertToFaqResponse
(FaqEntity entity) static FaqResponseSimple
KbaseConvertUtils.convertToFaqResponseSimple
(FaqEntity entity) -
Uses of FaqEntity in com.bytedesk.service.message_rating
Methods in com.bytedesk.service.message_rating with parameters of type FaqEntityModifier and TypeMethodDescriptionprivate void
MessageRatingService.updateFaqRateCount
(FaqEntity faqEntity, MessageStatusEnum rateStatus) 根据评分状态更新FAQ的计数