Arcane, an Internal RAG System to Pinpoint Investment Policies

Ehsan Amjadian31 Oct 2024

Problem

Advisers at a large bank field client questions about investment products. The answers sit in internal policies spread over a web platform as HTML, PDF and pages with inconsistent markup. Search returns many results and finding the right passage takes long. The few highly trained specialists who know the policies become a bottleneck, and every second saved has a money value.

Example from the article: advisers ask the chat about the home buyers' plan (as the speaker recalls it), for instance whether there are fees to withdraw money from it, who counts as a first-time buyer, and how a spouse affects the limit.

Solution in brief

Arcane is a pilot RAG assistant over the internal policies. Most of the effort goes into parsing and chunking the semi-structured sources. Quality is checked with RAGAS plus classic retrieval metrics. Users are warned that answers late in a long conversation can be wrong, and the model runs inside the bank's network where possible.

Questions this case answers
  • How to retrieve the right passage from semi-structured internal documents with inconsistent markup so that scarce experts do not search by hand
  • How to evaluate a retrieve-then-generate assistant when a wrong but convincing answer is costlier than no answer
  • How to help highly paid specialists find the right internal policy in seconds instead of searching semi-structured documents by hand?
  • How to evaluate a RAG assistant for hallucinations and irrelevant answers before it reaches advisers?

Tools and methods

  • RAG — retrieval-augmented generation over internal policy documents.
  • Document parsing and chunking — turn HTML and PDF into meaningful chunks, the main bottleneck.
  • RAGAS — open-source metrics: faithfulness, answer relevancy, context precision and recall.
  • Retrieval metrics — precision, recall, F score, mean average precision (MAP).
  • GPT-3.5 / GPT-4 — generation models in the pilot; the talk calls GPT-3.5 fast and GPT-4 slow.
Continue reading — it's free

Google or a one-time email code. No password.