This PR addressed the below issue, using the examples from @xenova.
Closes #681
Let me know if you'd like any changes to this, perhaps we can make another options object in javascript like a QuantizationOptions so it's obvious which parameters are grouped together logically
I also added a texts === undefined check since I ran into an issue earlier where I was accidentally not passing in any texts and was met with an unfriendly error.
For some reason though I don't get the same similarity numbers as Xenova did on his example but the numbers are at least similar
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
This PR addressed the below issue, using the examples from @xenova.
Closes #681
Let me know if you'd like any changes to this, perhaps we can make another options object in javascript like a QuantizationOptions so it's obvious which parameters are grouped together logically
I also added a texts === undefined check since I ran into an issue earlier where I was accidentally not passing in any texts and was met with an unfriendly error.
For some reason though I don't get the same similarity numbers as Xenova did on his example but the numbers are at least similar
It may also be beneficial to bring in https://github.com/ashvardanian/SimSIMD for this but haven't ran any benchmarks within browser context yet