0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

はじめに

AWS マネジメントコンソールから Bedrock Knowledge Base を作成する際に少しハマった経験について共有します。

結論

Bedrock は機能によって利用できるモデルが決まっているので注意しましょう。

遭遇した事象

マネコンで Knowledge Base を作成する際に、解析戦略で「パーサーとしての基盤モデル」のモデルを選択します。

image.png

Anthropic のモデルは全て選択可能な状態です。ここで例えばClaude 3.7 Sonnetを選択します。

image.png

選択したモデルがセットされます。

image.png

作成直前の確認画面は下記のような表示になっています。

image.png

しかし、このまま進んで作成をすると・・・エラーになります。

ナレッジベースの作成に失敗しました
Resource handler returned message: "Knowledge base is not able to get the Inference Profile Model: Not authorized to call GetInferenceProfile for arn:aws:bedrock:us-west-2:012345678912:inference-profile/us.anthropic.claude-3-7-sonnet-20250219-v1:0

エラーの理由

パーサーに利用できるモデルは下記の2種類に決まっており、これら以外は利用できません。

  • The following foundation models can be used as a parser:
    • Anthropic Claude 3.5 Sonnet
    • Anthropic Claude 3 Haiku

対応しているモデルは3.5 Sonnet V1であり、3.5 Sonnet V2ではないのでご注意ください。

さいごに

ベクトルDBで OpenSearch や Aurora を選択する場合、DBの作成や削除にまあまあ時間がかかります。
わたしは Aurora を選択し、Claude 3.7 SonnetClaude 3.5 Sonnet V2Claude 3.5 Sonnet V1 と辿り、何時間か費やすことになりました。
この記事がどなたかの参考になればうれしいです。

弊社では一緒に働く仲間を募集中です!

現在、様々な職種を募集しております。
カジュアル面談も可能ですので、ご連絡お待ちしております!

募集内容等詳細は、是非採用サイトをご確認ください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?