voyage-01 | Voyage AI

METRIC

cosine

DIMENSION

1024

MAX INPUT TOKENS

4096

TASK

embedding

Overview

The highest-quality text embedding model from the first generation of Voyage AI models. Access to models is through Python API. You must register for Voyage API keys to access.

Voyage-01 is the largest and most accurate model in the first-gen Voyage family.

Using the model

Installation:


pip install -qU voyageai==0.1.3

Creating Embeddings:


import voyageai
voyageai.api_key = \"<<YOUR_VOYAGE_API_KEY>>\"
model_id = \"voyage-01\"

def embed(docs: list[str]) -> list[list[float]]:
    if len(docs) > 8:
        raise ValueError(\"List of documents cannot be longer than 8\")
    doc_embeds = voyageai.get_embeddings(docs, model=model_id)
    return doc_embeds

doc_embeds = embed(docs)

Lorem Ipsum

Was this page helpful?