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
"The content to search for. The embeddingParameters field is mandatory if the queryVector is a string."
38
+
"The content to search for. The embeddingParameters field is mandatory if the queryVector is a string, in that case, the tool generates the embedding automatically using the provided configuration."
Copy file name to clipboardExpand all lines: tests/accuracy/aggregate.test.ts
+76-2Lines changed: 76 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,69 @@ describeAccuracyTests([
27
27
},
28
28
{
29
29
prompt: "Run a vectorSearch query on musicfy.songs on path 'title_embeddings' using the index 'titles' with the model voyage-3-large to find all 'hammer of justice' songs.",
prompt: "Run an exact vectorSearch query on musicfy.songs on path 'title_embeddings' using the index 'titles' with the model voyage-3-large to find 10 'hammer of justice' songs in any order.",
30
93
expectedToolCalls: [
31
94
{
32
95
toolName: "collection-indexes",
@@ -48,9 +111,15 @@ describeAccuracyTests([
48
111
index: "titles",
49
112
path: "title_embeddings",
50
113
queryVector: "hammer of justice",
114
+
limit: 10,
51
115
embeddingParameters: {
52
116
model: "voyage-3-large",
117
+
outputDimension: Matcher.anyOf(
118
+
Matcher.undefined,
119
+
Matcher.number((n)=>n===1024)
120
+
),
53
121
},
122
+
filter: Matcher.emptyObjectOrUndefined,
54
123
},
55
124
},
56
125
],
@@ -84,7 +153,7 @@ describeAccuracyTests([
84
153
},
85
154
},
86
155
{
87
-
prompt: "Run a vectorSearch query on mflix.movies on path 'plot_embeddings' with the model voyage-3-large to find all 'sci-fy' movies.",
156
+
prompt: "Run an approximate vectorSearch query on mflix.movies on path 'plot_embeddings' with the model voyage-3-large to find all 'sci-fy' movies.",
0 commit comments