RAG-Powered Chatbot for Sports Team Roster Management

philadelphia_union · Other · 2024 · 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: Sports roster compliance and front-office decision support

Philadelphia Union needed front-office staff to interpret complex MLS roster and salary-budget rules quickly enough to support transfer and roster decisions without manual legalistic rule lookup becoming a bottleneck.

Constraints:

Architecture

Philadelphia Union built a Databricks-hosted RAG chatbot for roster-rule interpretation. MLS roster-rule PDFs are continuously loaded into Databricks Volumes, converted to text, embedded through Databricks Foundation Model APIs, indexed in AI Search, and retrieved as context for DBRX Instruct. Agent Bricks Custom Agents orchestrates the retrieval and generation chain, serves it through Model Serving, and connects it to a Databricks Apps chat UI for the front office.

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

flowchart LR
  A["MLS roster-rule PDFs"] --> B["Databricks Volumes"]
  B --> C["Text extraction and embedding pipeline"]
  C --> D["AI Search"]
  C --> E["Databricks Foundation Model API"]
  E --> F["DBRX Instruct"]
  D --> G["Agent Bricks Custom Agents"]
  F --> G
  G --> H["Review app and evaluations"]
  G --> I["Model Serving endpoint"]
  I --> J["Databricks Apps chat UI"]
  J --> K["Front office staff"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
MLS roster-rule PDFs Authoritative source documents for roster composition and salary-budget regulations. Databricks Volumes
Databricks Volumes Governed storage layer for the semi-structured roster-rule PDFs. MLS roster-rule PDFs, Text extraction and embedding pipeline
Text extraction and embedding pipeline Extracts PDF text and generates embeddings with Databricks Foundation Model APIs. Databricks Volumes, AI Search, Databricks Foundation Model API
AI Search Vector search layer that indexes embeddings and retrieves relevant rule passages. Text extraction and embedding pipeline, Agent Bricks Custom Agents
DBRX Instruct LLM used to generate answers from retrieved roster-rule context. Databricks Foundation Model API, Agent Bricks Custom Agents
Databricks Foundation Model API Hosted model API for embeddings and DBRX Instruct access. Text extraction and embedding pipeline, DBRX Instruct
Agent Bricks Custom Agents Orchestrates retrieval, context assembly, generation, evaluation, and deployment as a chain. AI Search, DBRX Instruct, Review app and evaluations, Model Serving endpoint
Review app and evaluations Collects human feedback and validates the RAG solution before front-office availability. Agent Bricks Custom Agents
Model Serving endpoint Hosts the RAG chain as an API. Agent Bricks Custom Agents, Databricks Apps chat UI
Databricks Apps chat UI No-code conversational interface used by Philadelphia Union front-office staff. Model Serving endpoint, Front office staff
Front office staff Users querying MLS roster rules during planning and decision-making. Databricks Apps chat UI

Data flow

Roster-rule PDFs are loaded into Databricks Volumes, text is extracted, embeddings are generated through Foundation Model APIs, and AI Search indexes those embeddings for retrieval. A front-office query enters the chat UI, Agent Bricks Custom Agents retrieves relevant rule context from AI Search, DBRX Instruct generates a grounded interpretation, and the response is returned through a Databricks Model Serving endpoint.

3 supporting quotes
“To ensure new PDFs are automatically available, a continuous ingestion mechanism was set up to load roster rule PDFs into Databricks Volumes”article, stated
“Numerical representations (embeddings) are generated from the extracted text using Embedding Models available through the Databricks Foundation Model API.”summary, stated
“Their RAG chatbot is then deployed using the Agent Bricks Custom Agents, which enables seamless orchestration”article, stated

Why this architecture

RAG fit the case because the hard part was precise interpretation of changing external rule documents, not broad open-domain generation. Databricks also reduced integration work by colocating governed document storage, embeddings, vector search, hosted models, agent orchestration, evaluation, serving, and a no-code UI on one platform.

3 supporting quotes
“RAG works by retrieving relevant context from an ‘external’ storage mechanism, augmenting it to the user query prompt, and generating highly accurate and contextually relevant responses”article, stated
“Conveniently, the model is also available through the Databricks Foundation Model API, eliminating the need to host or manage their own model infrastructure.”article, stated
“the end-to-end LLMOps workflow enabled fast iteration, seamless testing, and deployment, significantly reducing the time typically required”article, stated

Models used: DBRX Instruct · Databricks embedding models · Databricks Foundation Model API

Scale

Alternatives considered (roads not taken)

Manual interpretation of roster-rule PDFs by front-office staff

Rejected because: The rules were extensive and legalistic enough to slow decision-making.

“these rules are often extensive and filled with legalistic details, which can slow down decision-making processes.”article, stated

Self-hosting model infrastructure

Rejected because: The Databricks Foundation Model API made hosted DBRX access available without operational model-hosting burden.

“the model is also available through the Databricks Foundation Model API, eliminating the need to host or manage their own model infrastructure.”article, stated

Custom front-end development before deployment

Rejected because: Databricks Apps enabled a no-code ChatGPT-like interface and faster deployment.

“From this point, it’s easy to connect a standard Databricks Apps chat UI template to a Agent Bricks Custom Agents agent and deploy the chatbot within minutes.”article, stated

Patterns

rag-retrieval (retrieval)

The chatbot retrieves roster-rule context from AI Search before DBRX Instruct generates a rule interpretation.

“RAG works by retrieving relevant context from an ‘external’ storage mechanism, augmenting it to the user query prompt”article, stated

eval-driven-development (quality)

The agent framework includes a review app and evaluations used to collect feedback and validate the chatbot before deployment.

“The framework also includes a review app and built-in Evaluations, which were invaluable for collecting human feedback and validating the effectiveness of the RAG solution prior to deployment.”article, stated

observability-tracing (operations)

Trace logging and feedback capture support iteration on the RAG lifecycle after deployment.

“Features like trace logging, feedback capture, and performance evaluation allowed for continuous quality improvement and fine-tuning.”article, stated

tool-use-orchestration (orchestration)

Agent Bricks orchestrates search, model calls, review/evaluation, serving, and UI integration as a deployable chain.

“Agent Bricks Custom Agents, which enables seamless orchestration of the RAG application components into a chain”article, stated

Tradeoffs

Use a RAG chatbot over direct manual rule lookup.

Chose Conversational RAG over governed roster-rule PDFs over Manual navigation of roster composition documents.

Rationale: RAG preserved grounding in official documents while reducing the time cost of interpreting legalistic rules.

“turned to the Databricks Data Intelligence Platform to streamline decision-making. Leveraging its advanced data and AI capabilities, they implemented a GenAI chatbot”article, stated

Use hosted Databricks model APIs rather than own model infrastructure.

Chose DBRX Instruct through the Databricks Foundation Model API over Self-managed LLM hosting.

Rationale: The hosted API reduced operational overhead and let the team focus on application assembly.

“Conveniently, the model is also available through the Databricks Foundation Model API, eliminating the need to host or manage their own model infrastructure.”article, stated

Use platform-provided UI and agent orchestration.

Chose Databricks Apps plus Agent Bricks Custom Agents over Building bespoke orchestration and a custom interface first.

Rationale: The platform path reduced time to deployment and kept evaluation, serving, and UI integration close together.

“From this point, it’s easy to connect a standard Databricks Apps chat UI template to a Agent Bricks Custom Agents agent and deploy the chatbot within minutes.”article, stated

Gotchas (what bit them)

Legalistic domain rules slowed operational decisions.

Root cause: Roster composition rules were extensive and difficult to interpret quickly during front-office planning.

Resolution: Use RAG over authoritative roster-rule PDFs to give conversational rule interpretations in seconds.

“these rules are often extensive and filled with legalistic details, which can slow down decision-making processes.”article, stated
“enables zero-shot interpretation of roster regulations in seconds. This accelerates decision-making and saves valuable time”article, stated

Document freshness matters for rule interpretation.

Root cause: New roster-rule PDFs need to be incorporated without manual rebuilds.

Resolution: Set up continuous ingestion into Databricks Volumes before extraction, embedding, and indexing.

“To ensure new PDFs are automatically available, a continuous ingestion mechanism was set up to load roster rule PDFs into Databricks Volumes”article, stated

A RAG system can appear useful before it is reliable enough for operational use.

Root cause: Rule interpretation affects roster compliance, so unvalidated answers carry operational risk.

Resolution: Use the framework's review app, feedback collection, and built-in evaluations before front-office release.

“collecting human feedback and validating the effectiveness of the RAG solution prior to deployment. This ensured the chatbot was both reliable and optimized before being made available”article, stated

Evaluation

The case describes human feedback collection, a review app, built-in evaluations, trace logging, and performance evaluation in the Agent Bricks workflow before availability to the front office.

Metrics: Human feedback through review app · Built-in evaluations · Trace logging · Performance evaluation

“The framework also includes a review app and built-in Evaluations, which were invaluable for collecting human feedback and validating the effectiveness of the RAG solution prior to deployment.”article, stated
“Features like trace logging, feedback capture, and performance evaluation allowed for continuous quality improvement and fine-tuning.”article, stated

Outcomes

The reported production scope is the Philadelphia Union front office and the MLS roster-rule corpus; the article reports days-to-deploy and seconds-to-interpret but does not provide user-count or query-volume metrics.

3 supporting quotes
“The Union’s data team developed and deployed their RAG model in just days.”article, stated
“enables zero-shot interpretation of roster regulations in seconds. This accelerates decision-making and saves valuable time”article, stated
“the chatbot’s conversational style, which not only provides easy access but also enables zero-shot interpretation of roster regulations”article, stated