Class StructuredTextContentExtractor
java.lang.Object
com.tnsai.intelligence.rag.binding.StructuredTextContentExtractor
- All Implemented Interfaces:
com.tnsai.rag.ContentExtractor
public final class StructuredTextContentExtractor
extends Object
implements com.tnsai.rag.ContentExtractor
Built-in bounded extraction for UTF-8 textual knowledge-source formats.
A consumer
ContentExtractor that claims one of these formats wins
that format; this adapter is a
framework default.
SOURCE_CODE uses the JDK compiler-backed extractor only when the
jdk.compiler module is present. A Java 21 JRE instead receives a
bounded structural representation whose metadata declares
parser=structural and
fallbackReason=jdk-compiler-unavailable; unrelated textual formats
never link the compiler-backed implementation.
-
Constructor Details
-
StructuredTextContentExtractor
public StructuredTextContentExtractor()
-
-
Method Details
-
frameworkDefault
public boolean frameworkDefault()- Specified by:
frameworkDefaultin interfacecom.tnsai.rag.ContentExtractor
-
supportedFormats
- Specified by:
supportedFormatsin interfacecom.tnsai.rag.ContentExtractor
-
version
- Specified by:
versionin interfacecom.tnsai.rag.ContentExtractor
-
extract
public com.tnsai.rag.ExtractedDocument extract(com.tnsai.rag.DocumentInput input, com.tnsai.rag.ExtractionContext context) - Specified by:
extractin interfacecom.tnsai.rag.ContentExtractor
-