From 4419340039c98da45c13675340e853801dfc0f8b Mon Sep 17 00:00:00 2001 From: Fai LAW Date: Mon, 31 Mar 2025 23:33:00 +0800 Subject: [PATCH] docs: add pre_filter usage in similarity_search_with_score (Azure Cosmos DB No SQL) (#30508) `pre_filter` should be passed in the `Hybrid Search with filtering` example. Otherwise, it is just an unused variable. --- .../integrations/vectorstores/azure_cosmos_db_no_sql.ipynb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/docs/integrations/vectorstores/azure_cosmos_db_no_sql.ipynb b/docs/docs/integrations/vectorstores/azure_cosmos_db_no_sql.ipynb index 7a231f764e2..d3a183b583e 100644 --- a/docs/docs/integrations/vectorstores/azure_cosmos_db_no_sql.ipynb +++ b/docs/docs/integrations/vectorstores/azure_cosmos_db_no_sql.ipynb @@ -643,9 +643,7 @@ "}\n", "\n", "results = vector_search.similarity_search_with_score(\n", - " query=query,\n", - " k=5,\n", - " query_type=CosmosDBQueryType.HYBRID,\n", + " query=query, k=5, query_type=CosmosDBQueryType.HYBRID, pre_filter=pre_filter\n", ")\n", "\n", "# Display results\n",