This project demonstrates how to use Azure Document Intelligence and OpenAI to analyze documents. The application is built using Streamlit. The solution leverages Azure’s Document Analysis Client to extract text from documents and OpenAI’s GPT-4o model to structure and analyze the extracted data.
If you want to see that Azure document intelligence can do, the demo app can be found from here: https://doc.yourdataapps.com/
To run this application, you need to have Python installed on your machine. Follow the steps below to set up the project:
```sh
git clone https://github.com/kkaarel/-Azure-Document-Intelligence-and-Open-AI
```
```sh
pip install -r requirements.txt
```
Create a Document Intelligence resource
Create and deploy an Azure OpenAI Service resource
Create a secrets.toml file in the .streamlit directory with the following content:
[secrets]
AZURE_OPENAI_API_KEY = "your_azure_openai_api_key"
AZURE_OPENAI_ENDPOINT = "your_azure_openai_endpoint"
DOCUMENTATIONAPI = "your_documentation_api_endpoint"
DOCUMENTATIONAPI_KEY = "your_documentation_api_key"
deploymentname = "your_deployment_name"
```sh
streamlit run app.py
```
Showcases the powerful capabilities of combining Azure Document Intelligence and OpenAI’s GPT-4o model to create a robust document analysis solution. By leveraging these technologies, users can easily extract, structure, and analyze data from various document formats, all within an interactive Streamlit application. This solution not only simplifies document management but also enhances data accessibility and usability.
This solution can be adapted to solve various problems, such as:
By customizing the data extraction and structuring processes, this solution can be tailored to meet the specific needs of various industries and applications.