Skip to main content

Voyage AI

The VoyageEmbeddings class uses the Voyage AI REST API to generate embeddings for a given text.

import { VoyageEmbeddings } from "langchain/embeddings/voyage";

const embeddings = new VoyageEmbeddings({
apiKey: "YOUR-API-KEY", // In Node.js defaults to process.env.VOYAGEAI_API_KEY
});

Help us out by providing feedback on this documentation page: