This example shows how to use the Spring AI to extract structured data from images in Java. It has a Vaadin Flow UI to upload an image and extract structured data from it.
- Java 17+
- Open AI API key in OPENAI_API_KEY environment variable (or update
application.properties
with the key)
You can run the application by executing the main
method in the com.example.application.Application
class.
Alternatively, you can run the mvn
command in the project root directory.