aws-samples / amazon-bedrock-samples

This repository contains examples for customers to get started using the Amazon Bedrock Service. This contains examples for all available foundational models
https://aws.amazon.com/bedrock/
MIT No Attribution
375 stars 196 forks source link

Repair broken sql-query-generator example #83

Closed rollwagen closed 3 months ago

rollwagen commented 5 months ago

Issue #, if available: #76

Description of changes:

This PR fixes the following issues in the sql-query-generator example

pip install errors

Running pip3 install -r requirements.txt -U errors out with

ERROR: Invalid requirement: 'chromadb=0.4.14' (from line 6 of requirements.txt)
Hint: = is not a valid operator. Did you mean == ?

Missing 'northwind_ddl.sql'

Error message in streamlit UI: RuntimeError: Error loading northwind_ddl.sql

Missing region in langchain.llms.Bedrock use

Streamlit UI error:

  ValueError: Error raised by bedrock service: An error occurred (AccessDeniedException) when calling the InvokeModel operation: You don't have access to the model with the specified model ID.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.