PDF Chatbot
Hi all! I am writing a stremalit app for chatting with PDFs.
this function returns an error
def get_vector_store(text_chunks):
embedding = OpenAIEmbeddings()
vectorstore = FAISS.from_texts(text_chunks, embedding)
return embedding
AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-2NgYM**************************************Soe1. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
the embedding seam to work just fine, the error arises when try to generate FAISS db.
please help!
4
7 comments
Elena Guzzon
3
PDF Chatbot
Data Alchemy
skool.com/data-alchemy
Your Community to Master the Fundamentals of Working with Data and AI — by Datalumina®
Leaderboard (30-day)
Powered by