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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_together-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 7e0a6df01a2cd548cb29f299e69cdb1c151bb56220832308426f2ef6b34e1f97
MD5 ef420773dd5e493eef951e4b6b2d0c78
BLAKE2b-256 654b6ca9df56f63505c3c42706cd104207aeb5d6f9082b46c8481657acccf8f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_together-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 86ba78fdc6fc5d3cf2c615e4ceef8d07fe66e41b73f9d29996605bad0e301ad2
MD5 54e610f8d05fd1285e998f6c17e4144a
BLAKE2b-256 9b5e6ac267fb6dd76ada891b2dd46575d0f7d6c85fb843f2a2867435f593d1c7

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