Conversational AI (artificial intelligence) · 10 / 22

Databricks Data and AI Platform

How Databricks holds the booking platform's governed data, knowledge index, model serving, tracing and evaluation.

What Databricks does here

Databricks lakehouse for the booking platform Booking records, service documents and chat traces land in Unity Catalog as bronze, silver and gold tables, with a Vector Search index and row and column controls on personal data. Model Serving, the agent application and MLflow tracing and evaluation read and write the governed tables. FBO systems bookings · customers Service documents airport rules · fees Chat and tool traces from the gateway UNITY CATALOG · AVIATION_PROD bronze · raw events and documents silver · bookings, conversations, tool calls gold · eval sets, KPIs, feedback Vector Search · clause-level index row filters and column masks on PII Model Serving endpoints + gateway Agent app retrieval + tools MLflow tracing · evaluation
One governed platform holds the data, the knowledge index, the serving endpoints and the evaluation loop.

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.

SchemaContentsWho can read
bronzeRaw booking events, chat events, tool calls and service documents as receivedData engineers
silverCleaned bookings, conversations, tool calls and customer records, with tail numbers and names as sensitive columnsEngineers and analysts, with masks
goldEvaluation sets, feedback, KPI tables and the knowledge-source tableProduct, evaluation and support teams
knowledgeVector Search index and its source tableThe agent service principal
securityScan results and security events from the gatewaySecurity 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.

Unity Catalog · masks and row filters
-- 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.

knowledge/search.py · filters are enforced at query time
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

Knowledge refresh and retrieval An airport manager publishes an updated rule. A job parses and chunks it, writes the clauses with effective dates to the source table, and the index syncs from that table. At question time the agent searches with an airport and date filter. Airport manager Lakeflow job Source table Vector Search Agent app publish updated rules document change event parse, chunk by clause write clauses with effective dates sync from change feed embed and index search + airport and date filter cited clauses
Knowledge refresh and retrieval

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

JobScheduleWhat it does
Ingest booking eventsStreamingLands events from the FBO (Fixed-Base Operator) systems in bronze and upserts silver
Refresh knowledgeOn document change, daily checkRe-chunks changed documents, writes the knowledge-source table and syncs the index
Mask and curate tracesHourlyRedacts traces from the gateway into silver, with sensitive fields masked
Nightly evaluationNightly and on every releaseRuns the evaluation set, writes scores and alerts on regressions
Feedback to test casesWeeklyTurns reviewed escalations and low-rated chats into new evaluation cases

Sequence: the nightly evaluation

Nightly evaluation job A nightly job runs the evaluation set through the agent and the gateway, records traces in MLflow, scores the results and writes them to a gold table. A regression raises an alert. Lakeflow job Agent app AI gateway MLflow Gold table Alert run dataset v14 model calls replies traces per conversation score with scorers and judges scores write scores by version compare with last release regression found
Nightly evaluation job

Scores are stored by prompt, alias and dataset version, so any change can be compared with the last one.

What the data answers

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