Skip to content

Commit b808624

Browse files
committed
chore: add accuracy tests for the list-search-indexes tool
1 parent f2bb4b3 commit b808624

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { describeAccuracyTests } from "./sdk/describeAccuracyTests.js";
2+
3+
describeAccuracyTests([
4+
{
5+
prompt: "how many search indexes do I have in the collection mydb.mycoll?",
6+
expectedToolCalls: [
7+
{
8+
toolName: "list-search-indexes",
9+
parameters: {
10+
database: "mydb",
11+
collection: "mycoll",
12+
},
13+
},
14+
],
15+
},
16+
{
17+
prompt: "which vector search indexes do I have in mydb.mycoll?",
18+
expectedToolCalls: [
19+
{
20+
toolName: "list-search-indexes",
21+
parameters: {
22+
database: "mydb",
23+
collection: "mycoll",
24+
},
25+
},
26+
],
27+
},
28+
]);

0 commit comments

Comments
 (0)