Streamlining Corporate Audits with GenAI-Powered Document Processing

hapag-lloyd · Other · 2024 · source Agentic: yes · promotional bias: high · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Corporate audit documentation and report generation

Hapag-Lloyd needed to reduce manual audit documentation effort, inconsistent report quality, and slow access to audit process documentation while operating across a large global shipping organization.

Constraints:

Architecture

Hapag-Lloyd built two Databricks GenAI prototypes: a Finding Generation Interface using fine-tuned DBRX to turn audit bullet points into findings and summaries, and a RAG chatbot using Gradio plus Databricks Model Serving to query process documentation. The architecture uses Databricks MLflow for prompt/model evaluation, Delta tables for generated outputs, and the Databricks Data Intelligence Platform for model deployment and audit-data management.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  audit_bullet_points["Audit bullet points"] --> finding_generation_interface["Finding Generation Interface"]
  finding_generation_interface --> fine_tuned_dbrx_model["Fine-tuned DBRX model"]
  fine_tuned_dbrx_model --> mlflow_evaluation["MLflow evaluation"]
  finding_generation_interface --> delta_table["Delta table"]
  audit_documentation_corpus["Audit documentation corpus"] --> rag_chatbot["RAG chatbot"]
  rag_chatbot --> databricks_model_serving["Databricks Model Serving"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Audit bullet points Input material auditors use to generate written findings. Finding Generation Interface
Finding Generation Interface Prototype that generates audit findings and summaries using fine-tuned DBRX. Audit bullet points, Fine-tuned DBRX model, Delta table
Fine-tuned DBRX model Databricks model selected after evaluating Llama 2 70B, Mixtral, and DBRX. Finding Generation Interface, MLflow evaluation
MLflow evaluation Automates prompt and model evaluation across the ML lifecycle. Fine-tuned DBRX model
Delta table Stores generated findings and summaries for access and retrieval. Finding Generation Interface
Audit documentation corpus Process-documentation files queried by auditors. RAG chatbot
RAG chatbot Gradio and Databricks Model Serving interface that answers audit-documentation questions. Audit documentation corpus, Databricks Model Serving
Databricks Model Serving Serves the chatbot model and supports deployed GenAI prototypes. RAG chatbot

Data flow

Audit data is ingested and prepared, prompts are engineered, DBRX generates findings and summaries, MLflow automates prompt/model evaluation, and generated results are stored in a Delta table. Separately, auditors ask natural-language questions through a Gradio chatbot, which uses RAG and Databricks Model Serving to retrieve contextually relevant answers from audit documentation.

3 supporting quotes
“The solution architecture included a series of steps, starting with data ingestion, preparation and prompt engineering and ending with model evaluation and deployment.”article, stated
“The process involved generating findings, summarizing results and storing them in a Delta table for easy access and retrieval”article, stated
“This chatbot allowed auditors to query specific information from documents using natural language”article, stated

Why this architecture

Hapag-Lloyd used Databricks because its existing infrastructure slowed model setup and deployment. Databricks provided model evaluation, lifecycle management, model serving, and easier instance setup, letting audit teams focus on analysis while prototypes automated repetitive writing and documentation lookup.

3 supporting quotes
“Our existing infrastructure, including tools like vector databases, did not support the rapid setup and deployment of AI models required for our audit optimization efforts.”article, stated
“Compared to our AWS SysOps account, we could get our instance setup far leaner with Databricks.”article, stated
“Using Databricks MLflow, Hapag-Lloyd was able to automate the evaluation of prompts and models.”article, stated

Models used: DBRX · Llama 2 70b · Mixtral

Scale

Alternatives considered (roads not taken)

Manual report writing and documentation lookup

Rejected because: Manual methods were time-consuming, inefficient, and inconsistent.

“the traditional methods of generating audit reports were time-consuming and involved numerous manual steps, leading to inefficiencies and potential inconsistencies”article, stated

Existing vector databases and AWS SysOps setup

Rejected because: The setup did not support rapid AI-model setup and instance access.

“Our existing infrastructure, including tools like vector databases, did not support the rapid setup and deployment of AI models”article, stated

Llama 2 70B and Mixtral for finding generation

Rejected because: DBRX returned better results for the audit finding-generation use case.

“Initially, models such as Llama 2 70b and Mixtral were tested, but ultimately, we ended up using the Databricks DBRX model. DBRX returns far better results”article, stated

Patterns

fine-tuning-adaptation (model adaptation)

Hapag-Lloyd fine-tuned Databricks DBRX for audit finding generation after comparing candidate models.

“Hapag-Lloyd engineers then fine-tuned Databricks’ open source DBRX model on 12T tokens of carefully curated data.”article, stated

rag-retrieval (document QA)

The audit chatbot uses retrieval augmented generation to answer natural-language questions over process documentation.

“The chatbot used retrieval augmented generation (RAG) to provide accurate and contextually relevant responses, further improving the audit process​.”article, stated

eval-driven-development (model lifecycle)

MLflow automated prompt and model evaluation, reducing manual review and supporting continuous improvement.

“Using Databricks MLflow, Hapag-Lloyd was able to automate the evaluation of prompts and models. This reduced the time-consuming manual process of generating and reviewing audit findings.”article, stated

tool-use-orchestration (workflow automation)

Databricks orchestrates ingestion, preparation, prompt engineering, evaluation, deployment, model serving, and Delta-table storage for audit workflows.

“The solution architecture included a series of steps, starting with data ingestion, preparation and prompt engineering and ending with model evaluation and deployment.”article, stated

Tradeoffs

Use DBRX for finding generation.

Chose Fine-tuned DBRX over Llama 2 70B and Mixtral.

Rationale: Hapag-Lloyd evaluated multiple models and found DBRX returned better results for the audit finding-generation prototype.

“Initially, models such as Llama 2 70b and Mixtral were tested, but ultimately, we ended up using the Databricks DBRX model.”article, stated

Add a RAG chatbot for documentation lookup.

Chose Natural-language document querying over Manual search through numerous audit files.

Rationale: The chatbot reduced time spent searching for precise information from many process documents.

“enabled auditors to query specific information from numerous files quickly.”article, stated
“significantly reducing the time spent searching for data.”article, stated

Use Databricks as the GenAI platform.

Chose Databricks Data Intelligence Platform with MLflow and Model Serving over Existing AWS SysOps/vector-database setup.

Rationale: Databricks made setup leaner, automated lifecycle steps, and reduced manual model-review work.

“Compared to our AWS SysOps account, we could get our instance setup far leaner with Databricks. In terms of costs, it improved step-by-step.””article, stated
“The platform’s capabilities in managing the full ML lifecycle — from data ingestion to model deployment — played a crucial role”article, stated

Gotchas (what bit them)

Manual audit writing caused inconsistent documentation quality.

Root cause: Traditional report generation involved numerous manual steps.

Resolution: Use a GenAI Finding Generation Interface to draft findings and summaries from bullet points.

“the traditional methods of generating audit reports were time-consuming and involved numerous manual steps, leading to inefficiencies and potential inconsistencies”article, stated
“By automating the generation of findings and creating a more streamlined documentation process, Hapag-Lloyd sought to reduce the time auditors spend on manual tasks, allowing them to focus more on critical analysis and decision-making.​”article, stated

Existing infrastructure slowed prototype deployment.

Root cause: Vector databases and AWS SysOps accounts did not support rapid AI-model setup or easy instance access.

Resolution: Deploy GenAI initiatives on the Databricks Data Intelligence Platform.

“Ensuring the accessibility of instances was also a challenge. We had an AWS SysOps account, but it was very difficult to set up instances in a fast manner”article, stated
“The need for a high-quality, reliable and scalable solution was evident. So they started deploying their generative AI initiatives within the Databricks Data Intelligence Platform.”article, stated

Evaluation

Hapag-Lloyd used MLflow for automated prompt/model evaluation and reported process-time reductions for finding creation and executive summary review.

Metrics: Finding creation time: 15 minutes to 5 minutes. · Review time per finding: 66% decrease. · Executive summary review time: 30 minutes to 7 minutes. · Executive summary review reduction: 77%.

3 supporting quotes
“Using Databricks MLflow, Hapag-Lloyd was able to automate the evaluation of prompts and models. This reduced the time-consuming manual process of generating and reviewing audit findings.”article, stated
“Auditors now spend only 5 minutes creating a new finding from bullet points, down from 15 minutes. This represents a 66% decrease in review time per finding — a huge time savings given that there are, on average, seven findings per audit.”article, stated
“The time required to review each executive summary has decreased by 77%, from 30 minutes to just 7 minutes.”article, stated

Outcomes

The source reports average seven findings per audit and global company context across over 400 offices, 140 countries, 280 ships, and 11.9 million TEUs annually.

“This automation led to a 66% decrease in review time per finding and a 77% reduction in the time required to review these executive summaries.”article, stated
“Hapag-Lloyd plans to extend the current solution to cover more aspects of the audit process. This includes fine-tuning large language models to better structure and organize audit reports, further reducing the time and effort required from auditors.”article, stated