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
});