[1] Running query pipeline: [
[1] {
[1] '$vectorSearch': {
[1] queryVector: [Array],
[1] path: 'embedding',
[1] numCandidates: 50,
[1] limit: 5,
[1] index: 'vector_index'
[1] }
[1] },
[1] { '$project': { score: [Object], embedding: 0 } }
[1] ]
[1] /path-to-project/backend/node_modules/mongodb/lib/cmap/connection.js:205
[1] callback(new error_1.MongoServerError(document));
[1] ^
[1]
[1] MongoServerError: Unrecognized pipeline stage name: '$vectorSearch'
[1] at Connection.onMessage (/path-to-project/backend/node_modules/mongodb/lib/cmap/connection.js:205:26)
[1] at MessageStream.<anonymous> (/path-to-project/backend/node_modules/mongodb/lib/cmap/connection.js:64:60)
[1] at MessageStream.emit (node:events:514:28)
[1] at processIncomingData (/path-to-project/backend/node_modules/mongodb/lib/cmap/message_stream.js:117:16)
[1] at MessageStream._write (/path-to-project/backend/node_modules/mongodb/lib/cmap/message_stream.js:33:9)
[1] at writeOrBuffer (node:internal/streams/writable:447:12)
[1] at _write (node:internal/streams/writable:389:10)
[1] at Writable.write (node:internal/streams/writable:393:10)
[1] at Socket.ondata (node:internal/streams/readable:817:22)
[1] at Socket.emit (node:events:514:28)
[1] at addChunk (node:internal/streams/readable:376:12)
[1] at readableAddChunk (node:internal/streams/readable:349:9)
[1] at Readable.push (node:internal/streams/readable:286:10)
[1] at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
[1] ok: 0,
[1] code: 40324,
[1] codeName: 'Location40324',
[1] [Symbol(errorLabels)]: Set(0) {}
[1] }
[1]
[1] Node.js v20.9.0