Yurii Shunkin
Yurii Shunkin
On-Demand Webinar "From Traditional Automation to AI Agents: What fits your project best"
Contact us

AI-Powered Document Comparison Solution

Custom development of an AI document comparison platform with analytical capabilities

ABOUT
the project

Client:

Leobit's Internal Project

Company Size:

100+ Employees

Industry:

Information Technology

Technologies:

.NET

Angular

Azure

Azure AI Document Intelligence

Azure OpenAI

Tailwind CSS

SQLite

Entity Framework Core

DiffPlex

Quill

 

A document comparison solution that uses AI tools and advanced document parsing capabilities to compare files across different formats. It visually highlights differences between documents and provides a comprehensive change analysis, including similarity scores.

This solution can be applied across industries for document processing and change analysis. For instance, it can help users ensure compliance with regulatory requirements, review legal documents, or analyze versions of a research paper. Its capabilities can be further improved to tailor the tool for diverse use cases.

Yurii-Shunkin

Yurii Shunkin

R&D Director at Leobit

AI-Powered Document Comparison Solution

Customer

This was an internal project designed to help our employees manage documents and track changes in documentation. For our R&D team, it was also an excellent opportunity to explore and evaluate the advanced capabilities of Azure AI Document Intelligence.

Business Challenge

Tracking changes across documents, standards, and regulations is a challenging task for businesses across industries. Storing, organizing, and comparing documents manually is a time-consuming process. We decided to build a tool that automates this workflow and provides users with a convenient user interface for reviewing the outcomes of intelligent document comparison.

Project
in detail

We noticed that some of our clients, partners, and internal teams were struggling with document comparison and change tracking. This inspired us to develop a smart, AI-powered tool designed to simplify and enhance the document comparison process.

AI-Powered Document Comparison Solution project in detail

To implement the functionality our specialists envisioned, we needed to carefully plan the tool’s architecture and the technologies driving its core features. We decided to use Azure AI Document Intelligence as the primary technology for document parsing. Meanwhile, custom algorithms developed with Azure OpenAI were chosen to cover document comparison and analysis workflows.

Our specialists developed a convenient user interface using Tailwind CSS and Angular. We connected it to the system’s core services with custom .NET code. As has already been mentioned, Azure AI Document Intelligence covers document parsing, while custom AI algorithms built with Azure OpenAI and supporting libraries handle intelligent document comparison and provide detailed and visualized summaries for each comparison.

Upon developing the solution’s core functionality, we stabilized it and optimized some aspects. For example, initially, due to limitations in existing document visualization libraries, we implemented paragraph-level comparison functionality. Over time, however, we wrote custom code to enable more precise, word-by-word comparison with visual highlights, significantly improving accuracy and clarity. The solution also has a great potential for further improvement as we consider adding features for real-time collaboration, in-app document editing, and leaving comments or annotations.

landscape image
AI-Powered Document Comparison

AI-Powered Document Comparison

We developed a convenient solution that uses Azure AI Document Intelligence to parse different document formats, understand their structure and layout, and prepare them for AI-powered comparison analysis. Azure OpenAI algorithms run the comparison with the help of the DiffPlex library, while the Quill library delivers a convenient visualization of comparison results with highlighted differences. In addition, the app delivers analytical information, such as similarity score, as well as the number of added, deleted, and unchanged words.

Convenient User Interface

Convenient User Interface

We used Angular and Tailwind CSS to develop an app UI that allows users to compare documents with a few clicks. A user can simply upload or drag and drop the original and the modified documents into the designated areas and click the “Compare Documents” button to run the system. Within a few seconds, the platform delivers an AI document summary with color-coded highlights showing these changes.

Support for Different Document Formats

Support for Different Document Formats

While working on the solution, we faced a challenge with visually presenting different types of documents in a single UI format. Therefore, our specialists built custom logic that automatically determines which parts of the formatting are crucial and should be preserved, as well as identifies correspondence between differently formatted versions of a document. The solution supports files uploaded in different formats, including PDF, DOCX, TXT, and images.

Explore The solution prototype

A proof of concept for a document comparison solution enhanced with AI and advanced parsing capabilities for documents of different formats. The tool uses Microsoft Azure Document Intelligence for document parsing, the DiffPlex library and custom code to perform comparisons, including visual difference highlights and change analysis for similarity scores.

Explore demo

Technology Solutions

  • Custom Azure AI Document Intelligence configurations for smart and efficient AI document parsing.
  • Advanced document comparison capabilities and analysis powered by Azure OpenAI and supported with libraries like DiffPlex and Quill.
  • Secure and reliable storage for different document versions and comparison results with the SQLite database.
  • Efficient document comparison caching.

Value Delivered

  • An AI-powered document comparison solution with a rich potential for continuous improvement, such as collaborative or in-app document editing capabilities.
  • Smart document comparison analytics and a convenient visual interface.
  • A wide range of use cases across industries, including fintech, healthcare, and education.
  • Hands-on experience with custom Azure AI Document.
  • Intelligence and Azure OpenAI analysis for document processing.