This agent converts an unstructured blob of text (like a pdf document) into a JSON structured string.
Example as a step in a pipeline
- name: "Convert to structured data"
type: "document-to-json"
intput: "input-topic"
output: "output-topic"
configuration:
text-field: text
copy-properties: true
With the configuration above and an input of "Hello there", the output is {"text": "Hello there"}
.
Checkout the full configuration properties in the API Reference page.