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

In Memory Vector Store not working [BUG] #2501

Closed
mikkelkrogsholm opened this issue May 28, 2024 · 17 comments · Fixed by #2542
Closed

In Memory Vector Store not working [BUG] #2501

mikkelkrogsholm opened this issue May 28, 2024 · 17 comments · Fixed by #2542
Labels
bug Something isn't working in-work Issue in work

Comments

@mikkelkrogsholm
Copy link

Seems like the new docker image is messing up the vector store.

@toi500
Copy link
Contributor

toi500 commented May 28, 2024

I have noticed this too, the In Memory Vector Store not working when you try to upsert from the Plain Text node.

@SoundMindsAI
Copy link

I have seen this too.
I upserted a simple PDF and the In-Memory Vector store. The error I am getting is:
Received tool input did not match expected schema


Error: Received tool input did not match expected schema
    at DynamicStructuredTool.call (/usr/local/lib/node_modules/flowise/node_modules/@langchain/core/dist/tools.cjs:70:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/src/agents.js:315:39
    at async Promise.all (index 0)
    at async AgentExecutor._call (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/src/agents.js:302:30)
    at async AgentExecutor.invoke (/usr/local/lib/node_modules/flowise/node_modules/langchain/dist/chains/base.cjs:58:28)
    at async ConversationalAgent_Agents.run (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/agents/ConversationalAgent/ConversationalAgent.js:119:19)
    at async utilBuildChatflow (/usr/local/lib/node_modules/flowise/dist/utils/buildChatflow.js:251:15)
    at async createInternalPrediction (/usr/local/lib/node_modules/flowise/dist/controllers/internal-predictions/index.js:7:29)

@SoundMindsAI
Copy link

The issue might have something to do with my attempt to use a ConversationAgent.
What I thought would be a better Agent appears to be deprecated "Conversational Retrieval Agent".
I thought that perhaps the Newer "Tool Agent" might be what I need; however, I am unsure about what to use for the AgentExecutor

Screenshot 2024-05-28 at 8 06 20 AM

@SoundMindsAI
Copy link

Actually... The AgentExecutor is not required. This is working for me.
The problem was that I was using the ConversationalAgent but the ToolAgent works better.

@SoundMindsAI
Copy link

Actually... The AgentExecutor is not required. This is working for me. The problem was that I was using the ConversationalAgent but the ToolAgent works better.

I forgot to mention... I had previously switched over to a Pinecone DB rather than the in-memory Vector Store and was still getting this error message until I switched out the ConversationalAgent for the ToolAgent. I have not tested this with the In-Memory Vector Store.

@toi500
Copy link
Contributor

toi500 commented May 28, 2024

I think the team, following the LangChain initiative, is trying to standardize the tools. Some of these tools may become outdated since they were built just for OpenAI.

Now, in theory, the tools should work for Gemini, Mistral, Clause, and OpenAI, but this is not always the case.

@SoundMindsAI
Copy link

@mikkelkrogsholm and @toi500
Can you confirm that you are using the ToolAgent and not using the ConversationalAgent?
I am curious if this might be the fix for the issue that you are seeing.

@mikkelkrogsholm
Copy link
Author

@SoundMindsAI I was using the conversational qa chain

@drndos
Copy link

drndos commented May 28, 2024

Same issue here, seems like reverting to 1.7.2 helped

@AlehandroL
Copy link

Same issue here.
I use: Tool Agent -> Retriever Tool -> In Memory Vector Store

In the chat window and in Langsmith I can see that output is returning empty.
The issue started before updating from 1.7.2 to 1.8.0
Captura de pantalla 2024-05-28 a la(s) 8 39 08 p  m

@trunghuynh228
Copy link

I have the same issue when using OpenAI Assistant. The chatbot cannot get the information from in-memory vector store at all. 1.8.0 is not working and I had to revert to 1.7.2

@automaton82
Copy link
Contributor

Hi @HenryHengZJ can you have this one (and #2494 which I think is the same) looked at? I think something broke in 1.8.0 with RAG.

@SoundMindsAI
Copy link

SoundMindsAI commented May 29, 2024 via email

@tiago-falves
Copy link

The In-Memory vector store is also not working for me!
image
I Have this workflow, I saved, upserted and then started a new chat. The model does not recognize any information I gave it in the pdf file.
What can I do to fix this?
Thank you very much!

@HenryHengZJ HenryHengZJ added bug Something isn't working in-work Issue in work labels May 31, 2024
@HenryHengZJ HenryHengZJ linked a pull request May 31, 2024 that will close this issue
@HenryHengZJ
Copy link
Contributor

Will be pushing a new release with this fix soon!

@HenryHengZJ
Copy link
Contributor

Pushed to 1.8.1!

@automaton82
Copy link
Contributor

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in-work Issue in work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants