From 38057f0d2e13288f42f289ad2347989486d513bb Mon Sep 17 00:00:00 2001 From: Hao Chen Date: Sun, 18 Jun 2023 17:34:53 -0700 Subject: [PATCH] Fix latest clickhouse vector schema change (#6385) Fixes https://github.com/hwchase17/langchain/issues/6208 Fixes # (issue) #### Before submitting #### Who can review? Tag maintainers/contributors who might be interested: VectorStores / Retrievers / Memory - @dev2049 --- langchain/vectorstores/clickhouse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/vectorstores/clickhouse.py b/langchain/vectorstores/clickhouse.py index ed179c8b00..62c3a94328 100644 --- a/langchain/vectorstores/clickhouse.py +++ b/langchain/vectorstores/clickhouse.py @@ -68,7 +68,7 @@ class ClickhouseSettings(BaseSettings): index_type: str = "annoy" # Annoy supports L2Distance and cosineDistance. - index_param: Optional[Union[List, Dict]] = [100, "'L2Distance'"] + index_param: Optional[Union[List, Dict]] = ["'L2Distance'", 100] index_query_params: Dict[str, str] = {} column_map: Dict[str, str] = {