What Databricks does here
Databricks is the data and AI platform for the booking assistant. It keeps the operational data and the conversation record in governed tables, builds the knowledge index from them, serves models where that is useful and provides tracing and evaluation. The conversation service itself runs in the application tier and calls the AI gateway for models.
Governance in Unity Catalog
One catalog per environment, with schemas by purpose. Access is granted to groups, never to individuals, and personal data is protected in the table, so every notebook, dashboard and evaluation job inherits the control.
| Schema | Contents | Who can read |
|---|---|---|
| bronze | Raw booking events, chat events, tool calls and service documents as received | Data engineers |
| silver | Cleaned bookings, conversations, tool calls and customer records, with tail numbers and names as sensitive columns | Engineers and analysts, with masks |
| gold | Evaluation sets, feedback, KPI tables and the knowledge-source table | Product, evaluation and support teams |
| knowledge | Vector Search index and its source table | The agent service principal |
| security | Scan results and security events from the gateway | Security operations |
Protecting personal data in the table
Row filters and column masks make the rule part of the table. Analysts see a masked tail number; the support lead role sees it for a ticket they own.
-- Mask tail numbers and passenger names for everyone except approved roles
CREATE FUNCTION aviation_prod.silver.mask_sensitive(value STRING)
RETURN CASE WHEN is_account_group_member('support_leads') THEN value ELSE '***' END;
ALTER TABLE aviation_prod.silver.bookings
ALTER COLUMN tail_number SET MASK aviation_prod.silver.mask_sensitive;
ALTER TABLE aviation_prod.silver.conversations
ALTER COLUMN passenger_names SET MASK aviation_prod.silver.mask_sensitive;
-- Regional teams see only their airports
CREATE FUNCTION aviation_prod.silver.airport_filter(region STRING)
RETURN is_account_group_member('network_ops') OR is_account_group_member(CONCAT('region_', region));
ALTER TABLE aviation_prod.silver.bookings
SET ROW FILTER aviation_prod.silver.airport_filter ON (region);The knowledge index
Airport rules, fee schedules, cancellation terms and service descriptions are chunked by clause, tagged with airport, effective dates and a version, and stored in a gold table. A Vector Search index (the product is now branded Databricks AI Search) syncs from that table, so a change to a source document updates the index without a rebuild. The agent filters by airport and effective date at query time, so it cannot cite a rule from another airport or an expired one.
from databricks.vector_search.client import VectorSearchClient
index = VectorSearchClient().get_index(
endpoint_name="aviation-knowledge",
index_name="aviation_prod.knowledge.service_rules_index",
)
def search_rules(question: str, airport: str, on_date: str) -> list[dict]:
hits = index.similarity_search(
query_text=question,
columns=["clause_id", "airport", "title", "text", "source_url"],
filters={"airport": airport, "effective_from <=": on_date, "effective_to >=": on_date},
num_results=6,
)
return hits["result"]["data_array"]Sequence: a rule changes and the index follows
No rebuild is needed. The change reaches the index when the sync completes, and effective dates make sure a clause applies only when it should.
Serving, the gateway and tracing
Model Serving
Hosts any fine-tuned or small task model, such as a classifier for message intent, behind an endpoint with scaling and versioning.
AI Gateway on endpoints
Rate limits, usage tracking, guardrails, fallbacks and inference tables for served endpoints, to complement the enterprise gateway.
MLflow tracing
Spans for each retrieval, model call and tool call, logged with the session and trace identifier from the gateway.
Agent evaluation
Runs the evaluation set with built-in and custom judges, and stores results in a gold table for comparison across releases.
Jobs that keep it current
| Job | Schedule | What it does |
|---|---|---|
| Ingest booking events | Streaming | Lands events from the FBO (Fixed-Base Operator) systems in bronze and upserts silver |
| Refresh knowledge | On document change, daily check | Re-chunks changed documents, writes the knowledge-source table and syncs the index |
| Mask and curate traces | Hourly | Redacts traces from the gateway into silver, with sensitive fields masked |
| Nightly evaluation | Nightly and on every release | Runs the evaluation set, writes scores and alerts on regressions |
| Feedback to test cases | Weekly | Turns reviewed escalations and low-rated chats into new evaluation cases |
Sequence: the nightly evaluation
Scores are stored by prompt, alias and dataset version, so any change can be compared with the last one.
What the data answers
- Share of conversations that reached a confirmed booking, by channel and airport.
- Escalation reasons, ranked, and what changed after a fix.
- Cost per booking and per conversation, from gateway metadata.
- Unsupported-answer rate: replies that failed the grounding check.
- Time from request to hold and from hold to confirmation.
Build this for your business
This example is a booking assistant for a ground-handling network, but the same pattern, a governed gateway, runtime security, grounded knowledge, deterministic commits and measured quality, fits any customer-facing assistant that takes actions. We can scope a pilot on your own systems.
Book a discovery call