---
title: "Building real-time product search on Databricks"
description: "Real-time product search for an online marketplace must retrieve, filter, rank, and respond in milliseconds while balancing latency, relevance, revenue, and click-through rate. The Databricks architecture divides the pipeline into ingestion, retrieval, and refinement, using Lakeflow pipelines and AI Functions for source processing, AI Search for embeddings and hybrid retrieval, and Lakebase for sub-10ms operational signals. It recommends validating p95/p99 latency, throughput, retrieval quality, and engagement metrics, with MLflow supporting systematic evaluation and caching helping meet strict latency requirements. As an example, FOX Sports used AI Search for thousands of QPS and achieved a 2x improvement in query success rate, combining streaming ingestion, two-phase retrieval, model serving, caching, and trending searches."
---

# Building real-time product search on Databricks

[Databricks](https://yomu.fyi/company/databricks) · Jiayi Wu, Luke Lefebure, Adam Gurary · Apr 14, 2026

**Type:** Explainer

## Summary

Real-time product search for an online marketplace must retrieve, filter, rank, and respond in milliseconds while balancing latency, relevance, revenue, and click-through rate. The Databricks architecture divides the pipeline into ingestion, retrieval, and refinement, using Lakeflow pipelines and AI Functions for source processing, AI Search for embeddings and hybrid retrieval, and Lakebase for sub-10ms operational signals. It recommends validating p95/p99 latency, throughput, retrieval quality, and engagement metrics, with MLflow supporting systematic evaluation and caching helping meet strict latency requirements. As an example, FOX Sports used AI Search for thousands of QPS and achieved a 2x improvement in query success rate, combining streaming ingestion, two-phase retrieval, model serving, caching, and trending searches.

## Context

Online marketplace search must deliver relevant, personalized, and trustworthy ranked choices within milliseconds while accounting for structured constraints such as budget, preferences, location, and availability. The system also needs to balance technical metrics, including latency and throughput, with business outcomes such as revenue, click-through rate, and conversions.

## Approach / What changed

The architecture uses Databricks Auto Loader, Lakeflow Spark Declarative Pipelines, and AI Functions to process source data; AI Search to create embeddings, apply metadata filters, and perform full-text, semantic, or hybrid retrieval; and Lakebase to provide real-time application state for refinement. Ranking, personalization, business rules, observability, load testing, and agent integrations extend the pipeline.

## Takeaways

- The search pipeline has three functional segments: ingestion prepares and indexes product data, retrieval generates candidates through full-text, semantic, or hybrid search, and refinement applies intent, ranking, personalization, and business rules.
- Lakebase provides session state, inventory, pricing, and user preferences with sub-10ms latency, while managed change-data-capture syncs operational data to Delta without custom pipelines.
- FOX Sports reported handling thousands of QPS with a 2x improvement in query success rate by combining streaming ingestion, two-phase retrieval, model serving, caching, and trending searches.

**Tags:** [AI Search](https://yomu.fyi/topic/ai-search), [Data Pipelines](https://yomu.fyi/topic/data-pipelines), [Lakebase](https://yomu.fyi/topic/lakebase), [Search](https://yomu.fyi/topic/search)

- Source: [Databricks](https://www.databricks.com/blog/building-real-time-product-search-databricks)
- Source URL: https://www.databricks.com/blog/building-real-time-product-search-databricks
- Ingested by Yomu: 2026-08-31T04:01:01.443Z

[Read original post](https://www.databricks.com/blog/building-real-time-product-search-databricks)
