GPTflix icon indicating copy to clipboard operation
GPTflix copied to clipboard

error while creating app

Open Uday-461 opened this issue 2 years ago • 1 comments

got the following error while i created the app. just to be clear, in the secrets file i wrote down the api key for openai and pinecone as specified, but nowhere in the readme did it tell where to put the environment and the index name for pinecone index, please reply on how to fix, am i missing something? where can i put index name and pinecone environment

pinecone.core.exceptions.PineconeProtocolError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app). Traceback: File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "/app/gptbot/chat/main.py", line 271, in output = answer_query_with_context_pinecone(user_input) File "/app/gptbot/chat/main.py", line 222, in answer_query_with_context_pinecone prompt = construct_prompt_pinecone(query) + "\n\n Q: " + query + "\n A:" File "/app/gptbot/chat/main.py", line 140, in construct_prompt_pinecone res = pineconeindex.query([xq], top_k=30, include_metadata=True, namespace="movies") File "/home/appuser/venv/lib/python3.9/site-packages/pinecone/core/utils/error_handling.py", line 25, in inner_func raise PineconeProtocolError(f'Failed to connect; did you specify the correct index name?') f

Uday-461 avatar May 08 '23 18:05 Uday-461

Starting line 45 in the main.py file: Uploading image.png…

stephansturges avatar May 09 '23 07:05 stephansturges