Retrieval Augmented LLMs for Real-time CRM Account Linking

Anthony Medeiros, Blake Santschi, Joshua Levy, Kosta Belz, Aude Genevay, Md Sirajus Salekin, Zichen Wang, Anton Gridin31 Oct 2023

Problem

Schneider Electric tracks customer accounts in its CRM systems, and new customers arrive daily. Account teams manually decide which parent entity each new account belongs to. The decision depends on current public news such as acquisitions and divisional restructuring. A plain LLM misses recent events because of its training cutoff. Manual linking also delays data access for downstream analytics teams.

Example from the article: One Medical was acquired by Amazon in February 2023, so an LLM alone does not know its parent. Web search results in the prompt fix this.

Solution in brief

For each account, run a web search for "<company> parent company" and pass the results to an instruction-tuned LLM together with the question. Add a first step that classifies the account's sector with the same search-plus-LLM pattern, then pick a sector-specific prompt. For listed companies, SEC 10-K subsidiary tables can serve as a second, more reliable source.

Questions this case answers
  • How to resolve each new record to its parent entity when the answer changes with public news and a model's training data is stale
  • How to choose between several question templates automatically when one generic prompt works only for part of the entity types
  • How to link new customer accounts in a CRM to the right parent company without manual research?
  • How to keep an LLM's answers about corporate acquisitions current when its training data is outdated?

Tools and methods

  • Retrieval-augmented generation (RAG) — put fresh web text in the prompt, so the answer does not depend on training data.
  • Flan-T5-XXL on Amazon SageMaker JumpStart — 11B instruction-tuned model that answers from a given context.
  • LangChain with Google Serper — orchestrates search, prompt templates and the model call.
  • Domain-specific prompts — a multiple-choice sector question selects the prompt template.
  • pandas dataframe agent — natural-language queries over a parent-subsidiary table.
Continue reading — it's free

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