From 40a9a4545a0c0224439e3e8cfe2147250c525d8b Mon Sep 17 00:00:00 2001 From: Michael Spector Date: Mon, 16 Dec 2024 19:00:45 +0000 Subject: [PATCH 1/2] series_cosine_similarity: document optional magnutude parameters --- data-explorer/kusto/query/series-cosine-similarity-function.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data-explorer/kusto/query/series-cosine-similarity-function.md b/data-explorer/kusto/query/series-cosine-similarity-function.md index 5e5a98596c..f79417824c 100644 --- a/data-explorer/kusto/query/series-cosine-similarity-function.md +++ b/data-explorer/kusto/query/series-cosine-similarity-function.md @@ -15,7 +15,7 @@ The function `series_cosine_similarity()` takes two numeric series as input, and ## Syntax -`series_cosine_similarity(`*series1*`,` *series2*`)` +`series_cosine_similarity(`*series1*`, `*series2*`, [`*magnitude1`, [`*magnitude2`]])` [!INCLUDE [syntax-conventions-note](../includes/syntax-conventions-note.md)] @@ -24,6 +24,7 @@ The function `series_cosine_similarity()` takes two numeric series as input, and | Name | Type | Required | Description | |--|--|--|--| | *series1, series2* | `dynamic` | :heavy_check_mark: | Input arrays with numeric data. | +| *magnitude1, magnitude2* | `real` | | Optional magnitude of the first and the second vectors respectively (square root of dot product of the vector with itself). If not provided, the magnitude will be calculated. | ## Returns From 2616fd5d40c42a9439b2e223775872fded089ace Mon Sep 17 00:00:00 2001 From: Michael Spector Date: Thu, 19 Dec 2024 18:35:04 +0000 Subject: [PATCH 2/2] Update series-cosine-similarity-function.md Co-authored-by: Meira Josephy <144697924+mjosephym@users.noreply.github.com> --- data-explorer/kusto/query/series-cosine-similarity-function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-explorer/kusto/query/series-cosine-similarity-function.md b/data-explorer/kusto/query/series-cosine-similarity-function.md index f79417824c..24480baa83 100644 --- a/data-explorer/kusto/query/series-cosine-similarity-function.md +++ b/data-explorer/kusto/query/series-cosine-similarity-function.md @@ -24,7 +24,7 @@ The function `series_cosine_similarity()` takes two numeric series as input, and | Name | Type | Required | Description | |--|--|--|--| | *series1, series2* | `dynamic` | :heavy_check_mark: | Input arrays with numeric data. | -| *magnitude1, magnitude2* | `real` | | Optional magnitude of the first and the second vectors respectively (square root of dot product of the vector with itself). If not provided, the magnitude will be calculated. | +| *magnitude1, magnitude2* | `real` | | Optional magnitude of the first and the second vectors respectively. The magnitude is the square root of the dot product of the vector with itself. If the magnitude isn't provided, it will be calculated. | ## Returns