Two-Pass LLM Processing: When Single-Pass Classification Isn't Enough
typescript
dev.to
Two-Pass LLM Processing: When Single-Pass Classification Isn't Enough Here's a pattern I keep running into: you have a batch of items (messages, tickets, documents, transactions) and you need to classify each one. The obvious approach is one LLM call per item. It works fine until it doesn't. The failure mode is subtle. Each item gets classified correctly in isolation. But the relationships between items -- escalation patterns, contradictions, duplicate reports of the same issue -- ar