langchain
langchain copied to clipboard
ValueError: Number of columns in X and Y must be same. ( in Faiss maximal marginal search )
Getting this error While using faiss vector store methods.
Found that in code , the query embedding is wrapped around a List ,
And then again it is wrapped in list inside the maximal_marginal_method
I hope this gets fixed !
I had a similar error that was resolved after I upgraded to the latest release v0.0.157
.
Hi, @lucinex! I'm Dosu, and I'm helping the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.
From what I understand, you reported an issue involving a ValueError when using faiss vector store methods. It seems that the problem was caused by the query embedding being wrapped in a list multiple times in the code. Another user named iamaziz suggested upgrading to the latest release, v0.0.157, which resolved a similar error for them.
Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days.
Thank you for your understanding and contribution to the LangChain project!