How They Use AI  |  Newest

<< Home  |  Work

Consistent automation outputs for 2 months

AreaWork
AI usedLlamaParse
Sourcer/automation
Posted2026-06-02

The move

Implement a mandatory data normalization layer to clean inputs before they reach the LLM.

Steps

  1. Identify all raw input formats entering your pipeline.
  2. Create a strict schema to enforce consistent data structure.
  3. Strip HTML and artifacts from emails to leave only plain text.
  4. Use LlamaParse to convert PDFs into clean markdown before processing.
  5. Route all cleaned data through your existing LLM workflow.

Prompt for your AI

Clean and normalize the following [input data type] into a strict [JSON/Markdown] format. Remove all HTML tags, artifacts, and structural inconsistencies. Ensure the output follows this schema: [insert schema requirements].

What happened

The user struggled with inconsistent LLM outputs despite testing different models and prompts. They discovered that messy, unformatted input data like HTML-wrapped emails and malformed PDFs were causing the failures. By adding a preprocessing step to normalize data and parse documents into clean markdown, the system became reliable.

Watch out

Over-cleaning data can sometimes strip away context necessary for the LLM to reason effectively. Ensure your normalization process preserves critical information.

Give it to your agent

Read https://howtheyuse.ai/p/consistent-automation-outputs-for-2-months.md and help me do this.

Sources



Last updated November 26, 2026.