Skip to main content
Pinecone Docs

Search documentation

Type to search this documentation.

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.

```python theme={null}

pip install -qU voyageai==0.1.3

```

#### Creating Embeddings:

```python theme={null}

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

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu