From 8a66421e104a1ca3e96dc174243f265d066023b6 Mon Sep 17 00:00:00 2001 From: sudolong Date: Sun, 25 Jun 2023 14:15:52 +0800 Subject: [PATCH] fix chroma _similarity_search_with_relevance_scores missing `kwargs` parameter --- 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 a3679c09f3c50..132da630e3178 100644 --- a/langchain/vectorstores/chroma.py +++ b/langchain/vectorstores/chroma.py @@ -228,7 +228,7 @@ def _similarity_search_with_relevance_scores( 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,