Class SourceCodeContentExtractor
java.lang.Object
com.tnsai.intelligence.rag.binding.SourceCodeContentExtractor
- All Implemented Interfaces:
com.tnsai.rag.ContentExtractor
public final class SourceCodeContentExtractor
extends Object
implements com.tnsai.rag.ContentExtractor
Built-in bounded SOURCE_CODE extractor.
Java uses the JDK compiler parser when it is present. Other recognized languages use a bounded structural fallback that understands declarations, braces, strings, comments, and Python indentation. Fallback use and its reason are always recorded in document and block metadata.
- Since:
- 0.13.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the built-in bounded source-code extractor. -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tnsai.rag.ContentExtractor
frameworkDefault
-
Constructor Details
-
SourceCodeContentExtractor
public SourceCodeContentExtractor()Creates the built-in bounded source-code extractor.
-
-
Method Details
-
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
-