text-2-sql-agent
Agent was not able to answer correctly the question : "In what year did Hank Aaron hit the most home runs?"
Trace : "The query failed, so the batting table does not exist or does not contain home run data. Looking at the schema again, there is no batting table. I will try querying the player table instead which contains basic player information."
So the agent answer : "Based on the available data, Hank Aaron was born in the year
Root cause : the provided TheHistoryofBaseball.zip contains :
- hall_of_fame.csv, player.csv,
- player_award_csv,
- salary.csv
- but it seems that batting table is missing.
the build_infrastructure.py is generating the following error:
TheHistoryOfBaseball
Traceback (most recent call last):
File "/root/amazon-bedrock-samples/agents-for-bedrock/use-case-examples/text-2-sql-agent/./dependencies/build_infrastructure.py", line 11, in
This workshop was deployed on the us-west-2 region which doesn't seem to be supported.