aws-samples / amazon-bedrock-workshop

This is a workshop designed for Amazon Bedrock a foundational model service.
https://catalog.us-east-1.prod.workshops.aws/workshops/a4bdb007-5600-4368-81c5-ff5b4154f518/en-US/20-intro
MIT No Attribution
1.38k stars 591 forks source link

Cannot create pinecone index #160

Closed govin-pal closed 5 months ago

govin-pal commented 8 months ago

Inside 03_QuestionAnswering/02_rag_claude_titan_pinecone.ipynb, the cell that creates the pinecone index throws this error: MaxRetryError: HTTPSConnectionPool(host='controller.your_env.pinecone.io', port=443): Max retries exceeded with url: /databases (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f1b66682a10>: Failed to resolve 'controller.your_env.pinecone.io' ([Errno -2] Name or service not known)"))

nibrahv commented 8 months ago

It looks as if the guidance to set up the Pinecone prerequisites has been removed.

Try logging in to Pinecone.io and setting up an API key. Grab the API key itself and the environment (from the Pinecone console, under API Keys). Either set this up as environment variables or hardcode them into the notebook (not best practice, but works...).

Also, I had trouble with the index creation as well, so as a workaround manually created it and commented out the code to delete and recreate it in the notebook.

w601sxs commented 5 months ago

Closing this; please refer to the latest bedrock workshop update and reopen if still relevant