Calling Nearest Neighbor Search from Typescript v2

Hello,

I am in the process of testing our functions to use typescript osdk v2, and I ran into an issue trying to call a knn search from the new library. When I open up the object definition in the osdk library I do not see the vector definition property, nor do I see the option to see the function nearestNeighbors as a property of ObjectSet.

I know for the osdk v1 I had to add “enableVectorProperties”: true to the function.json, but there is no function.json in the v2 osdk repo. Is this a feature that is yet to be implemented or is there another method to call the knn search from the new osdk v2 library.

Hi @intl_shyam ,

Currently the TypeScript OSDK 2.0 in Functions does not support KNN search. You will need to use the v1 repository template for this.

Is there a timeline of when the feature should be expected for the osdk v2 library?