I get Error: Update() requires either a single JavaScript object or an alternating list of field/value pairs that can be followed by an optional precondition. Value for argument “dataOrField” is not a valid Firestore document. Couldn’t serialize object of type “VectorValue” (found in field “embedding”). Firestore doesn’t support JavaScript objects with custom prototypes (i.e. objects that were created via the “new” operator).
I am trying to update a doc {embedding: FieldValue.vector(embeddingVector)}
where embeddingVector is [-0.013117947, -0.037503175, -0.0040925546, -0.010280714…]
I followed documentation but error persist
I tried to load a vector value for the “new” Firebase Firestore vector search but getting an update error.