Contact us

Legal Document Intelligence Platform

Custom AI development allowing a US litigation support company to boost their documentation management workflows

ABOUT the project

Client:
Provider of litigation support and legal consulting services
Location:
Country flag

USA

|

Texas

Company Size:
200+ Employees

Technologies:

.NET

C#

Azure Functions

Azure SQL

Microsoft Dynamics 365

Leobit provided senior AI developers to extend the in-house engineering team of a US litigation support company. The input from our specialists allowed the client to move RAG search, document extraction, and agent connectivity from ideas into production on their Azure platform. Our specialists took ownership of the AI workflows, helping the customer automate semantic search across case materials, data extraction from resumes and medical records, and integration of external healthcare systems with chat and agent tools.

The client didn’t need a separate AI unit. Instead, they needed people who could sit inside their team, understand a litigation workflow, and turn “we should use AI here” into a Durable Function that actually runs. That’s what we staffed for.

Diana Kemeniash

Business Development Manager, Leobit

Paper work Image

Customer

The client is a Texas-based litigation support company with over 30 years of experience working with law firms and corporate legal departments across the US and internationally. Its services include expert witness sourcing, jury consulting, trial graphics, and case strategy support. These activities involve large volumes of documents, including expert CVs, medical records, deposition transcripts, and case files.

The company has a product and platform team comprising four in-house engineers and a six-engineer augmentation group distributed across the US, Mexico, and the Philippines. The system is built on Microsoft technologies, hosted on Azure, and integrated with Microsoft Dynamics to manage client and engagement data.

Business Challenge

Our client manages several document-intensive workflows. Matching an expert witness to a case requires reviewing lengthy resumes and publication lists. Medical-legal work involves classifying and summarizing large volumes of clinical documents. Case teams also need to search across these materials, but keyword-based search often misses relevant information when it uses different wording from the query.

The company’s leadership had already identified opportunities to improve these processes, including more relevant document search, question answering across lengthy files, automated steps in back-office workflows, and a way for staff to access internal systems through their existing chat and agent tools. However, the customer needed additional engineering expertise to bring these capabilities into production. The in-house team was fully occupied with the core platform, while hiring experienced specialists locally was both slow and expensive.

Why Leobit

The client discovered Leobit through outbound outreach and moved forward after a technical discussion with its AI engineers. Leobit’s expertise in the Microsoft AI stack, experience delivering production RAG systems and LLM tool integrations, and flexible team extension model aligned with the client’s needs. Our software engineers worked directly with the client’s product owner and solutions architect, using their repositories and sprint workflows.

Project
in detail

We added two senior AI developers and a solutions architect to the client’s existing team. With little time for onboarding, our specialists had to integrate quickly and contribute from day one.

Project in detail

There was no separate discovery phase. The client already had an established backlog, running infrastructure, and a product owner who also served as solutions architect and development manager. Leobit’s engineers joined mid-project, spending the first two weeks onboarding. The client provided access to Azure subscriptions and Dynamics, walked them through existing Functions-based services, and helped prioritize the AI backlog by value and risk.

Our specialists established practices for prompt management, evaluation, and cost control, then took end-to-end ownership of the AI services, from design and implementation to testing and documentation. The client retained control of the product and release management. Working in two-week Azure DevOps sprints, the team delivered four workstreams in sequence: semantic search, document understanding, asynchronous workflow automation, and tool integration through MCP.

We continue to optimize the solution in collaboration with the client’s product owner, who reviews prompt behavior and extraction quality using real, de-identified samples. The client’s consulting-side domain experts also validate document summaries and expert-matching results.

A man working
Mock up image

Retrieval Built for Legal Relevance, Not Keyword Hits

The first workstream improved document search by combining keyword matching with AI-powered search on Azure AI Search. Documents are split into smaller, overlapping sections, allowing the system to find relevant information based on both exact terms and meaning. This makes it easier for users to find the right information, even when their queries use different wording from the source documents.

Search results are filtered by practice area, jurisdiction, and document type to ensure users only access materials they are authorized to view. The system can also answer questions using the retrieved information, with citations pointing to the relevant source documents and pages.

Mock up image

Document Extraction with Azure Content Understanding

Our team used Azure Content Understanding to process lengthy documents more efficiently, with tailored settings for each document type. For resumes, the system extracts education, board certifications, work history, publications, and prior testimony into a structured format. For medical records, it first identifies the document type, such as a discharge summary, operative report, or imaging report, then extracts key facts and generates a summary.
Each result includes a confidence score and references to the source pages. Results that fall below a set confidence threshold are sent to a review queue in the client’s platform for staff to verify and correct. This helps maintain accuracy and reliability for legal work.

Mock up image

AI Steps Inside Durable Functions Orchestrations

The client’s back-office processes already ran on Azure Durable Functions. Our team integrated document processing and analysis into these existing workflows. When a new case is registered, the system processes its attached documents in parallel. It classifies each document, extracts key information, and combines the results. The solution then generates a preliminary assessment, such as which expert categories the case may require.
Azure Durable Functions manages long-running tasks, retries when rate limits are reached, and recovers from partial failures. This reduces the need for custom code to handle these situations. Each processing step also records the prompt version, model, and token usage. This gives the client visibility into costs for each workflow. It also allows the team to compare prompt changes against a fixed set of test cases before deploying updates.

Mock up image

Inverting Control with Custom Tools and MCP

The final workstream allowed users to interact with internal systems through natural-language requests. Our team built a set of tools for tasks such as searching for experts, retrieving case summaries, checking engagement status in Microsoft Dynamics, and drafting intake summaries. The system can select the appropriate tools based on the user’s request.

These tools are also available through an MCP server hosted on Azure Functions and secured with Microsoft Entra ID. This allows users to access internal systems from their preferred chat and agent environments. Access remains governed by existing permissions. Tool responses are limited to what the user is authorized to see, and any changes to records require explicit confirmation.

The Journey
Behind Our Success

Phase 1
Phase 2
Phase 3
Phase 4
Phase 5 (ongoing)

Project onboarding

Access and codebase walkthroughs

Assembling evaluation datasets with domain experts

Configuring semantic search and RAG

Establishing hybrid Azure AI Search index

Configuring content understanding analyzers for resumes and medical documents

Review queue for low-confidence output.

AI activation in Durable Functions

Establishing telemetry and prompt versioning

Integration with a function-calling tool library

MCP server integration

Expansion to additional internal operations

Technology Solutions

  • Hybrid information retrieval that combines vector similarity, BM25 scoring, and semantic reranking on Azure AI Search, with document-type-specific chunking and index-level permission filters
  • Citation-first RAG responses that return source document and page references with every answer
  • Per-document-type Content Understanding analyzers preceded by a classification step, so extraction schemas match the document
  • AI activities embedded in existing Durable Functions orchestrations, using framework checkpointing for retries and long-running LLM calls
  • A single typed tool library exposed both to in-app function calling and through an MCP server, with user-scoped permissions and confirmation on write operations

Value Delivered

  • AI capabilities the client had planned for over a year reached production within the first six months, without disrupting the core platform roadmap
  • Expert candidate screening moved from reading full CVs to reviewing extracted profiles, materially reducing time per match
  • Medical document intake accelerated by 40%, with human review applied only while working with low-confidence items
  • Staff can reach internal systems from the chat and agent tools they already use, through a governed MCP interface rather than ad-hoc integrations