aws-samples / aws-samples/query-structured-data-with-amazon-bedrock

Error Calling Bedrock with Llama2-70b model

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
21
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Alfter succesful deployment, I see an error when running any of the example queries.
Looking into the application logs

```
software.amazon.awssdk.services.bedrockruntime.model.ValidationException: Malformed input request: 3 schema violations found, please reformat your input and try again. (Service: BedrockRuntime, Status Code: 400, Request ID: 09578071-ebb6-42dc-8da1-83dc2235a655)
```

I did not have access to Anthropic models so I updated line 28 in BedRockService.java to include "meta.llama2-70b-chat-v1" as my model of choice.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.