Closed V1laZ closed 3 weeks ago
Describe the bug When calling the vectorize query function without the second 'params' argument it throws a Zod validation error.
query
Steps to reproduce
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.
.optional()
Workaround hubVectorize('<index>').query([32.4, 6.55, 11.2, 10.3, 87.9], {})
hubVectorize('<index>').query([32.4, 6.55, 11.2, 10.3, 87.9], {})
Describe the bug When calling the vectorize
query
function without the second 'params' argument it throws a Zod validation error.Steps to reproduce
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'squery
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], {})