langchain/libs/partners/qdrant
Vincent Emonet 3645181d0e
qdrant: Add similarity_search_with_score_by_vector() function to the QdrantVectorStore (#29641)
Added `similarity_search_with_score_by_vector()` function to the
`QdrantVectorStore` class.

It is required when we want to query multiple time with the same
embeddings. It was present in the now deprecated original `Qdrant`
vectorstore implementation, but was absent from the new one. It is also
implemented in a number of others `VectorStore` implementations

I have added tests for this new function

Note that I also argued in this discussion that it should be part of the
general `VectorStore`
https://github.com/langchain-ai/langchain/discussions/29638

Co-authored-by: Erick Friis <erick@langchain.dev>
2025-02-07 00:55:58 +00:00
..
langchain_qdrant qdrant: Add similarity_search_with_score_by_vector() function to the QdrantVectorStore (#29641) 2025-02-07 00:55:58 +00:00
scripts multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
tests qdrant: Add similarity_search_with_score_by_vector() function to the QdrantVectorStore (#29641) 2025-02-07 00:55:58 +00:00
.gitignore
LICENSE
Makefile infra: add UV_FROZEN to makefiles (#29642) 2025-02-06 14:36:54 -05:00
pyproject.toml infra: migrate to uv (#29566) 2025-02-06 13:36:26 -05:00
README.md
uv.lock infra: migrate to uv (#29566) 2025-02-06 13:36:26 -05:00

langchain-qdrant

This package contains the LangChain integration with Qdrant.

Installation

pip install -U langchain-qdrant

Usage

The Qdrant class exposes the connection to the Qdrant vector store.

from langchain_qdrant import Qdrant

embeddings = ... # use a LangChain Embeddings class

vectorstore = Qdrant.from_existing_collection(
    embeddings=embeddings,
    collection_name="<COLLECTION_NAME>",
    url="http://localhost:6333",
)