RAG-Powered Virtual Assistant for Retail Store Operations

co-op · Tech · 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: Retail store operations knowledge search

Co-op store colleagues needed faster access to policy and procedure guidance than keyword search could provide across more than 1,000 web-based guides and tens of thousands of weekly queries.

Constraints:

Architecture

Co-op built the 'How Do I?' RAG virtual assistant on the Databricks Data Intelligence Platform. Databricks Lakeflow Jobs automate daily extraction and embedding of Contentful documents; Databricks AI Search stores and retrieves vector embeddings; Agent Bricks Custom Agents powers the RAG assistant; MLflow supports model swapping and experimentation; an evaluation module fires hundreds of test questions across configurations; Model Serving deploys the selected model; and GPT-3.5 was selected after testing DBRX, Mistral, and OpenAI models for performance, speed, cost, and security.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  A["Contentful policy documents"] --> B["Databricks Lakeflow Jobs"]
  B --> C["Databricks AI Search"]
  C --> D["Agent Bricks Custom Agents"]
  D --> G["GPT-3.5"]
  D --> F["Evaluation module"]
  E["MLflow"] --> F
  E --> H["Model Serving"]
  F --> G
  D --> H
  H --> I["Store colleague assistant"]
  I --> J["Store colleagues"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Contentful policy documents Source library of store policies and procedures. Databricks Lakeflow Jobs
Databricks Lakeflow Jobs Automates daily document extraction and embedding. Contentful policy documents, Databricks AI Search
Databricks AI Search Vector embedding storage and semantic retrieval layer. Databricks Lakeflow Jobs, Agent Bricks Custom Agents
Agent Bricks Custom Agents RAG virtual assistant orchestration layer for the How Do I project. Databricks AI Search, GPT-3.5, Evaluation module, Model Serving
MLflow Experimentation and model-swapping layer. Evaluation module, Model Serving
Evaluation module Tests models and configurations using hundreds of questions and measures quality, latency, and safeguards. Agent Bricks Custom Agents, MLflow, GPT-3.5
GPT-3.5 Selected answer-generation model for the proof of concept. Agent Bricks Custom Agents, Evaluation module
Model Serving Deployment layer for the selected model/application. Agent Bricks Custom Agents, MLflow, Store colleague assistant
Store colleague assistant The How Do I user-facing assistant for in-store operational questions. Model Serving, Store colleagues
Store colleagues Retail employees seeking policy and procedure answers. Store colleague assistant

Data flow

Policy and procedure documents are extracted from Contentful daily, embedded, and stored in Databricks AI Search. Store colleagues ask operational questions through the How Do I assistant, Agent Bricks retrieves relevant document context, GPT-3.5 generates an answer, and the response is evaluated and iterated through Databricks/MLflow tooling before broader trial rollout.

3 supporting quotes
“Databricks Lakeflow Jobs to automate the daily extraction and embedding of documents from Contentful”article, stated
“these documents were stored in Databricks AI Search, an optimized storage solution that manages and retrieves vector embeddings”article, stated
“the team used Databricks Lakeflow Jobs to automate the daily extraction and embedding of documents from Contentful”article, stated

Why this architecture

Co-op chose a RAG assistant because the pain was document discovery over a large store-operations corpus, not generic text generation. Databricks already supported their data work, and the platform let them automate document ingestion, experiment across models, evaluate configurations, and deploy while keeping governance and security in view.

3 supporting quotes
“Employees working in Co-op’s UK-wide food stores have access to a comprehensive library of over 1,000 web-based guides covering all store policies and procedures.”article, stated
“Navigating these documents using the existing traditional keyword search engine can be time-consuming and cumbersome”article, stated
“MLflow, an open source platform that facilitates model swapping and experimentation — a vital feature for fine-tuning their system.”article, stated

Models used: OpenAI GPT-3.5 · DBRX · Mistral · OpenAI GPT models · Databricks Assistant

Scale

Alternatives considered (roads not taken)

Continue with keyword search over policy documents

Rejected because: Keyword search required precise terms and still made employees dig through long documents.

“Navigating these documents using the existing traditional keyword search engine can be time-consuming and cumbersome, requiring precise search terms”article, stated

Choose a model without comparative evaluation

Rejected because: The team evaluated DBRX, Mistral, and GPT models across accuracy, response time, safeguards, speed, cost, and security before selecting GPT-3.5.

“firing hundreds of test questions at the application in many configurations and assessing the accuracy, response times and built-in safeguarding features.”article, stated

Deploy immediately to all stores

Rejected because: The project remained in proof-of-concept with selected store trials planned to collect feedback before full rollout.

“the project is still in the proof-of-concept stage, initial feedback from internal tests is overwhelmingly positive.”article, stated

Patterns

rag-retrieval (retrieval)

The How Do I assistant retrieves policy and process document context from Databricks AI Search before answering.

“creating a retrieval augmented generation (RAG)–based virtual assistant application designed to streamline policy and process document searches.”article, stated

eval-driven-development (quality)

Co-op built an evaluation module and selected GPT-3.5 after testing hundreds of questions across configurations.

“An evaluation module was built within Databricks Data Intelligence Platform to measure the accuracy of different models by firing hundreds of test questions”article, stated

model-routing (model-operations)

MLflow and model experimentation let the team compare DBRX, Mistral, and GPT options before choosing GPT-3.5.

“The development process involved significant experimentation with various AI models, including DBRX and Mistral as well as OpenAI’s GPT models.”article, stated

safety-policy-enforcement (risk)

Model evaluation included built-in safeguarding features and security tradeoffs before selection.

“assessing the accuracy, response times and built-in safeguarding features.”article, stated
“GPT-3.5 was selected as it provided the best balance of performance, speed, cost and security.”article, stated

Tradeoffs

Use semantic RAG over keyword search.

Chose RAG virtual assistant with AI Search over Traditional keyword search over policy documents.

Rationale: The existing search flow slowed employees and pushed work to support centers.

“the inefficacy of the discoverability process often leads to reliance on the company’s support centers for assistance”article, stated

Select GPT-3.5 despite all models scoring well.

Chose OpenAI GPT-3.5 over DBRX, Mistral, and other GPT model options for this proof of concept.

Rationale: GPT-3.5 had the best balance across performance, speed, cost, and security.

“Despite all models scoring well, OpenAI’s Chat GPT-3.5 was selected as it provided the best balance of performance, speed, cost and security.”article, stated

Trial before full deployment.

Chose Proof-of-concept and selected-store trial over Immediate full-scale rollout.

Rationale: The team wanted user feedback and performance adjustments before full implementation.

“plans to conduct a trial of their “How Do I?” project in selected stores later this year, with the potential for full-scale deployment if proven successful.”article, stated

Gotchas (what bit them)

Keyword search forced store colleagues to know exact terms.

Root cause: The existing search engine could not reliably surface specific answers from long policy documents.

Resolution: Use RAG and semantic retrieval over embedded Contentful documents.

“Navigating these documents using the existing traditional keyword search engine can be time-consuming and cumbersome, requiring precise search terms to find the required information.”article, stated
“Even if the correct document is found, locating the specific information is time-consuming since documents are lengthy and thorough.”article, stated

A better search interface still needed rigorous model selection.

Root cause: Different models varied across accuracy, latency, cost, security, and safeguards.

Resolution: Fire hundreds of test questions across configurations and select GPT-3.5 for the best balance.

“firing hundreds of test questions at the application in many configurations and assessing the accuracy, response times and built-in safeguarding features.”article, stated
“OpenAI’s Chat GPT-3.5 was selected as it provided the best balance of performance, speed, cost and security.”article, stated

Governance and secure handling needed to mature with the proof of concept.

Root cause: The assistant handles internal store policy/process information and is transitioning toward broader governance controls.

Resolution: Use Databricks support and Unity Catalog transition to improve governance and access controls.

“As Co-op transitions to Unity Catalog, their team will enhance data governance and access controls for more secure data handling.”article, stated

Evaluation

Co-op used a Databricks evaluation module that fired hundreds of test questions across configurations to compare model accuracy, response time, and safeguards, then selected GPT-3.5 based on balanced performance, speed, cost, and security.

Metrics: Hundreds of test questions · Accuracy · Response times · Built-in safeguarding features · Performance, speed, cost, and security balance · Internal user feedback

3 supporting quotes
“An evaluation module was built within Databricks Data Intelligence Platform to measure the accuracy of different models by firing hundreds of test questions”article, stated
“assessing the accuracy, response times and built-in safeguarding features.”article, stated
“Although the project is still in the proof-of-concept stage, initial feedback from internal tests is overwhelmingly positive. Employees have found the AI-powered application intuitive and much quicker to retrieve the necessary information than the company’s previous setup.”article, stated

Outcomes

The reported operating scale is over 2,500 stores, over 1,000 policy/procedure guides, about 50,000-60,000 weekly questions, and a breakdown of about 23,000 initial and 35,000 follow-up weekly questions.

3 supporting quotes
“Employees have found the AI-powered application intuitive and much quicker to retrieve the necessary information than the company’s previous setup.”article, stated
“reducing the workload of their support centers and encouraging more self-service among employees.”article, stated
“Co-op is considering additional GenAI projects, such as automating legal document processing and personalizing customer offers”article, stated