I have the following requirement:
- Read an OCR file (Scanned bank forms in PDF format)
- Understand the document
- Get certain keywords and create a bookmark based on the keywords. For eg. I will have few keywords, the program needs to identify the keyword and bookmark on those pages the particular keyword appears. If I have keywords like alpha, gamma, upsilon, if the keyword Upsilon is found between page 1 and 3, it should create bookmark with name Upsilon. Similarly, if alpha word is found between page 4 and 10, those pages should be bookmarked with beta.
If all the keywords are found it should create hierarchical bookmark based on the first found keyword, next and next.
Is it possible to do with openai? If yes how?