Q: I was watching your video about Using AI Instead of Code and Regular Expressions - A Tutorial!
, and Have a use case that I would like to know whether it can be solved with Riku.
Let's say I have a chatbot that allows capturing a picture of a document. I use OCR to convert the image to text. However, I want to get the text with some structure. Suppose the scenario asks the user to take a picture of their driving license. To make it simpler it applies to one state only, so all the licenses have the same layout and formatting.
So the question is: can I feed examples of the text as identified by the OCR and on the output add some structure?
For example (for the output):
First name: Peter
Last Name: Jones
date of birth: 02/13/1989
Expiration date: 03/23/2025
License #: 1234567
Is this possible?

Rexxar
May 15, 2024A: Hey there, thanks for the question. You can totally reinforce a pattern within the prompt and by doing that you should see the AI output the same structure from the pattern. It is a good use case and something definitely possible!