Open iCUE-Solutions opened 11 months ago
fill out this in .env : OPENAI_API_KEY= PINECONE_API_KEY= PINECONE_ENVIORNMENT=
I left that blank so you can put in your own credentials.
I do this stuff professionally, Recently I worked with new tv shows and films sentiment analysis, hedge fund investing strategies, sports betting bots, and academic consulting. Primarily working on the chatbot engine.
My rate is $75 an hour with a free short intro call.
I'm having the same issue in v12 of the code. Just flagging up a few interesting pieces as I've already saved the .env with the relevant api keys, but I guess pinecone has changed a bit? Not sure. Anyways, seems like an interesting project :)
AttributeError: init is no longer a top-level attribute of the pinecone package. Please create an instance of the Pinecone class instead. Example: import os from pinecone import Pinecone, ServerlessSpec pc = Pinecone( api_key=os.environ.get("PINECONE_API_KEY") ) # Now do stuff if 'my_index' not in pc.list_indexes().names(): pc.create_index( name='my_index', dimension=1536, metric='euclidean', spec=ServerlessSpec( cloud='aws', region='us-west-2' ) )
Traceback:
File "/Users/x/miniconda3/envs/openaiwhispersummary/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.__dict__)
File "/Users/x/Desktop/OpenAI-Whisper-Audio-Transcription-And-Summarization-Chatbot/OpenAI-Whisper-Audio-Transcription-And-Summarization-Chatbot/AppV12/main.py", line 502, in <module>
main()
File "/Users/x/Desktop/OpenAI-Whisper-Audio-Transcription-And-Summarization-Chatbot/OpenAI-Whisper-Audio-Transcription-And-Summarization-Chatbot/AppV12/main.py", line 394, in main
pinecone.init(api_key=os.getenv('PINECONE_API_KEY'), environment=os.getenv('PINECONE_ENVIORNMENT'))
File "/Users/x/miniconda3/envs/openaiwhispersummary/lib/python3.11/site-packages/pinecone/deprecation_warnings.py", line 38, in init
raise AttributeError(msg)
the pinecone part keep running into issues (either w/ the connection). doesn't seem to be implemented yet. Also, langchain implementation for QA changed. just FYI