You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/BaselineTest/TestBaseline/QueryPlanBaselineTests.VectorSearch.xml
+132-3Lines changed: 132 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
<Results>
2
2
<Result>
3
3
<Input>
4
-
<Description>Euclidean Distance</Description>
4
+
<Description>Euclidean Distance with query parameter</Description>
5
5
<Query>SELECT TOP 10 c.title AS Title, VectorDistance(c.embedding, @vectorEmbedding, true) AS SimilarityScore
6
6
FROM c
7
7
ORDER BY VectorDistance(c.embedding, @vectorEmbedding, true)</Query>
@@ -59,7 +59,7 @@ ORDER BY VectorDistance(c.embedding, @vectorEmbedding, true)]]></RewrittenQuery>
59
59
</Result>
60
60
<Result>
61
61
<Input>
62
-
<Description>Cosine Similarity</Description>
62
+
<Description>Cosine Similarity with query parameter</Description>
63
63
<Query>SELECT TOP 10 c.title AS Title, VectorDistance(c.embedding, @vectorEmbedding, true) AS SimilarityScore
64
64
FROM c
65
65
ORDER BY VectorDistance(c.embedding, @vectorEmbedding, true)</Query>
@@ -117,7 +117,7 @@ ORDER BY VectorDistance(c.embedding, @vectorEmbedding, true)]]></RewrittenQuery>
117
117
</Result>
118
118
<Result>
119
119
<Input>
120
-
<Description>Dot Product</Description>
120
+
<Description>Dot Product with query parameter</Description>
121
121
<Query>SELECT TOP 10 c.title AS Title, VectorDistance(c.embedding, @vectorEmbedding, true) AS SimilarityScore
122
122
FROM c
123
123
ORDER BY VectorDistance(c.embedding, @vectorEmbedding, true)</Query>
@@ -173,4 +173,133 @@ ORDER BY VectorDistance(c.embedding, @vectorEmbedding, true)]]></RewrittenQuery>
173
173
</PartitionedQueryExecutionInfoInternal>
174
174
</Output>
175
175
</Result>
176
+
<Result>
177
+
<Input>
178
+
<Description>Euclidean Distance with inline vector</Description>
179
+
<Query>SELECT TOP 10 c.title AS Title, VectorDistance(c.embedding, [0.0039695268496870995, 0.027338456362485886, -0.005676387343555689, -0.013547309674322605, -0.002445543883368373, 0.01579204574227333, -0.016796082258224487, -0.012471556663513184], true) AS SimilarityScore
180
+
FROM c
181
+
ORDER BY VectorDistance(c.embedding, [0.0039695268496870995, 0.027338456362485886, -0.005676387343555689, -0.013547309674322605, -0.002445543883368373, 0.01579204574227333, -0.016796082258224487, -0.012471556663513184], true)</Query>
0 commit comments