langchain
langchain copied to clipboard
Update qdrant interface
Hello
-
Passing
embedding_functionas a callable seems to be outdated and the common interface is to passEmbeddingsinstance -
At the moment
Qdrant.add_textsis designed to be used withembeddings.embed_query, which is 1) slow 2) causes ambiguity due to 1. It should be used withembeddings.embed_documents
This PR solves both problems and also provides some new tests
Hi, @hwchase17 Great, thanks I’ve just fixed linter complaints, it should work now