Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
在 Vercel AI SDK 中使用 Phaseo 提供商模型创建嵌入。
phaseo.embeddingModel(modelId)
textEmbeddingModel
embed
embedMany
/v1/embeddings
import { phaseo } from "@phaseo/ai-sdk-provider"; import { embed, embedMany } from "ai"; const single = await embed({ model: phaseo.textEmbeddingModel("google/gemini-embedding-001"), value: "Embeddings power semantic search.", }); console.log(single.embedding.length); const batch = await embedMany({ model: phaseo.textEmbeddingModel("google/gemini-embedding-001"), values: ["pricing", "latency", "quality"], }); console.log(batch.embeddings.length);
此页面对您有帮助吗?