← Library / AI Systems & Agents
Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9
1 / 9

Use the arrows, swipe, or press ← → to move through the slides.

AI Systems & AgentsCarousel · 9 slides

Calling LLMs from Spark at scale — without burning your budget

The naive UDF works on 100 rows and explodes on 10 million. Batching, caching, rate-limit handling and the FinOps view of LLM calls inside Spark.

The trade-off I'd flag

One API call per row is the most expensive line of code in modern data engineering. Batch at the partition level and cache by content hash.

← PreviousTurning Data Into Decisions — Databricks Mosaic AI Next →Stop Burning Tokens — 13 practices that save 50%+ every day