Skip to content

The agent engineering platform.

Fix documentation typo in Clickhouse Class (#12047)

Zhitao Xua4c3a44712f8
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