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

public interface Engine extends Closeable
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 Type
    Method
    Description
    default void
    Releases what the engine holds (a client, a native handle); nothing by default.