Uses of Enum Class
com.tnsai.rag.DocumentFormat
Packages that use DocumentFormat
-
Uses of DocumentFormat in com.tnsai.rag
Methods in com.tnsai.rag that return DocumentFormatModifier and TypeMethodDescriptionDocumentInput.format()Returns the value of theformatrecord component.DocumentProcessingException.format()Returns the effective format, or AUTO when detection failed.ExtractedDocument.format()Returns the value of theformatrecord component.KnowledgeSourceConfig.format()Returns the value of theformatrecord component.static DocumentFormatReturns the enum constant of this class with the specified name.static DocumentFormat[]DocumentFormat.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.tnsai.rag that return types with arguments of type DocumentFormatModifier and TypeMethodDescriptionstatic Optional<DocumentFormat> DocumentFormat.fromFileName(String fileName) Resolves a registered format from a file name, if one is known.ContentExtractorRegistry.registeredFormats()Returns the concrete formats registered in this immutable snapshot.ContentExtractor.supportedFormats()Returns the concrete formats handled by this provider.Methods in com.tnsai.rag with parameters of type DocumentFormatModifier and TypeMethodDescriptionContentExtractorRegistry.extractorId(DocumentFormat format) Returns the registered extractor implementation name for a concrete format.KnowledgeSourceConfig.Builder.format(DocumentFormat value) static voidNormalizedDocumentChunker.validateUnit(KnowledgeUnit unit, DocumentFormat format) Validates one explicit ingest unit against a concrete or AUTO format.ContentExtractorRegistry.version(DocumentFormat format) Returns the registered extractor version for a concrete format.Constructors in com.tnsai.rag with parameters of type DocumentFormatModifierConstructorDescriptionDocumentInput(String id, byte[] bytes, DocumentFormat format, String mediaType, URI source, Map<String, Object> metadata) Creates an instance of aDocumentInputrecord class.DocumentProcessingException(DocumentProcessingException.Stage stage, String sourceName, URI source, DocumentFormat format, String detail) Creates a typed document-processing failure.DocumentProcessingException(DocumentProcessingException.Stage stage, String sourceName, URI source, DocumentFormat format, String detail, Throwable cause) Creates a typed document-processing failure with an underlying cause.ExtractedDocument(String id, String content, DocumentFormat format, String mediaType, URI source, Map<String, Object> metadata, List<DocumentBlock> blocks) Creates an instance of aExtractedDocumentrecord class.KnowledgeSourceConfig(String name, Knowledge.Type type, DocumentFormat format, String path, String connection, String query, boolean enabled) Seven-argument form: empty include/exclude selectors.KnowledgeSourceConfig(String name, Knowledge.Type type, DocumentFormat format, String path, String connection, String query, boolean enabled, List<String> include, List<String> exclude) Nine-argument form:KnowledgeUnit.AUTOandChunkContext.NONE.KnowledgeSourceConfig(String name, Knowledge.Type type, DocumentFormat format, String path, String connection, String query, boolean enabled, List<String> include, List<String> exclude, ChunkContext chunkContext, String chunkContextModel) Eleven-argument form:KnowledgeUnit.AUTO.KnowledgeSourceConfig(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.