<< Home | Work
Consistent automation outputs for 2 months
| Area | Work |
| AI used | LlamaParse |
| Source | r/automation |
| Posted | 2026-06-02 |
The move
Implement a mandatory data normalization layer to clean inputs before they reach the LLM.Steps
- Identify all raw input formats entering your pipeline.
- Create a strict schema to enforce consistent data structure.
- Strip HTML and artifacts from emails to leave only plain text.
- Use LlamaParse to convert PDFs into clean markdown before processing.
- 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.