Working with Voyage AI in Pixeltable

Pixeltable's Voyage AI integration enables you to access state-of-the-art embedding and reranker models via the Voyage AI API.

Providers · Notebook · Updated

Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.

What it covers

  • Text embeddings
  • Embedding index for similarity search
  • Reranking
  • Multimodal Embeddings

What it uses

Install
terminal
pip install voyageai
Environment variables it names
VOYAGE_API_KEY
Pixeltable calls
voyageai.embeddings()voyageai.rerank()voyageai.multimodal_embed()pxt.create_table()add_computed_column()insert()add_embedding_index()similarity()

A look at the code

working-with-voyageai.ipynb
from pixeltable.functions import voyageai
# Create a table for document embeddings
docs_t = pxt.create_table('voyageai_demo/documents', {'text': pxt.String})
# Add computed column with Voyage embeddings
docs_t.add_computed_column(
embedding=voyageai.embeddings(
docs_t.text, model='voyage-3.5', input_type='document'
)
)

One cell of the notebook, copied as it is. Open it in Colab for the rest.

Browse all 103