qdrant: Update API reference link and install command (#25245)

## Description

As the title goes. The current API reference links to the deprecated
class.
This commit is contained in:
Anush 2024-08-12 02:24:14 +05:30 committed by GitHub
parent 074fa0db73
commit 472527166f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View File

@ -34,7 +34,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"%pip install -qU langchain-qdrant 'qdrant-client[fastembed]'" "%pip install -qU langchain-qdrant"
] ]
}, },
{ {
@ -628,7 +628,7 @@
"id": "525e3582", "id": "525e3582",
"metadata": {}, "metadata": {},
"source": [ "source": [
"For a full list of all the search functions available for a `QdrantVectorStore`, read the [API reference](https://api.python.langchain.com/en/latest/vectorstores/langchain_qdrant.vectorstores.Qdrant.html)\n", "For a full list of all the search functions available for a `QdrantVectorStore`, read the [API reference](https://api.python.langchain.com/en/latest/qdrant/langchain_qdrant.qdrant.QdrantVectorStore.html)\n",
"\n", "\n",
"### Metadata filtering\n", "### Metadata filtering\n",
"\n", "\n",
@ -814,7 +814,7 @@
"source": [ "source": [
"## API reference\n", "## API reference\n",
"\n", "\n",
"For detailed documentation of all `QdrantVectorStore` features and configurations head to the API reference: https://api.python.langchain.com/en/latest/vectorstores/langchain_qdrant.vectorstores.Qdrant.html" "For detailed documentation of all `QdrantVectorStore` features and configurations head to the API reference: https://api.python.langchain.com/en/latest/qdrant/langchain_qdrant.qdrant.QdrantVectorStore.html"
] ]
} }
], ],

View File

@ -42,17 +42,19 @@ class QdrantVectorStore(VectorStore):
"""Qdrant vector store integration. """Qdrant vector store integration.
Setup: Setup:
Install ``langchain-qdrant`` and ``qdrant-client[fastembed]`` packages. Install ``langchain-qdrant`` package.
.. code-block:: bash .. code-block:: bash
pip install -qU langchain-qdrant 'qdrant-client[fastembed]' pip install -qU langchain-qdrant
Key init args indexing params: Key init args indexing params:
collection_name: str collection_name: str
Name of the collection. Name of the collection.
embedding: Embeddings embedding: Embeddings
Embedding function to use. Embedding function to use.
sparse_embedding: SparseEmbeddings
Optional sparse embedding function to use.
Key init args client params: Key init args client params:
client: QdrantClient client: QdrantClient