Closed8

DatabricksのAgent Bricksが利用できない問題

Satoshi TakayanagiSatoshi Takayanagi

環境は新規で立ち上げた、AWSのus-east-1

previewsで以下は有効

  • Mosaic AI Agent Bricks Preview
  • Agent Framework: On-Behalf-Of-User Authorization

manage accountのSettings > Feature enablementに
サーバーレスコンピューティングを有効が見当たらない

Satoshi TakayanagiSatoshi Takayanagi

knowledge-assistantはcreate agentをすると以下エラーが発生
dbconnectshaded.v15.org.sparkproject.io.grpc.StatusRuntimeException: PERMISSION_DENIED: PERMISSION_DENIED: Cannot access Spark Connect

Satoshi TakayanagiSatoshi Takayanagi

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'"
Satoshi TakayanagiSatoshi Takayanagi

Agent Framework: On-Behalf-Of-User Authorizationを有効化しているが、これだけだと足りないのか。。

Satoshi TakayanagiSatoshi Takayanagi

databricksのAssistant先生いわく

  1. UserAuthPolicyの指定
    エージェントモデルをログに記録する際に、UserAuthPolicyを指定していることを確認してください。

  2. On Behalf of User Authorizationの有効化
    ワークスペースで「On Behalf of User Authorization for Agents」が有効になっていることを確認してください。これが有効でないと、エージェントがユーザーの代わりに認証を行うことができません。

  3. モデルのデバッグ
    モデルのpredict関数に問題がある可能性があります。Databricksのノートブックでモデルをロードし、predict関数を呼び出してみてください。これにより、predict関数内でどこに問題があるかを特定できます。

  4. インファレンステーブルの確認
    インファレンステーブルを使用して、リクエストとレスポンスをログに記録し、問題の根本原因を特定することができます。

Satoshi TakayanagiSatoshi Takayanagi

AWSの方は作成できるようなった。
推測だが、AWSは初回の無償クレジットが終わったから?

Azure環境は同様のエラー

このスクラップは1ヶ月前にクローズされました