voyage-01
Use the voyage-01 embedding or reranking model with Pinecone: specs and index setup. The highest-quality text embedding model from the first generation of.
voyage-01
Section titled “voyage-01”Overview
Section titled “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
Section titled “Using the model”Installation:
Section titled “Installation:”
pip install -qU voyageai==0.1.3
Creating Embeddings:
Section titled “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