diff --git a/libs/community/langchain_community/vectorstores/faiss.py b/libs/community/langchain_community/vectorstores/faiss.py index 860708b985115..d6aacb2e36fd8 100644 --- a/libs/community/langchain_community/vectorstores/faiss.py +++ b/libs/community/langchain_community/vectorstores/faiss.py @@ -1288,7 +1288,7 @@ def _similarity_search_with_relevance_scores( relevance_score_fn = self._select_relevance_score_fn() if relevance_score_fn is None: raise ValueError( - "normalize_score_fn must be provided to" + "relevance_score_fn must be provided to" " FAISS constructor to normalize scores" ) docs_and_scores = self.similarity_search_with_score( @@ -1317,7 +1317,7 @@ async def _asimilarity_search_with_relevance_scores( relevance_score_fn = self._select_relevance_score_fn() if relevance_score_fn is None: raise ValueError( - "normalize_score_fn must be provided to" + "relevance_score_fn must be provided to" " FAISS constructor to normalize scores" ) docs_and_scores = await self.asimilarity_search_with_score(