Lorem Ipsum
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.
Was this page helpful?
⌘I
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🎉 New: Standard and Enterprise orgs get a one-time $250 bulk import credit (1 TB), through July 31, 2026. See details
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.
pip install -qU voyageai==0.1.3
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)
Was this page helpful?