Retrieval Augmented LLMs for Real-time CRM Account Linking

schneider_electric · Energy · 2023 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: CRM account linking and corporate hierarchy resolution

Schneider Electric needed to link customer accounts to parent entities across CRM systems, but the workflow depended on recent acquisitions and organizational changes that static LLM knowledge could not reliably know.

Constraints:

Architecture

Schneider Electric and AWS built a RAG account-linking pipeline around Flan-T5-XXL on SageMaker JumpStart. A LangChain chain queries Google Serper for current parent-company evidence, combines retrieved snippets with a prompt, and sends the augmented question to the SageMaker endpoint. The pipeline was extended with a first-stage domain identification step that selects sector-specific prompts, and with SEC 10-K tabular data accessed through a pandas dataframe agent for more trustworthy corporate hierarchy evidence.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  A["CRM account records"] --> B["Google Serper retrieval chain"]
  A --> C["Domain classification RAG"]
  C --> D["Domain-specific prompt selector"]
  B --> E["Flan-T5-XXL SageMaker endpoint"]
  D --> E
  E --> F["Account-linking output"]
  E --> G["SEC 10-K dataframe agent"]
  G --> F
  F --> H["Downstream analytics teams"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
CRM account records Customer account names requiring parent or subsidiary linkage. Google Serper retrieval chain, Domain classification RAG
Google Serper retrieval chain Runs current web searches for parent-company evidence. Flan-T5-XXL SageMaker endpoint
Domain classification RAG Classifies the account's sector before choosing the parent-relationship prompt. Domain-specific prompt selector
Domain-specific prompt selector Chooses different prompts for public-sector, education, healthcare, or ordinary company relationships. Flan-T5-XXL SageMaker endpoint
Flan-T5-XXL SageMaker endpoint Instruction-tuned LLM endpoint that answers account-linking questions from retrieved context. Account-linking output, SEC 10-K dataframe agent
SEC 10-K dataframe agent Queries tabular corporate-structure data through LangChain's pandas abstraction. Account-linking output
Account-linking output Predicted parent or subsidiary relationship used to update CRM hierarchy data. Downstream analytics teams
Downstream analytics teams Consumers of cleaner and faster customer hierarchy data. —

Data flow

A CRM account name enters the pipeline. The system forms a parent-company query, retrieves current web evidence through Google Serper, packages the search context and question into a prompt, and asks the Flan-T5-XXL SageMaker endpoint for the relationship. For harder sectors, a domain RAG step classifies the account first so a healthcare or education-specific prompt can be used. SEC 10-K tables can be loaded into a pandas dataframe agent for direct parent/subsidiary lookup.

3 supporting quotes
“The given company name is combined with a question like “Who is the parent company of X”, where X is the given company) and passed to a google query using the Serper AI”article, stated
“LangChain performs the overall orchestration and allows the search result pages be fed into the Flan-T5-XXL instance.”article, stated
“we used “X” while for healthcare we used “Y”.”article, stated

Why this architecture

A RAG architecture was necessary because the task depended on current corporate events. SageMaker JumpStart reduced deployment friction for Flan-T5-XXL, LangChain provided tool orchestration for web and table retrieval, and domain-specific prompts addressed cases where the same parent-company question had different semantics by sector.

3 supporting quotes
“Augmenting the LLM with Google search guarantees the most up-to-date information.”article, stated
“JumpStart provides convenient deployment of this model family through Amazon SageMaker Studio and the SageMaker SDK.”article, stated
“the blanket prompt we used (variations around asking for the parent company) performed well for most public sectors (domains) but didn’t generalize well to education or healthcare”article, stated

Models used: Flan-T5-XXL · LangChain pandas dataframe agent

Scale

Alternatives considered (roads not taken)

Use the pretrained LLM alone

Rejected because: The model would miss recent acquisitions and restructuring because its knowledge is limited by training date.

“LLMs are known for their ability to compress human knowledge and have demonstrated remarkable capabilities in answering questions in various knowledge specific domains, but their knowledge is limited by the date the model has been trained.”article, stated

Use one blanket parent-company prompt

Rejected because: The same parent-company phrasing did not generalize to education and healthcare accounts.

“the blanket prompt we used (variations around asking for the parent company) performed well for most public sectors (domains) but didn’t generalize well to education or healthcare”article, stated

Rely only on web search snippets

Rejected because: SEC 10-K filings provide a more reliable structured source for subsidiaries and subdivisions.

“The SEC 10K filings is another reliable source of information for subsidiaries and subdivisions filed annually by a publicly traded companies.”article, stated

Patterns

rag-retrieval (retrieval)

The pipeline augments Flan-T5-XXL with Google Search results and SEC 10-K data so account-linking answers include current corporate evidence.

“We address that information cutoff by coupling the LLM with a Google Search API to deliver a powerful Retrieval Augmented LLM (RAG)”article, stated
“In addition to the Google Search query, datasets that detail corporate structures such as the SEC 10K filings can be used to further augment the LLM with trustworthy information.”article, stated

tool-use-orchestration (orchestration)

LangChain orchestrates calls to Google Serper, the SageMaker-hosted LLM, and a pandas dataframe agent over corporate-structure tables.

“LangChain performs the overall orchestration and allows the search result pages be fed into the Flan-T5-XXL instance.”article, stated
“The LangChain provides an abstraction layer for pandas through create_pandas_dataframe_agent.”article, stated

prompt-versioning (prompting)

The team moved from a blanket prompt to domain-specific prompt selection after discovering sector semantics changed the account-linking question.

“For education, we used “X” while for healthcare we used “Y”.”article, stated
“Schneider Electric team will also be able to extend and design their own prompts mimicking the way they classify some public sector accounts”article, stated

eval-driven-development (evaluation)

Prompt changes were justified by measured accuracy gains, with sector-specific prompts raising performance from 55% to 71%.

“The sector specific prompts have boosted the overall performance from 55% to 71% of accuracy. Overall, the effort and time invested to develop effective prompts appear to significantly improve the quality of LLM response.”article, stated

Tradeoffs

Knowledge source for parent-company answers

Chose retrieval-augmented LLM with Google search over LLM-only question answering.

Rationale: Current acquisitions and restructuring are central to the task and may occur after model training.

“We address that information cutoff by coupling the LLM with a Google Search API to deliver a powerful Retrieval Augmented LLM (RAG)”article, stated

Prompt design

Chose domain identification followed by sector-specific prompts over one generic parent-company prompt.

Rationale: Sector-specific prompts substantially improved measured accuracy and handled domains where parent-company wording was ambiguous.

“The sector specific prompts have boosted the overall performance from 55% to 71% of accuracy. Overall, the effort and time invested to develop effective prompts appear to significantly improve the quality of LLM response.”article, stated

Additional corporate-structure source

Chose SEC 10-K tabular augmentation over web search only.

Rationale: 10-K filings provide trustworthy structured subsidiary data that can be queried directly.

“datasets that detail corporate structures such as the SEC 10K filings can be used to further augment the LLM with trustworthy information.”article, stated

Gotchas (what bit them)

Static LLM knowledge was stale for account-linking decisions.

Root cause: Corporate relationships change after the model's training cutoff.

Resolution: Couple the LLM to Google search and SEC 10-K retrieval before asking it to infer parent relationships.

“The preceding example (taken from the Schneider Electric customer database) concerns an acquisition that happened in February 2023 and thus would not be caught by the LLM alone due to knowledge cutoffs.”article, stated
“The preceding example (taken from the Schneider Electric customer database) concerns an acquisition that happened in February 2023 and thus would not be caught by the LLM alone due to knowledge cutoffs. Augmenting the LLM with Google search guarantees the most up-to-date information.”article, stated

A generic parent-company question failed across sectors.

Root cause: Parent-company semantics are not meaningful in the same way for education or healthcare accounts.

Resolution: Add a first-step domain classifier and select a sector-specific prompt before asking for the parent relationship.

“To enable this domain specific prompt selection, we also had to identify the domain a given account belongs to.”article, stated
“as a first step, and based on the answer we inquired on the parent of the account using the relevant prompt as a second step.”article, stated

Corporate hierarchy evidence may be structured, not prose.

Root cause: Reliable subsidiary relationships can live in SEC 10-K tables rather than search-result snippets.

Resolution: Use LangChain's pandas dataframe agent to query tabular parent/subsidiary records.

“We assume the information is given in tabular format. Below is a pseudo csv dataset that mimics the original format of the SEC-10K dataset.”article, stated
“In the following code, we query for the parent/subsidiary relationship and the agent translates the query into pandas language:”article, stated

Evaluation

The case reports accuracy improvement from domain-specific prompt selection and frames the pipeline by whether it reduces manual account-linking effort and improves downstream data access.

Metrics: Sector-specific prompts improved accuracy from 55% to 71% · Manual effort in account-linking workflows reduced · Faster data access for downstream analytics teams

“The sector specific prompts have boosted the overall performance from 55% to 71% of accuracy. Overall, the effort and time invested to develop effective prompts appear to significantly improve the quality of LLM response.”article, stated
“Schneider Electric was able to develop an AI architecture that would reduce the manual effort in their linking workflows, and deliver faster data access to their downstream analytics teams.”article, stated

Outcomes

The workflow targets daily CRM account growth and parent-subsidiary data used across Schneider Electric's account-linking and analytics workflows.

“These capabilities will enable Schneider Electric to maintain up-to-date and accurate organizational structures of their customers, and unlock the ability to do analytics on top of this data.”article, stated
“The sector specific prompts have boosted the overall performance from 55% to 71% of accuracy. Overall, the effort and time invested to develop effective prompts appear to significantly improve the quality of LLM response.”article, stated