Greetings all.
I have followed the guide on using $vectorSearch. But I cannot find any reference to ObjectId.
How to filter by an ObjectId?
I’ve tried the following but it produces an error:
"filter": {
"location_id": { "$eq": location_id }
}
where location_id is an ObjectId.
The error is the following: “pymongo.errors.OperationFailure: Operand type is not supported for $vectorSearch: objectId”.
Thank you!