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 when ask quetsion #1

Open
Asma-droid opened this issue Jan 31, 2024 · 1 comment
Open

error when ask quetsion #1

Asma-droid opened this issue Jan 31, 2024 · 1 comment

Comments

@Asma-droid
Copy link

Hello, i have got this erreur, any help please

File "/home/jupyter-atrabels/.conda/envs/test_asma/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
exec(code, module.dict)
File "/srv/nas_data/atrabelsi/Whisper-Analysis-Final/RAG/ai-chatbot-rag/main.py", line 193, in
response = llm_chain.run(user_prompt)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter-atrabels/.conda/envs/test_asma/lib/python3.11/site-packages/langchain/chains/base.py", line 505, in run
return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter-atrabels/.conda/envs/test_asma/lib/python3.11/site-packages/langchain/chains/base.py", line 310, in call
raise e
File "/home/jupyter-atrabels/.conda/envs/test_asma/lib/python3.11/site-packages/langchain/chains/base.py", line 304, in call
self._call(inputs, run_manager=run_manager)
File "/home/jupyter-atrabels/.conda/envs/test_asma/lib/python3.11/site-packages/langchain/chains/conversational_retrieval/base.py", line 148, in _call
docs = self._get_docs(new_question, inputs, run_manager=_run_manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter-atrabels/.conda/envs/test_asma/lib/python3.11/site-packages/langchain/chains/conversational_retrieval/base.py", line 305, in _get_docs
docs = self.retriever.get_relevant_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter-atrabels/.conda/envs/test_asma/lib/python3.11/site-packages/langchain/schema/retriever.py", line 211, in get_relevant_documents
raise e
File "/home/jupyter-atrabels/.conda/envs/test_asma/lib/python3.11/site-packages/langchain/schema/retriever.py", line 204, in get_relevant_documents
result = self._get_relevant_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter-atrabels/.conda/envs/test_asma/lib/python3.11/site-packages/langchain/schema/vectorstore.py", line 594, in _get_relevant_documents
docs = self.vectorstore.max_marginal_relevance_search(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter-atrabels/.conda/envs/test_asma/lib/python3.11/site-packages/langchain/vectorstores/docarray/base.py", line 197, in max_marginal_relevance_search
np.array(query_embedding), docs.embedding, k=k
^^^^^^^^^^^^^^

@lalanikarim
Copy link
Owner

@Asma-droid Can you share the exact steps with which you can recreate this issue so I can troubleshoot locally?

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