From 408c8d0178469e22e8a0150dac10d4b22a0fa89f Mon Sep 17 00:00:00 2001 From: sudolong Date: Mon, 26 Jun 2023 02:53:42 +0800 Subject: [PATCH] =?UTF-8?q?fix=20chroma=20=5Fsimilarity=5Fsearch=5Fwith=5F?= =?UTF-8?q?relevance=5Fscores=20missing=20`kwargs`=20=E2=80=A6=20(#6708)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: https://github.com/hwchase17/langchain/issues/6707 --- langchain/vectorstores/chroma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/vectorstores/chroma.py b/langchain/vectorstores/chroma.py index a3679c09f..132da630e 100644 --- a/langchain/vectorstores/chroma.py +++ b/langchain/vectorstores/chroma.py @@ -228,7 +228,7 @@ class Chroma(VectorStore): k: int = 4, **kwargs: Any, ) -> List[Tuple[Document, float]]: - return self.similarity_search_with_score(query, k) + return self.similarity_search_with_score(query, k, **kwargs) def max_marginal_relevance_search_by_vector( self,