Hello everyone,
I’m working on a project where I need to integrate the OpenAI Assistant to perform a specific workflow involving file handling and text manipulation. The process is as follows:
- File Upload: A user uploads a document (the formats could vary: PDF, DOCX, etc.).
- Text Extraction: The OpenAI Assistant needs to extract the text from this uploaded document.
- Text Modification: Once the text is extracted, it needs to be updated or modified based on values inputted by the user. This could involve inserting specific phrases, changing certain words, or updating numbers/dates.
- File Regeneration: After the text has been updated, the OpenAI Assistant should generate a new file that preserves the original format, style, and font of the uploaded document but contains the updated text.
I’m seeking advice on the best tools, libraries, or APIs that could facilitate each step of this process, especially focusing on maintaining the original formatting and style in the regenerated document. It’s crucial that the output document mirrors the input in terms of visual presentation.
Additionally, any insights on how to seamlessly integrate these functionalities with the OpenAI Assistant or tips on handling different file formats effectively would be greatly appreciated.