AuthThe Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityExperimentalThis functionality is experimental and is not ready for production usage. Experimental features may change or be removed at any time. Elastic will work to fix any issues, but experimental features are not subject to the support SLA of official GA features. Specific Support terms apply.Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Extract the content of documents, such as PDFs or images of documents, into a textual format.
The type of the document. Not all services and models support all types.
Values:imagepdfhtml
formatenum
The format of the document. If not specified, this defaults to base64 for pdf and image, and url for html.
The html type supports url only.
Not all services and models support all formats.
Values:base64url
valuestringrequired
The value of the document. For the base64 format, this must be a base64-encoded data URI, that is, "data:content/type;base64,...".
For the url format, this must be a URL that points to the document, that is, "https://example.com/document.pdf".
task_settingsobject
Task settings for the individual inference request.
These settings are specific to the task type you specified and override the task settings specified when initializing the service.
output_formatenum
The output format of the extracted content. Only markdown is supported.
Values:markdown
parametersmapstring to object
A free-form object of extraction options that is forwarded to the Elastic Inference Service as-is.
The accepted parameters are defined by the Elastic Inference Service.