From a4c3a44712f867a54e1e1c058893630329cbbe43 Mon Sep 17 00:00:00 2001 From: Zhitao Xu Date: Thu, 19 Oct 2023 17:00:22 -0400 Subject: [PATCH] Fix documentation typo in Clickhouse Class (#12047) - **Description:** The return info in the documentation for similarity_search_by_vector and similarity_search_with_relevance_scores is wrong --- libs/langchain/langchain/vectorstores/clickhouse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/langchain/langchain/vectorstores/clickhouse.py b/libs/langchain/langchain/vectorstores/clickhouse.py index 81e59ede99..e63704e09a 100644 --- a/libs/langchain/langchain/vectorstores/clickhouse.py +++ b/libs/langchain/langchain/vectorstores/clickhouse.py @@ -410,7 +410,7 @@ CREATE TABLE IF NOT EXISTS {self.config.database}.{self.config.table}( alone. The default name for it is `metadata`. Returns: - List[Document]: List of (Document, similarity) + List[Document]: List of documents """ q_str = self._build_query_sql(embedding, k, where_str) try: @@ -442,7 +442,7 @@ CREATE TABLE IF NOT EXISTS {self.config.database}.{self.config.table}( alone. The default name for it is `metadata`. Returns: - List[Document]: List of documents + List[Document]: List of (Document, similarity) """ q_str = self._build_query_sql( self.embedding_function.embed_query(query), k, where_str