From 1819c73d10072dce15b371d89996d3561c2a6853 Mon Sep 17 00:00:00 2001 From: Shahroz Ahmad <97090106+ishahroz@users.noreply.github.com> Date: Mon, 25 Aug 2025 10:59:28 -0300 Subject: [PATCH] docs(docs): update Docker to ClickHouse 25.7 with vector_similarity support (#32659) - **Description:** Updated Docker command to use ClickHouse 25.7 (has `vector_similarity` index support). Added `CLICKHOUSE_SKIP_USER_SETUP=1` env param to [bypass default user setup](https://clickhouse.com/docs/install/docker#managing-default-user) and allow external network access. There was also a bug where if you try to access results using `similarity_search_with_relevance_scores`, they need to unpacked first. - **Issue:** Fixes #32094 if someone following tutorial with default Clickhouse configurations. --- docs/docs/integrations/vectorstores/clickhouse.ipynb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/docs/integrations/vectorstores/clickhouse.ipynb b/docs/docs/integrations/vectorstores/clickhouse.ipynb index 2498a16a5c8..429830810fd 100644 --- a/docs/docs/integrations/vectorstores/clickhouse.ipynb +++ b/docs/docs/integrations/vectorstores/clickhouse.ipynb @@ -23,7 +23,7 @@ "metadata": {}, "outputs": [], "source": [ - "! docker run -d -p 8123:8123 -p9000:9000 --name langchain-clickhouse-server --ulimit nofile=262144:262144 clickhouse/clickhouse-server:24.7.6.8" + "! docker run -d -p 8123:8123 -p 9000:9000 --name langchain-clickhouse-server --ulimit nofile=262144:262144 -e CLICKHOUSE_SKIP_USER_SETUP=1 clickhouse/clickhouse-server:25.7" ] }, { @@ -310,7 +310,8 @@ " where_str=f\"{meta}.source = 'tweet'\",\n", ")\n", "for res in results:\n", - " print(f\"* {res.page_content} [{res.metadata}]\")" + " page_content, metadata = res\n", + " print(f\"* {page_content} [{metadata}]\")" ] }, {