Private AI · Proof of concept

Private multi-agent data cleaning on local LLMs

Two cooperating agents, a Cleaner and an Auditor, normalize and validate messy business data on a local model, with no cloud API calls.

Why we built it

The problem

Many companies want AI to help with messy operational data such as customer lists, exports and spreadsheets, but cannot send that data to a third-party API. We wanted to see how far a small, local open model can go when the work is split between two specialized agents.

The sandbox takes a messy customer CSV and produces a clean, de-duplicated JSON file, using two agents that run on a local Llama 3.1 model served by Ollama.

How it works

Step by step

  1. 01

    Load

    A messy CSV of customer records is read into a single Python process.

  2. 02

    Agent A: the Cleaner

    Normalizes the records into structured JSON: names, formats and fields.

  3. 03

    Hand-off

    The Cleaner’s output is passed to the second agent in memory, with no files or network calls in between.

  4. 04

    Agent B: the Quality Auditor

    Re-checks the JSON, repairs anything the Cleaner missed and removes duplicates.

  5. 05

    Output

    A clean customer file is written locally.

Design choices

Decisions that matter

Local model only

Llama 3.1 8B served by Ollama on a single workstation GPU. No cloud API keys, no data egress.

Two agents, two jobs

Splitting cleaning and auditing lets a small model check its own work through a second, focused pass.

Simple orchestration

One Python process and an in-memory JSON hand-off: easy to inspect, test and run anywhere.

Technology

Built with

  • Python 3.12
  • Ollama
  • Llama 3.1 8B
  • Multi-agent
  • Local GPU

What's next

Status: proof of concept

  • Measure accuracy against a labeled dataset
  • Add schema validation between the two agents
  • Publish the source in our GitHub organization

Have an AI use case that needs to work in production?

Book a 30-minute call with a senior engineer. You'll leave with a clear next step, whether or not we work together.