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
"When true, uses an ENN algorithm, otherwise uses ANN. Using ENN is not compatible with numCandidates, in that case, numCandidates must be left empty."
28
+
),
29
+
index: z.string().optional().default("default"),
30
+
path: z
31
+
.string()
32
+
.describe(
33
+
"Field, in dot notation, where to search. There must be a vector search index for that field. Note to LLM: When unsure, use the 'collection-indexes' tool to validate that the field is indexed with a vector search index."
34
+
),
35
+
queryVector: z
36
+
.union([z.string(),z.array(z.number())])
37
+
.describe(
38
+
"The content to search for. If a string, the embeddingModel is mandatory, if not, the embeddingModel is ignored."
39
+
),
40
+
numCandidates: z
41
+
.number()
42
+
.int()
43
+
.positive()
44
+
.optional()
45
+
.describe("Number of candidates for the ANN algorithm. Only valid when exact is false."),
"The embedding model to use to generate embeddings before search. Note to LLM: If unsure, ask the user before providing one."
52
+
),
53
+
})
54
+
.passthrough(),
55
+
});
16
56
17
57
exportconstAggregateArgs={
18
-
pipeline: z.array(zEJSON()).describe("An array of aggregation stages to execute"),
58
+
pipeline: z
59
+
.array(z.union([AnyStage,VectorSearchStage]))
60
+
.describe(
61
+
"An array of aggregation stages to execute. $vectorSearch can only appear as the first stage of the aggregation pipeline or as the first stage of a $unionWith subpipeline."
0 commit comments