Package com.axelor.ai.knowledge
Class AiKnowledgeService
java.lang.Object
com.axelor.ai.knowledge.AiKnowledgeService
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasIndexedRecordSources(String modelName) Whether a save or delete of this model has indexed RECORD sources to keep in sync.voidindexRecord(String modelName, Model record) Auto-sync: re-index a single record across all matching RECORD sources.voidindexSource(AiKnowledgeSource source) Index a single source.voidpurge(AiKnowledgeBase kb) Removes all embeddings for a knowledge base (by KB id), e.g.voidRe-index all sources in a knowledge base.voidremoveRecord(String modelName, Long recordId) Auto-sync: remove a single record embedding across all matching RECORD sources.
-
Method Details
-
indexSource
Index a single source. -
reindexAll
Re-index all sources in a knowledge base. -
hasIndexedRecordSources
Whether a save or delete of this model has indexed RECORD sources to keep in sync. -
indexRecord
Auto-sync: re-index a single record across all matching RECORD sources. -
removeRecord
Auto-sync: remove a single record embedding across all matching RECORD sources. -
purge
Removes all embeddings for a knowledge base (by KB id), e.g. before re-seeding its sources.
-