Features • Prerequisites • Quick Start • Architecture
🎯 Purpose
This solution accelerator serves as a reference implementation and starting point for developers looking to build change log generation use cases using Azure services. It demonstrates:
- Integration of Azure OpenAI for intelligent change analysis
- Usage of Azure Document Intelligence for OCR
- Document comparison workflow
Note: This is not a production-ready solution, but rather a foundation to help you get started faster with your own implementation.
✨ Features
- 📄 Upload and compare DOCX documents
- 🔍 Interactive diff viewer with line jumping
- 🤖 AI-powered change summarization
- 📊 Similarity scoring and analysis
🚀 Prerequisites
- Python 3.8+
- Node.js 16+
- Azure OpenAI service access
- Azure Document Intelligence service access
⚡ Quick Start
- Clone the repository:
git clone https://github.com/aymenfurter/document-comparison-solution-accelerator.git
cd document-comparison-solution-accelerator- Set up environment:
# Copy environment template cp .env.example .env # Edit .env with your Azure credentials nano .env
- Install backend dependencies:
pip install -r requirements.txt
- Install frontend dependencies:
- Start the backend server:
# From root directory
PYTHONPATH=. uvicorn app.main:app --reload- Start the frontend development server:
# From frontend directory
npm start- Access the application at
http://localhost:3000
🔧 Environment Configuration
Required environment variables in .env:
AZURE_OPENAI_ENDPOINT=https://your-endpoint.openai.azure.com AZURE_OPENAI_KEY=your-api-key AZURE_OPENAI_MODEL=gpt-4 AZURE_DOC_INTELLIGENCE_ENDPOINT=https://your-doc-intel.cognitiveservices.azure.com AZURE_DOC_INTELLIGENCE_KEY=your-doc-intel-key
🏗️ Architecture
Backend Components
- 🧠 Azure OpenAI integration for change analysis
- 📝 Azure Document Intelligence for document processing
- 🔄 Diff generation and processing services
Frontend Components
- ⚛️ React with TypeScript
- 🎨 FluentUI components
- 🔍 Interactive diff viewer
- 📱 Responsive layout
🔌 API Endpoints
POST /api/v1/upload: Upload documents for comparisonGET /health: Service health check
💻 Development
Running Tests
# Run all tests pytest # Run integration tests pytest tests/integration -v -m integration
🤝 Contributing
Contributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
⚠️ Disclaimer
This solution accelerator is provided as-is and is meant to serve as a reference implementation. You should review and adapt the code to meet your specific requirements and security needs before using it in a production environment.
