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!