Measure how similar two sentences are for applications like duplicate question detection, paraphrase detection, and text clustering
Basic usage
Send sentences to generate embeddings so you can compare their similarity
Copy
import Bytez from 'bytez.js';// insert your keyconst sdk = new Bytez('BYTEZ_KEY');// choose your modelconst model = sdk.model('sentence-transformers/all-MiniLM-L6-v2');// provide the model with inputconst input = "Turn this sentence into a vector";// send to the modelconst { error, output } = await model.run(input);// observe the outputconsole.log({ error, output });