Package org.apache.tika.parser.inference
Interface Engine
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
ContentEnricher,EmbeddingEngine,TextRecognizer
- All Known Implementing Classes:
AbstractVLMParser,ClaudeVLMParser,EncodeOCRParser,GeminiVLMParser,OpenAIEmbeddingEngine,OpenAIImageEmbeddingParser,OpenAIVLMParser,Tess4JParser,TesseractOCRParser
A model or service an inference binding calls: one endpoint or one local binary with its
settings, named in the
"engines" map. An engine knows nothing about documents; a
binding says what it is fed and what to ask. An engine lives as long as the config that
loaded it: EngineRegistry.close() closes every engine once at shutdown.- Since:
- Apache Tika 4.1
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Releases what the engine holds (a client, a native handle); nothing by default.
-
Method Details
-
close
Releases what the engine holds (a client, a native handle); nothing by default.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-