qdrant / qdrant-js

JavaScript/Typescript SDK for Qdrant Vector Database
https://qdrant.tech
Apache License 2.0
258 stars 25 forks source link

how to encode str with nodejs? #75

Closed wszgrcy closed 5 months ago

wszgrcy commented 5 months ago

I checked the official examples: https://github.com/qdrant/qdrant-js/blob/master/examples/node-js-basic/index.js But the document does not show how the vector value was obtained. Can an interface be provided to load the 'all MiniLM-L6-v2' model? (Transformers has a JS version @xenova/transformers but still requires torch https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2)

roysG commented 5 months ago

Same issue

roysG commented 5 months ago

@wszgrcy, how did you solved it?

wszgrcy commented 5 months ago

@wszgrcy, how did you solved it?

use @xenova/transformers pipeline