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

Getting this issue while uploading a document. #8

Open
poshak-rialtes opened this issue Dec 8, 2023 · 0 comments
Open

Getting this issue while uploading a document. #8

poshak-rialtes opened this issue Dec 8, 2023 · 0 comments

Comments

@poshak-rialtes
Copy link

Traceback (most recent call last): File "/Users/poshak/PycharmProjects/dialogflow/pages/3_Add_Document.py", line 61, in upload_file(uploaded_file) File "/Users/poshak/PycharmProjects/dialogflow/pages/3_Add_Document.py", line 38, in upload_file llm_helper.add_document(documents, file_name, file_url) File "/Users/poshak/PycharmProjects/dialogflow/utilities/llm_helper.py", line 273, in add_document raise e File "/Users/poshak/PycharmProjects/dialogflow/utilities/llm_helper.py", line 264, in add_document self.vector_store.add_documents(documents=docs, redis_url=self.vector_store_full_address, File "/Users/poshak/PycharmProjects/dialogflow/.venv/lib/python3.11/site-packages/langchain/schema/vectorstore.py", line 122, in add_documents return self.add_texts(texts, metadatas, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/poshak/PycharmProjects/dialogflow/.venv/lib/python3.11/site-packages/langchain/vectorstores/redis/base.py", line 716, in add_texts embeddings[i] if embeddings else self._embeddings.embed_query(text) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'function' object has no attribute 'embed_query'

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