feat: add support for automatic embeddings for the insert many tool MCP-236 #459
Annotations
4 errors
|
Run tests
Process completed with exit code 1.
|
|
Run tests:
tests/matchers/toIncludeSameMembers.ts#L4
AssertionError: expected [ { name: 'collection', …(3) }, …(3) ] to deeply equal ArrayContaining{…}
- Expected
+ Received
- ArrayContaining [
+ [
{
- "description": "Database name",
- "name": "database",
+ "description": "Collection name",
+ "name": "collection",
"required": true,
"type": "string",
},
{
- "description": "Collection name",
- "name": "collection",
+ "description": "Database name",
+ "name": "database",
"required": true,
"type": "string",
},
{
"description": "The array of documents to insert, matching the syntax of the document argument of db.collection.insertMany().",
"name": "documents",
"required": true,
"type": "array",
},
{
- "description": "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.",
+ "description": "The embedding model and its parameters to use to generate embeddings for fields that have vector search indexes. When a field has a vector search index and contains a plain text string in the document, embeddings will be automatically generated from that string value. Note to LLM: If unsure which embedding model to use, ask the user before providing one.",
"name": "embeddingParameters",
"required": false,
"type": "object",
},
]
❯ Object.toIncludeSameMembers tests/matchers/toIncludeSameMembers.ts:4:20
❯ tests/integration/helpers.ts:307:32
|
|
Run tests:
tests/unit/common/search/vectorSearchEmbeddingsManager.test.ts#L464
AssertionError: promise resolved "undefined" instead of rejecting
- Expected:
Error {
"message": "rejected promise",
}
+ Received:
undefined
❯ tests/unit/common/search/vectorSearchEmbeddingsManager.test.ts:464:88
|
|
Run tests:
tests/unit/common/search/vectorSearchEmbeddingsManager.test.ts#L427
AssertionError: promise resolved "undefined" instead of rejecting
- Expected:
Error {
"message": "rejected promise",
}
+ Received:
undefined
❯ tests/unit/common/search/vectorSearchEmbeddingsManager.test.ts:427:80
|
Loading