<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Best Practices for Deploying Custom LLM Pipelines on Databricks? in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/best-practices-for-deploying-custom-llm-pipelines-on-databricks/m-p/167135#M2040</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/250073"&gt;@exrwebflowai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Model Serving and Routing Architecture&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hybrid setup anchored by Databricks Model Serving / Unity AI Gateway gives the best balance between deterministic latency and governance for production workloads. Use Provisioned Throughput endpoints for core, high volume production models where you must guarantee latency SLAs and fall back to Pay-per-token for bursty dev/test traffic or baseline Foundation Model APIs OpenAI, Anthropic and Gemini.&lt;/P&gt;&lt;P&gt;If you are orchestrating multi-step custom pipelines such as LangGraph or LangChain workflows, wrap them directly as a ResponsesAgent or ChatAgent and deploy them via Model Serving. It natively handles streaming responses, auto-scaling and tool-calling integrations with Unity Catalog Functions and AI Search (formerly Vector Search).&lt;/P&gt;&lt;P&gt;When external LLM APIs are required, route every outbound request through &lt;STRONG&gt;AI Gateway&lt;/STRONG&gt;. It enforces centralized rate limiting, automated fallback routing, token budgeting and automatically writes request/response payloads to Unity Catalog &lt;STRONG&gt;inference tables&lt;/STRONG&gt;. From an integration standpoint, your custom backend should always act as a reverse proxy to Databricks endpoints using streaming for real-time frontend UX. Do not expose Databricks serving tokens or endpoints directly to the client tier.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vector Search and Storage Strategy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Databricks AI Search&lt;/STRONG&gt; can serve as the default retriever layer unless an edge case strictly dictates otherwise.&amp;nbsp; You can use &lt;STRONG&gt;Lakebase search&lt;/STRONG&gt;&amp;nbsp;if the data is already in Lakebase. Choose your endpoint type based on the access pattern as below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Standard Endpoints &lt;/STRONG&gt;is good&amp;nbsp;for real-time inference requiring quick responses.&amp;nbsp;&lt;STRONG&gt;Storage-Optimized Endpoints is b&lt;/STRONG&gt;est for massive corpus scale 1B+ vectors where latency is acceptable but it cuts storage costs by roughly 7x.&lt;/P&gt;&lt;P&gt;You can check Delta Sync indexes which continuously sync against source Delta tables and trigger managed embedding transformations without dedicated ETL pipelines.&lt;/P&gt;&lt;P&gt;You can leverage built in managed embedding endpoints such as databricks-gte-large-en, databricks-bge-large-en, or databricks-qwen3-embedding-0-6b for multilingual corpora if required. If you need to integrate third party vector databases Pinecone, Weaviate, Milvus due to specialized index structures or constraints, encapsulate them behind a custom retriever layer or AI Gateway to prevent breaking Unity Catalog access lineage.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Observability, Drift Tracking and Quality Loops&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can structure the observability in three distinct layers to reliably find hallucinations and performance degradation&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Instrumentation &amp;amp; Logging -&lt;/STRONG&gt;&amp;nbsp;Instrument code with Tracing to capture granular spans across vector retrieval, context augmentation, model calls and guardrails. Combined with automated Inference Table logging on Model Serving, all prompt/response payloads, latency metrics and token counts land directly in queryable Delta tables within Unity Catalog.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Evaluation &amp;amp; Hallucination Scoring -&lt;/STRONG&gt;&amp;nbsp;Schedule evaluation jobs against sampled production traces. Built-in metrics like Retrieval Grounded ness measuring context hallucination and Correctness allow you to track drift systematically over time. To tailor these evaluations to your domain, use MemAlign to align LLM judges with internal expert evaluations.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Automated Optimization &amp;amp; Alerting -&lt;/STRONG&gt;&amp;nbsp;You can use Databricks SQL Alerts on top of the inference tables to trigger notifications via Slack, email or PagerDuty when hallucination rates, error counts or p99 latencies exceed thresholds. For continuous improvement, feed evaluation failures into GEPA optimize_prompts to iteratively refine system prompts against the benchmark suites.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The core design principle is maintaining the full lifecycle - data preparation, embeddings, vector retrieval, serving, logging and evaluation inside the Unity Catalog governance boundary. It eliminates cross cloud egress latency, simplifies data lineage and enforces unified UC access control policies across data and AI assets.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Sep 2026 12:26:08 GMT</pubDate>
    <dc:creator>balajij8</dc:creator>
    <dc:date>2026-09-01T12:26:08Z</dc:date>
    <item>
      <title>Best Practices for Deploying Custom LLM Pipelines on Databricks?</title>
      <link>https://community.databricks.com/t5/generative-ai/best-practices-for-deploying-custom-llm-pipelines-on-databricks/m-p/167118#M2039</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;We are currently designing an enterprise-grade LLM pipeline on Databricks to handle end-to-end data processing, model fine-tuning, and inference serving.&lt;/P&gt;&lt;P&gt;While Spark handles our data orchestration effectively, we are looking at optimizing model latency and integration with custom frontend/backend architectures. For reference, we've been following design patterns similar to those used in &lt;A class="" href="https://exrwebflow.com/llm-development-services/" target="_blank" rel="noopener"&gt;LLM Development Services&lt;/A&gt; to structure custom AI solutions.&lt;/P&gt;&lt;P&gt;A few questions for the group:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Serving Options:&lt;/STRONG&gt; How are you balancing Databricks Model Serving with external API endpoints in high-throughput applications?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Vector Search &amp;amp; Storage:&lt;/STRONG&gt; Are you predominantly using Databricks Vector Search, or integrating third-party vector databases for custom retriever pipelines?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Monitoring:&lt;/STRONG&gt; What tools or logging setups have worked best for tracking drift and hallucinations in production?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Would love to hear how other teams are structuring their LLM architecture on the platform!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2026 10:44:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/best-practices-for-deploying-custom-llm-pipelines-on-databricks/m-p/167118#M2039</guid>
      <dc:creator>exrwebflowai</dc:creator>
      <dc:date>2026-09-01T10:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices for Deploying Custom LLM Pipelines on Databricks?</title>
      <link>https://community.databricks.com/t5/generative-ai/best-practices-for-deploying-custom-llm-pipelines-on-databricks/m-p/167135#M2040</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/250073"&gt;@exrwebflowai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Model Serving and Routing Architecture&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hybrid setup anchored by Databricks Model Serving / Unity AI Gateway gives the best balance between deterministic latency and governance for production workloads. Use Provisioned Throughput endpoints for core, high volume production models where you must guarantee latency SLAs and fall back to Pay-per-token for bursty dev/test traffic or baseline Foundation Model APIs OpenAI, Anthropic and Gemini.&lt;/P&gt;&lt;P&gt;If you are orchestrating multi-step custom pipelines such as LangGraph or LangChain workflows, wrap them directly as a ResponsesAgent or ChatAgent and deploy them via Model Serving. It natively handles streaming responses, auto-scaling and tool-calling integrations with Unity Catalog Functions and AI Search (formerly Vector Search).&lt;/P&gt;&lt;P&gt;When external LLM APIs are required, route every outbound request through &lt;STRONG&gt;AI Gateway&lt;/STRONG&gt;. It enforces centralized rate limiting, automated fallback routing, token budgeting and automatically writes request/response payloads to Unity Catalog &lt;STRONG&gt;inference tables&lt;/STRONG&gt;. From an integration standpoint, your custom backend should always act as a reverse proxy to Databricks endpoints using streaming for real-time frontend UX. Do not expose Databricks serving tokens or endpoints directly to the client tier.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vector Search and Storage Strategy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Databricks AI Search&lt;/STRONG&gt; can serve as the default retriever layer unless an edge case strictly dictates otherwise.&amp;nbsp; You can use &lt;STRONG&gt;Lakebase search&lt;/STRONG&gt;&amp;nbsp;if the data is already in Lakebase. Choose your endpoint type based on the access pattern as below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Standard Endpoints &lt;/STRONG&gt;is good&amp;nbsp;for real-time inference requiring quick responses.&amp;nbsp;&lt;STRONG&gt;Storage-Optimized Endpoints is b&lt;/STRONG&gt;est for massive corpus scale 1B+ vectors where latency is acceptable but it cuts storage costs by roughly 7x.&lt;/P&gt;&lt;P&gt;You can check Delta Sync indexes which continuously sync against source Delta tables and trigger managed embedding transformations without dedicated ETL pipelines.&lt;/P&gt;&lt;P&gt;You can leverage built in managed embedding endpoints such as databricks-gte-large-en, databricks-bge-large-en, or databricks-qwen3-embedding-0-6b for multilingual corpora if required. If you need to integrate third party vector databases Pinecone, Weaviate, Milvus due to specialized index structures or constraints, encapsulate them behind a custom retriever layer or AI Gateway to prevent breaking Unity Catalog access lineage.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Observability, Drift Tracking and Quality Loops&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can structure the observability in three distinct layers to reliably find hallucinations and performance degradation&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Instrumentation &amp;amp; Logging -&lt;/STRONG&gt;&amp;nbsp;Instrument code with Tracing to capture granular spans across vector retrieval, context augmentation, model calls and guardrails. Combined with automated Inference Table logging on Model Serving, all prompt/response payloads, latency metrics and token counts land directly in queryable Delta tables within Unity Catalog.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Evaluation &amp;amp; Hallucination Scoring -&lt;/STRONG&gt;&amp;nbsp;Schedule evaluation jobs against sampled production traces. Built-in metrics like Retrieval Grounded ness measuring context hallucination and Correctness allow you to track drift systematically over time. To tailor these evaluations to your domain, use MemAlign to align LLM judges with internal expert evaluations.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Automated Optimization &amp;amp; Alerting -&lt;/STRONG&gt;&amp;nbsp;You can use Databricks SQL Alerts on top of the inference tables to trigger notifications via Slack, email or PagerDuty when hallucination rates, error counts or p99 latencies exceed thresholds. For continuous improvement, feed evaluation failures into GEPA optimize_prompts to iteratively refine system prompts against the benchmark suites.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The core design principle is maintaining the full lifecycle - data preparation, embeddings, vector retrieval, serving, logging and evaluation inside the Unity Catalog governance boundary. It eliminates cross cloud egress latency, simplifies data lineage and enforces unified UC access control policies across data and AI assets.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2026 12:26:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/best-practices-for-deploying-custom-llm-pipelines-on-databricks/m-p/167135#M2040</guid>
      <dc:creator>balajij8</dc:creator>
      <dc:date>2026-09-01T12:26:08Z</dc:date>
    </item>
  </channel>
</rss>

