Cannot access bedrock models

0

I am testing the following lab

https://github.com/aws-samples/aurora-postgresql-pgvector/tree/main/02_RetrievalAugmentedGeneration/02_QuestionAnswering_Bedrock_LLMs

I got an error "ValueError: Error raised by inference endpoint: An error occurred (AccessDeniedException) when calling the InvokeModel operation: You don't have access to the model with the specified model ID." when I try streamlit run rag_app.py --server.port 8080

I am using root access also created a separate user with Bedrock full access, both failed with same error.

Please help me

Thanks.

1 Antwort
1
Akzeptierte Antwort

Hello.

Please enable model access by following the steps in the document below.
Looking at the code, it seems that "us-west-2" is being used, so try enabling model access using "us-west-2".
https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html#model-access-add

profile picture
EXPERTE
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
  • Thank you, it worked after enabling in us-west-2

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen