Uses of Enum Class
com.tnsai.rag.KnowledgeUnit
Packages that use KnowledgeUnit
-
Uses of KnowledgeUnit in com.tnsai.rag
Methods in com.tnsai.rag that return KnowledgeUnitModifier and TypeMethodDescriptionKnowledgeSourceConfig.unit()Returns the value of theunitrecord component.static KnowledgeUnitReturns the enum constant of this class with the specified name.static KnowledgeUnit[]KnowledgeUnit.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.tnsai.rag with parameters of type KnowledgeUnitModifier and TypeMethodDescriptionstatic List<NormalizedDocumentChunker.Chunk> NormalizedDocumentChunker.chunk(ExtractedDocument document, KnowledgeUnit unit) Applies an explicit ingest unit to one extractor-normalized document.static StringIngestionFingerprint.compute(String sourceName, String sourcePath, String fileIdentity, String contentHash, String declaredFormat, String detectedFormat, String extractorId, String extractorVersion, List<String> include, List<String> exclude, KnowledgeUnit unit, int maxDepth, boolean followSymlinks) Computes the pipeline fingerprint including a declared slicing unit.static StringIngestionFingerprint.compute(String sourceName, String sourcePath, String fileIdentity, String contentHash, String declaredFormat, String detectedFormat, String extractorId, String extractorVersion, List<String> include, List<String> exclude, KnowledgeUnit unit, int maxDepth, boolean followSymlinks, ChunkContext chunkContext, String chunkContextTemplate, String chunkContextModel) Computes the pipeline fingerprint including unit and chunk-context identity.static StringIngestionFingerprint.compute(String sourceName, String sourcePath, String fileIdentity, String contentHash, String declaredFormat, String detectedFormat, String extractorId, String extractorVersion, List<String> include, List<String> exclude, KnowledgeUnit unit, int maxDepth, boolean followSymlinks, ChunkContext chunkContext, String chunkContextTemplate, String chunkContextModel, String select) Computes the pipeline fingerprint including the source'sselect.KnowledgeSourceConfig.Builder.unit(KnowledgeUnit value) Sets the ingest-time slicing unit.static voidNormalizedDocumentChunker.validateUnit(KnowledgeUnit unit, DocumentFormat format) Validates one explicit ingest unit against a concrete or AUTO format.KnowledgeSourceConfig.withSelection(Knowledge.Type type, String path, KnowledgeUnit unit) Copies this configuration with optional type, path and unit selections.Constructors in com.tnsai.rag with parameters of type KnowledgeUnitModifierConstructorDescriptionKnowledgeSourceConfig(String name, Knowledge.Type type, DocumentFormat format, String path, String connection, String query, boolean enabled, List<String> include, List<String> exclude, KnowledgeUnit unit) Ten-argument form:ChunkContext.NONE.KnowledgeSourceConfig(String name, Knowledge.Type type, DocumentFormat format, String path, String connection, String query, boolean enabled, List<String> include, List<String> exclude, KnowledgeUnit unit, ChunkContext chunkContext, String chunkContextModel) Twelve-argument form: noselect, so whole documents load.KnowledgeSourceConfig(String name, Knowledge.Type type, DocumentFormat format, String path, String connection, String query, boolean enabled, List<String> include, List<String> exclude, KnowledgeUnit unit, ChunkContext chunkContext, String chunkContextModel, String select) Thirteen-argument form: refresh off, so a FILE source loads once.KnowledgeSourceConfig(String name, Knowledge.Type type, DocumentFormat format, String path, String connection, String query, boolean enabled, List<String> include, List<String> exclude, KnowledgeUnit unit, ChunkContext chunkContext, String chunkContextModel, String select, Optional<Duration> refresh) Creates an instance of aKnowledgeSourceConfigrecord class.KnowledgeUnitFormatException(KnowledgeUnit unit, DocumentFormat format) Creates a compatibility failure naming both sides of the invalid pair.