cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Generative AI
Explore discussions on generative artificial intelligence techniques and applications within the Databricks Community. Share ideas, challenges, and breakthroughs in this cutting-edge field.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

ai_decide() failing with Endpoint is not enabled for batch inference in Free Edition

data_pulse
Contributor

I'm running ai_decide() in a notebook (SQL cell, serverless compute) and it's now consistently failing with:

[INTERNAL_ERROR] Remote session creation failed: INVALID_ARGUMENT: BAD_REQUEST:
Endpoint ai_decide is not enabled for batch inference in this workspace. SQLSTATE: XX000

Details:

  • Workspace is on the Free Edition, AWS.
  • ai_decide() function was available and ran successfully in early October in Free Edition. 
  • Even a minimal single-row ai_decide() test fails, so it's not query-specific.
  • Partner-powered AI features are enabled in workspace settings, so that's not the blocker.

Questions:

  1. Is this expected? Is ai_decide(Beta) no longer available for batch inference on Free Edition workspaces, or was it a time-limited preview?
  2. If it's still supported, what else needs to be enabled: is there a separate toggle or enrolment ?
2 REPLIES 2

Ashwin_DSA
Databricks Employee
Databricks Employee

Hi @data_pulse,

Most likely, yes. Free Edition includes many of the newest releases, but some features are limited or unavailable, and it offers no guaranteed reliability or SLA. The Free Edition limitations page lists restrictions on model serving and batch inference and states that certain models aren't available. ai_decide() is also still in Beta, as noted on the ai_decide function reference, so where it's available can change while it matures. It worked in early October and then stopped with this error, which suggests the endpoint is no longer enabled for batch inference on the Free Edition. It doesn't look like anything is misconfigured in your workspace.

There's no workspace setting you can turn on to get past this. Free Edition also has no account console access, so there's no account-level setting to change either.

 
If you only need ai_decide's logic, try rebuilding it with ai_query and one of the Databricks-hosted models in your workspace. Ask for structured JSON output that matches your choice or score questions. For simple label routing, ai_classify is worth testing too. Start with a few rows to confirm these run on your workspace before you scale up.
 
If you need ai_decide() itself, use a free trial account. The Free Edition docs point to a trial as the way to get the full platform.
 

If this answer resolves your question, could you mark it as โ€œAccept as Solutionโ€? That helps other users quickly find the correct fix.

Regards,
Ashwin | Delivery Solution Architect @ Databricks
Helping you build and scale the Data Intelligence Platform.
***Opinions are my own***

balajij8
Esteemed Contributor III

The issue is tied to how Databricks Free Edition handles model serving resources. Specifically, the Free Edition imposes hard restrictions on these capabilities - there is no support for batch inference endpoints, no custom models and certain foundation models are not available.

ai_decide() relies on an internal batch inference serving endpoint, Free Edition workspaces do not get that specific endpoint provisioned even if you have the partner powered AI features toggle enabled in the workspace settings. Notice the error in the stack trace (Endpoint ai_decide is not enabled for batch inference in this workspace)- it calls out the underlying serving endpoint rather than the preview feature. You are hitting the platform level provisioning restriction.