At a glance
| Client | Healthcare compliance technology provider |
| Scope | 120+ public regulatory websites |
| Result | Accuracy up from ~50% to 98–99%; processing 7x faster |
Business challenge
The client pulled data from more than 120 regulatory websites using a commercial scraping tool and Python scrapers built on NLP, HTML parsing, and regex. Much of the source data sat in long PDFs full of paragraphs with inconsistent layouts. As a result:
- Data loss: NLP approaches missed up to 50% of valid records
- Low accuracy: names, aliases, dates, and locations were often parsed wrong
- Manual effort: people had to validate the output to catch errors
- Rigid infrastructure: every schema change meant reconfiguring the tools
The solution
- Local testing: open-source LLMs run locally reached ~95% accuracy on sample PDFs
- Model selection: compared GPT-4o, Gemini 1.5 Pro, and LLaMA 3.3; chose LLaMA 3.3 for accuracy, cost, and fit with the client's Azure environment
- Prompt engineering: zero-shot prompts that turn unstructured paragraphs into structured JSON
- Cloud deployment: LLaMA 3.3 70B hosted on Azure AI Foundry and called through API endpoints
- End-to-end automation and validation: extraction runs inside Python pipelines, and custom checks compare the output with the source documents
The results
- Accuracy up from ~50% to 98–99%
- About 5 minutes per document instead of ~35 (7x faster)
- Hours of monthly manual review eliminated
- Lower tooling and configuration costs