Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while creating app #3

Open
Uday-461 opened this issue May 8, 2023 · 1 comment
Open

error while creating app #3

Uday-461 opened this issue May 8, 2023 · 1 comment

Comments

@Uday-461
Copy link

Uday-461 commented May 8, 2023

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

@stephansturges
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants