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'const sdk = new Bytez("BYTEZ_KEY");const model = sdk.model("sentence-transformers/all-MiniLM-L6-v2");await model.create()const { error, output } = await model.run("Turn this sentence into a vector");console.log({ error, output })