From 278bdca81651b8f60e6d1f81cdf9d356f691adf6 Mon Sep 17 00:00:00 2001 From: Max Jakob Date: Fri, 17 May 2024 14:19:34 +0200 Subject: [PATCH] remove variable --- notebooks/document-chunking/with-langchain-splitters.ipynb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/notebooks/document-chunking/with-langchain-splitters.ipynb b/notebooks/document-chunking/with-langchain-splitters.ipynb index 7c2924fd..003f6122 100644 --- a/notebooks/document-chunking/with-langchain-splitters.ipynb +++ b/notebooks/document-chunking/with-langchain-splitters.ipynb @@ -562,7 +562,7 @@ " filter: List[dict],\n", " **kwargs,\n", " ):\n", - " es_query = {\n", + " return {\n", " \"knn\": {\n", " \"inner_hits\": {\"_source\": False, \"fields\": [\"passages.text\"]},\n", " \"field\": \"passages.vector.predicted_value\",\n", @@ -578,8 +578,6 @@ " }\n", " }\n", "\n", - " return es_query\n", - "\n", "\n", "vector_store = ElasticsearchStore(\n", " index_name=INDEX_NAME,\n",