Labeling 4 million reviews with an LLM every night in Databricks

GenAI Engineer Assembling and Deploying Apps Medium Question 33 of 45

A Generative AI Engineer must label 4 million product reviews in a Delta table with a sentiment class every night and write the results back to a Unity Catalog table.

Which approach does Databricks recommend for this workload?

Show answer and explanation

ASubmit the full review table to ai_query in a single SQL statement

Databricks advises submitting the full dataset in a single query rather than manually splitting it into small batches, because AI Functions handle parallelization, retries and scaling. Hand-rolled Python batching and pandas UDF fan-out reimplement that scheduling and lose the built-in retries, and fine-tuning a classifier adds a training and serving lifecycle for a labeling job a hosted foundation model already covers.

Source: docs.databricks.com/aws/en/large-language-models/ai-functio…

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 45 original GenAI Engineer practice questions