Overview
C++ SDK v4.1.0 and later provides callback pairs for integrating custom OCR, layout analysis, and table recognition engines. The current Ruby SDK does not expose these callback registration APIs.
Ruby applications can use the built-in DocumentAI model through set_document_ai_model. If a custom AI engine is required, integrate it at the native C/C++ SDK layer and expose a Ruby wrapper only after the native callback lifecycle is fully controlled.
Notice
- Do not call undocumented native callback functions directly through
Fiddle. - Keep model ownership and callback lifetime in native code when adding a Ruby wrapper for custom AI callbacks.