Skip to main content

An integration package connecting VoyageAI and LangChain

Project description

langchain-voyageai

This package contains the LangChain integrations for VoyageAI through their voyageai client package.

Installation and Setup

  • Install the LangChain partner package
pip install langchain-voyageai
  • Get an VoyageAI api key and set it as an environment variable (VOYAGE_API_KEY) or use the API key as a parameter in the Client.

Text Embedding Model

See a usage example

from langchain_voyageai import VoyageAIEmbeddings

Custom API Endpoint

You can specify a custom API endpoint using the base_url parameter:

embeddings = VoyageAIEmbeddings(
    model="voyage-3.5",
    base_url="https://ai.mongodb.com/v1"
)

This is useful for MongoDB Atlas users or custom deployments.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_voyageai-0.3.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_voyageai-0.3.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file langchain_voyageai-0.3.1.tar.gz.

File metadata

  • Download URL: langchain_voyageai-0.3.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for langchain_voyageai-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0ed441248e8b4e7134cc0b48990e9ee3b2aef33de81addea03fe7f7734e052d6
MD5 159a15d915637c2f83fb4c331ed06657
BLAKE2b-256 4ed9e3cd550630428fcc9087a644feec0c1a93ebb78ccdb8fde93ce17163b7ec

See more details on using hashes here.

File details

Details for the file langchain_voyageai-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_voyageai-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf107fd414044ba79244a5464a2840200ed4398254ca5cb17fa0b56004feb481
MD5 88b4dd50d45919473e1f81d020c3a130
BLAKE2b-256 a1608e894fdcd8ad76c2334abcdf0c5b4ec2b720fcccd26ba8e5d9811960f13a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page