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.1.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

langchain_together-0.1.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_together-0.1.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for langchain_together-0.1.1.tar.gz
Algorithm Hash digest
SHA256 54e8f27d5bcd70fac1fb6d4fcada2ad779c0d2002750baa85ad3c0a3c9f09834
MD5 13a086fa6bb7e17696bfd9bcab7368d1
BLAKE2b-256 62e88156337e275bea70302e48f9425e0626bffba2eedf6fa28f744c04f3ee5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_together-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d5b82e98190d9b8358d79b5191c4de580fcc006c9faa0f90964cd1c383ce1008
MD5 6b0523d9e2feae89cf40e585e1b2bd8e
BLAKE2b-256 579059a110cfa0cca4973a888dfa39017384e9f85818e614c0a7cb6544ca7f2a

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