This project is a FastAPI application that detects conflicting statements in PDF documents. It uses Azure OpenAI service to analyze potential conflicts within PDF content.
- Python 3.8+
- FastAPI
- PyPDF2
- Azure OpenAI API access
- Clone the project:
git clone <repository-url>
cd DockConflictDetector- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # Unix/macOS
# or
.\venv\Scripts\activate # Windows- Install required packages:
pip install -r requirements.txt- Create
.envfile and add required variables:
OPENAI_API_KEY=your_api_key
OPENAI_API_VERSION=your_api_version
OPENAI_API_BASE=your_api_base
OPENAI_DEPLOYMENT_NAME=your_deployment_nameTo start the application:
uvicorn app.main:app --reload --port 8000To access the API documentation, open the following URL in your browser:
http://localhost:8000/docs
- Use the
/uploadendpoint to upload PDF files - Only PDF format files are accepted
- The content of the uploaded PDF is analyzed to detect conflicting statements
- Results are returned in JSON format