langchain icon indicating copy to clipboard operation
langchain copied to clipboard

ValueError: Number of columns in X and Y must be same. ( in Faiss maximal marginal search )

Open lucinex opened this issue 1 year ago • 1 comments

image Getting this error While using faiss vector store methods. Found that in code , the query embedding is wrapped around a List , image And then again it is wrapped in list inside the maximal_marginal_method image

I hope this gets fixed !

lucinex avatar Apr 25 '23 15:04 lucinex

I had a similar error that was resolved after I upgraded to the latest release v0.0.157.

iamaziz avatar May 04 '23 00:05 iamaziz

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!

dosubot[bot] avatar Sep 01 '23 16:09 dosubot[bot]