From 4e56d3119cd46aa45c644a12a58b62bea58ffd6a Mon Sep 17 00:00:00 2001 From: Brendan Mannix Date: Tue, 16 May 2023 20:30:38 -0400 Subject: [PATCH] update qdrant docs to reflect the proper way to initialize Qdrant() constructor (#4596) # update qdrant docs to reflect the proper way to initialize Qdrant() constructor The [Qdrant docs](https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/qdrant.html) still contain an old reference for passing an `embedding_function` into the constructor. This is no longer supported. This PR updates the docs to reflect the proper way to initialize `Qdrant()` Old: ![Screenshot 2023-05-12 at 3 06 33 PM](https://github.com/hwchase17/langchain/assets/1552962/dd4063d2-2a07-4340-91bb-e305f7215ddd) New: ![Screenshot 2023-05-12 at 3 21 09 PM](https://github.com/hwchase17/langchain/assets/1552962/aebc3f63-1a8b-4ca3-93c0-a2ce30dcd282) --- docs/modules/indexes/vectorstores/examples/qdrant.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/indexes/vectorstores/examples/qdrant.ipynb b/docs/modules/indexes/vectorstores/examples/qdrant.ipynb index 59b39411..7bd371ae 100644 --- a/docs/modules/indexes/vectorstores/examples/qdrant.ipynb +++ b/docs/modules/indexes/vectorstores/examples/qdrant.ipynb @@ -274,7 +274,7 @@ ")\n", "qdrant = Qdrant(\n", " client=client, collection_name=\"my_documents\", \n", - " embedding_function=embeddings.embed_query\n", + " embeddings=embeddings\n", ")" ] },