Describe the bug
When calling the vectorize query function without the second 'params' argument it throws a Zod validation error.
Steps to reproduce
- Call
hubVectorize('<index>').query([32.4, 6.55, 11.2, 10.3, 87.9])
Expected behavior
There's probably a missing .optional() method at the end of the params schema definition in Vectorize's query command. According to the docs it should be possible to call the function without the second argument.
Workaround
hubVectorize('<index>').query([32.4, 6.55, 11.2, 10.3, 87.9], {})