Availble models
Voyage has a collection of specialized models for embedding text from different domains: financial, legal (and large documents), code and medical. It also has highly ranked general embedding model that can be used for a variety of tasks, a general model that is optimized for retrieval, and a smaller cost-efficient retrieval model. We included a subset here for reference:Usage
Voyage has a Python, but not a Javascript, SDK. Their REST API is almost compatible with OpenAI’s API, but unfortunately, their powerful general purpose model,voyage-large-2-instruct requires inputType parameter,
which is not supported by OpenAI’s SDK. Fortunately, LangChain has a nice community-contributed JS library for Voyage,
which supports the inputType parameter. So we are going to use the LangChain community library in the example below.