How to use the vectorstore as a retriever to the langchain retrieval chains. It seems to give me a error with ValueError: The argument order for query() has changed; please use keyword arguments instead of positional arguments. Example: index.query(vector=[0.1, 0.2, 0.3], top_k=10, namespace='my_namespace')
The same thing also persists with similarity_search. Even after giving the keyword arguments, the same error shows up.
vectorstore.similarity_search(
query, # the search query
k=3 # returns top 3 most relevant chunks of text
)
How can I go about this? I cant find any update in the documentation.