runtime error
_query(db,query,2) File "/home/user/app/app.py", line 32, in get_response_from_query docs = db.similarity_search(query, k=k) File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/faiss.py", line 530, in similarity_search docs_and_scores = self.similarity_search_with_score( File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/faiss.py", line 402, in similarity_search_with_score embedding = self._embed_query(query) File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/faiss.py", line 154, in _embed_query return self.embedding_function.embed_query(text) File "/usr/local/lib/python3.10/site-packages/langchain_openai/embeddings/base.py", line 546, in embed_query return self.embed_documents([text])[0] File "/usr/local/lib/python3.10/site-packages/langchain_openai/embeddings/base.py", line 517, in embed_documents return self._get_len_safe_embeddings(texts, engine=engine) File "/usr/local/lib/python3.10/site-packages/langchain_openai/embeddings/base.py", line 333, in _get_len_safe_embeddings response = self.client.create( File "/usr/local/lib/python3.10/site-packages/openai/resources/embeddings.py", line 113, in create return self._post( File "/usr/local/lib/python3.10/site-packages/openai/_base_client.py", line 1213, in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) File "/usr/local/lib/python3.10/site-packages/openai/_base_client.py", line 902, in request return self._request( File "/usr/local/lib/python3.10/site-packages/openai/_base_client.py", line 993, in _request raise self._make_status_error_from_response(err.response) from None openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-ww0pg***************************************5OGF. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
Container logs:
Fetching error logs...