Credal.ai: RAG on enterprise documents — metadata tagging, data restructuring, and LLM-based routing
LLMs have limited attention and struggle to provide high-quality answers on complex corporate documents — naive RAG fails to retrieve the most relevant sections, poorly structured data (footnotes detached from citations, opaquely formatted tables) makes questions unanswerable, and LLMs cannot consistently reason about dates.
LangChain's naive RAG failed to surface the most relevant document sections; its document parser placed footnotes at the end rather than inline, making citation lookups impossible; its table formatting was token-inefficient; and its structured output formatter distracted GPT-3.5 from the routing task, leaving it accurate only 50% of the time.
By restructuring data before LLM ingestion — using LLM-generated metadata tags for pre-filtering, inserting footnotes inline, reformatting tables as CSV, and using focused few-shot prompting for routing — Credal turned previously unanswerable questions into straightforward ones and improved routing beyond the 50% baseline.
Show all 5 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
By restructuring data before LLM ingestion — using LLM-generated metadata tags for pre-filtering, inserting footnotes inline, reformatting tables as CSV, and using focused few-shot prompting for routing — Credal turne…
What tools did this team use?
LangChain, Pinecone, GPT-3.5, GPT-4, GPT-4-32k, Claude, Google Docs, Slack.
What results were reported?
LLM triager accuracy — naive approach: 50%; LLM triager target accuracy: 95%+; Token cost: LangChain table format vs CSV: 36% more expensive; Per-question cost using full-context Claude: more than $1 (source-reported, not independently verified).
What failed first in this deployment?
LangChain's naive RAG failed to surface the most relevant document sections; its document parser placed footnotes at the end rather than inline, making citation lookups impossible; its table formatting was token-ineff…
How is this back office ops AI workflow structured?
LLM metadata tag generation → User question arrives in Slack → LLM triager routes to AI expert → Tag-based section pre-filtering → RAG retrieval on filtered sections → AI expert generates answer.