diff --git a/langchain/vectorstores/qdrant.py b/langchain/vectorstores/qdrant.py index 4ce535fcd4..8e716df0a0 100644 --- a/langchain/vectorstores/qdrant.py +++ b/langchain/vectorstores/qdrant.py @@ -165,7 +165,7 @@ class Qdrant(VectorStore): query_vector=embedding, with_payload=True, with_vectors=True, - limit=k, + limit=fetch_k, ) embeddings = [result.vector for result in results] mmr_selected = maximal_marginal_relevance(embedding, embeddings, k=k)