Choco AI scales LLM order extraction with few-shot learning and dynamic context injection
Choco AI had to process restaurant orders arriving in highly varied formats—shorthand texts, PDF email attachments, and voicemail recordings—and information extraction from these orders introduced errors including wrong-column extraction, misinterpreted abbreviations, and speech-to-text mistranscriptions.
Metadata-based retrieval of few-shot examples had limitations with order layout variations, and a generic catch-all prompt improved performance initially but struggled with brand names and uncommon products.
Dynamic context injection and semantic few-shot retrieval consistently led to higher accuracy in information extraction, and smaller models achieved comparable performance with reduced cost.
Frequently asked questions
What did this team achieve with this AI workflow?
Dynamic context injection and semantic few-shot retrieval consistently led to higher accuracy in information extraction, and smaller models achieved comparable performance with reduced cost.
What tools did this team use?
Whisper, embeddings model.
What results were reported?
Information extraction accuracy: higher accuracy; Whisper hallucinations: removed those hallucinations completely; Model cost: reducing costs and increasing agility; Voicemail transcription corrections: in some cases correcting every mistranscription (source-reported, not independently verified).
What failed first in this deployment?
Metadata-based retrieval of few-shot examples had limitations with order layout variations, and a generic catch-all prompt improved performance initially but struggled with brand names and uncommon products.
How is this order processing AI workflow structured?
Order arrives in varied format → Whisper ASR transcription → Semantic retrieval of few-shot examples → Dynamic context injection → LLM information extraction to JSON → Human labeling feedback loop.