Skip to main content
Pinecone Docs

Search documentation

Type to search this documentation.

voyage-lite-02-instruct

Use the voyage-lite-02-instruct embedding or reranking model with Pinecone: specs and index setup. The base-size text embedding model from the second.

```python theme={null}

pip install -qU voyageai==0.2.1

```

#### Creating Embeddings:

```python theme={null}

import voyageai
voyageai.api_key = "YOUR_VOYAGE_API_KEY"
model_id = "voyage-02-lite-instruct"

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