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: CONTRIBUTING.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,10 @@ npm test -- path/to/test/file.test.ts
76
76
npm test -- path/to/directory
77
77
```
78
78
79
+
#### Accuracy Tests and colima
80
+
81
+
If you use [colima](https://github.com/abiosoft/colima) to run Docker on Mac, you will need to apply [additional configuration](https://node.testcontainers.org/supported-container-runtimes/#colima) to ensure the accuracy tests run correctly.
"Array of objects with vector search index fields as keys (in dot notation) and the raw text values to generate embeddings for as values. The index of each object corresponds to the index of the document in the documents array."
15
+
),
16
+
});
6
17
7
18
exportclassInsertManyToolextendsMongoDBToolBase{
8
19
publicname="insert-many";
@@ -12,46 +23,44 @@ export class InsertManyTool extends MongoDBToolBase {
"The embedding model and its parameters to use to generate embeddings for fields with vector search indexes. Note to LLM: If unsure which embedding model to use, ask the user before providing one."
`Field '${fieldPath}' does not have a vector search index in collection ${database}.${collection}. Only fields with vector search indexes can have embeddings generated.`
105
+
);
106
+
}
107
+
}
108
+
}
109
+
110
+
// We make one call to generate embeddings for all documents at once to avoid making too many API calls.
0 commit comments