Skip to main content

An integration package connecting Together AI and LangChain

Project description

langchain-together

This package contains the LangChain integrations for Together AI through their APIs.

Installation and Setup

  • Install the LangChain partner package
pip install -U langchain-together
  • Get your Together AI api key from the Together Dashboard and set it as an environment variable (TOGETHER_API_KEY)

Chat Completions

This package contains the ChatTogether class, which is the recommended way to interface with Together AI chat models.

ADD USAGE EXAMPLE HERE. Can we add this in the langchain docs?

NEED to add image endpoint + completions endpoint as well

Embeddings

See a usage example

Use togethercomputer/m2-bert-80M-8k-retrieval as the default model for embeddings.

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_together-0.2.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

langchain_together-0.2.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file langchain_together-0.2.0.tar.gz.

File metadata

  • Download URL: langchain_together-0.2.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for langchain_together-0.2.0.tar.gz
Algorithm Hash digest
SHA256 39656451179e9c10dffa3a84642855d3ca23f7c01848953765adc30b08d276cc
MD5 3aaa9c73ad49bccddcf7d5c45d4752cc
BLAKE2b-256 f2d3f1e3307e571c19407053648e98f1a3e51e1916c3ee8db4d424ba05d0f33e

See more details on using hashes here.

File details

Details for the file langchain_together-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_together-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ed3c20804d9d437bacfb5b494a85c0a8aca0eca223cc2575b5d368420ca2c9f
MD5 2a1dbed146b2b4d828d5badc5ddc94d2
BLAKE2b-256 535048c47e72a2b2e87d943d090f7693744ebb0ffe983962571da08cace3d5be

See more details on using hashes here.

Supported by

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