| Name | Type | Description |
|---|---|---|
text* | string |
Generates an embedding for a single text.
A string to generate an embedding for.
const embeddings = new MixedbreadAIEmbeddings({ apiKey: 'your-api-key' });
const text = "Represent this sentence for searching relevant passages: Is baking bread fun?";
const result = await embeddings.embedQuery(text);
console.log(result);