DatabricksのAgent Bricksが利用できない問題
環境は新規で立ち上げた、AWSのus-east-1
previewsで以下は有効
- Mosaic AI Agent Bricks Preview
- Agent Framework: On-Behalf-Of-User Authorization
manage accountのSettings > Feature enablementに
サーバーレスコンピューティングを有効が見当たらない
knowledge-assistantはcreate agentをすると以下エラーが発生
dbconnectshaded.v15.org.sparkproject.io.grpc.StatusRuntimeException: PERMISSION_DENIED: PERMISSION_DENIED: Cannot access Spark Connect
multi-agentは起動はするが以下エラーが発生
{"error_code": "BAD_REQUEST", "message": "Encountered an unexpected error while evaluating the model. Verify that the input is compatible with the model for inference. Error 'model_serving_user_credentials auth: Unable to authenticate using model_serving_user_credentials in Databricks Model Serving Environment. Please ensure you have specified UserAuthPolicy when logging the agent model and On Behalf of User Authorization for Agents is enabled in your workspace. Refer to the documentation here for more information: https://docs.databricks.com/aws/en/generative-ai/agent-framework/authenticate-on-behalf-of-user. If the issue persists, contact Databricks Support'"
会社のAzure環境のdatabricksでも同様
Agent Framework: On-Behalf-Of-User Authorizationを有効化しているが、これだけだと足りないのか。。
databricksのAssistant先生いわく
-
UserAuthPolicyの指定
エージェントモデルをログに記録する際に、UserAuthPolicyを指定していることを確認してください。 -
On Behalf of User Authorizationの有効化
ワークスペースで「On Behalf of User Authorization for Agents」が有効になっていることを確認してください。これが有効でないと、エージェントがユーザーの代わりに認証を行うことができません。 -
モデルのデバッグ
モデルのpredict関数に問題がある可能性があります。Databricksのノートブックでモデルをロードし、predict関数を呼び出してみてください。これにより、predict関数内でどこに問題があるかを特定できます。 -
インファレンステーブルの確認
インファレンステーブルを使用して、リクエストとレスポンスをログに記録し、問題の根本原因を特定することができます。
ユーザー代理認証周りか
Agent Bricksではなく、手動で作ってみて考えてみる。
AWSの方は作成できるようなった。
推測だが、AWSは初回の無償クレジットが終わったから?
Azure環境は同様のエラー