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

ValueError #23

Open
ArshaanB opened this issue Jun 23, 2023 · 0 comments
Open

ValueError #23

ArshaanB opened this issue Jun 23, 2023 · 0 comments

Comments

@ArshaanB
Copy link

This is the error I got after process it on this repo: https://github.com/ArshaanB/question-and-answer-contracts

Any tips?

ValueError: shapes (1536,) and (0,) not aligned: 1536 (dim 0) != 0 (dim 0)
Traceback:
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "/Users/arshaan/Desktop/development/ai/Chat-with-Github-Repo/src/utils/chat.py", line 93, in <module>
    run_chat_app(args.activeloop_dataset_path)
File "/Users/arshaan/Desktop/development/ai/Chat-with-Github-Repo/src/utils/chat.py", line 42, in run_chat_app
    output = search_db(db, user_input)
File "/Users/arshaan/Desktop/development/ai/Chat-with-Github-Repo/src/utils/chat.py", line 85, in search_db
    return qa.run(query)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/langchain/chains/base.py", line 213, in run
    return self(args[0])[self.output_keys[0]]
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/langchain/chains/base.py", line 116, in __call__
    raise e
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/langchain/chains/base.py", line 113, in __call__
    outputs = self._call(inputs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/langchain/chains/retrieval_qa/base.py", line 109, in _call
    docs = self._get_docs(question)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/langchain/chains/retrieval_qa/base.py", line 166, in _get_docs
    return self.retriever.get_relevant_documents(question)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/langchain/vectorstores/base.py", line 279, in get_relevant_documents
    docs = self.vectorstore.similarity_search(query, **self.search_kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/langchain/vectorstores/deeplake.py", line 350, in similarity_search
    return self.search(query=query, k=k, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/langchain/vectorstores/deeplake.py", line 294, in search
    indices, scores = vector_search(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/langchain/vectorstores/deeplake.py", line 47, in vector_search
    distances = distance_metric_map[distance_metric](query_embedding, data_vectors)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/langchain/vectorstores/deeplake.py", line 22, in <lambda>
    "cos": lambda a, b: np.dot(a, b.T)
File "<__array_function__ internals>", line 200, in dot
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

1 participant