Package com.axelor.ai.db
Class AiKnowledgeBase
java.lang.Object
com.axelor.db.Model
com.axelor.auth.db.AuditableModel
com.axelor.ai.db.AiKnowledgeBase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSource(AiKnowledgeSource item) Add the givenAiKnowledgeSourceitem to thesourcescollection.voidClear thesourcescollection.booleangetAttrs()getCode()getId()getName()inthashCode()voidRemove the givenAiKnowledgeSourceitem from thesourcescollection.voidvoidsetChunkOverlap(Integer chunkOverlap) voidsetChunkSize(Integer chunkSize) voidvoidsetDescription(String description) voidsetEmbeddingModel(AiModel embeddingModel) voidvoidsetIsEnabled(Boolean isEnabled) voidsetIsGlobal(Boolean isGlobal) voidsetMaxResults(Integer maxResults) voidsetMinScore(BigDecimal minScore) voidvoidsetSources(List<AiKnowledgeSource> sources) toString()Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOnMethods inherited from class com.axelor.db.Model
getArchived, getCid, getImportId, getVersion, isSelected, setArchived, setCid, setImportId, setSelected, setVersion
-
Constructor Details
-
AiKnowledgeBase
public AiKnowledgeBase() -
AiKnowledgeBase
-
-
Method Details
-
getId
-
setId
-
getCode
-
setCode
-
getName
-
setName
-
getDescription
-
setDescription
-
getEmbeddingModel
-
setEmbeddingModel
-
getChunkSize
-
setChunkSize
-
getChunkOverlap
-
setChunkOverlap
-
getMaxResults
-
setMaxResults
-
getMinScore
-
setMinScore
-
getIsGlobal
-
setIsGlobal
-
getIsEnabled
-
setIsEnabled
-
getSources
-
setSources
-
addSource
Add the givenAiKnowledgeSourceitem to thesourcescollection.It sets
item.knowledgeBase = thisto ensure the proper relationship.- Parameters:
item- the item to add
-
removeSource
Remove the givenAiKnowledgeSourceitem from thesourcescollection.- Parameters:
item- the item to remove
-
clearSources
public void clearSources()Clear thesourcescollection. -
getAttrs
-
setAttrs
-
equals
-
hashCode
public int hashCode() -
toString
-