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

[BUG] Cannot convert undefined or null to object - Redis Vector Store #2135

Open
danielstankw opened this issue Apr 9, 2024 · 8 comments
Open
Labels
question Further information is requested

Comments

@danielstankw
Copy link

Due to the issues I had with In-memory vector store I have switched it to the Redis one. Every time I attempt to Upsert Vector Database I get the following error":
image

2024-04-09 06:58:45 [ERROR]: Cannot convert undefined or null to object
TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at escapeAllStrings (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/vectorstores/Redis/utils.js:14:12)
    at /usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/vectorstores/Redis/utils.js:18:42
    at Array.forEach (<anonymous>)
    at escapeAllStrings (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/vectorstores/Redis/utils.js:14:22)
    at /usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/vectorstores/Redis/utils.js:18:42
    at Array.forEach (<anonymous>)
    at escapeAllStrings (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/vectorstores/Redis/utils.js:14:22)
    at Redis_VectorStores.upsert (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/vectorstores/Redis/Redis.js:55:54)
    at async buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:265:17)
    at async App.upsertVector (/usr/local/lib/node_modules/flowise/dist/index.js:1698:13)
    at async /usr/local/lib/node_modules/flowise/dist/index.js:1193:13
2024-04-09 06:58:45 [ERROR]: [server]: Error: TypeError: Cannot convert undefined or null to object
Error: TypeError: Cannot convert undefined or null to object
    at buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:326:19)
    at async App.upsertVector (/usr/local/lib/node_modules/flowise/dist/index.js:1698:13)
    at async /usr/local/lib/node_modules/flowise/dist/index.js:1193:13
@HenryHengZJ
Copy link
Contributor

do you have Redis Stack running on Docker? https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/

1.) My Flow:
image

2.) Upsert result
image

3.) Vectors on Redis that were upserted:
image

@danielstankw
Copy link
Author

Do you have any suggestions for some steps worth taking to troubleshoot it? - for me the results arent upserted.

@HenryHengZJ
Copy link
Contributor

in your flow, you are using LocalAI and Azure, I'd suggest try replacing each one at at time to see which one was causing issue. Also, is it just PDF? have you tried Text file?

@HenryHengZJ HenryHengZJ added the question Further information is requested label Apr 11, 2024
@danielstankw
Copy link
Author

@HenryHengZJ
Do I need to have redis stack running in docker to use this application?
I am connecting to redis that is hosted externally.

@tiberiu89
Copy link

Yes, can confirm this is happening for me also using the pdf loader. It seems that this is the case with some of the pdf file, not all. Found this similar issue #2099

@danielstankw
Copy link
Author

@HenryHengZJ can this be looked into ?
Even with document loader it doesnt work. It seems there is a big issue with parsing PDF

@nguyenhung10012003
Copy link
Contributor

I have same issue, that is case with pdf file, the docx file, txt is still working

@nguyenhung10012003
Copy link
Contributor

I've fixed it in #3789

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants