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

Uploaded Source

Built Distribution

langchain_together-0.1.4-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_together-0.1.4.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for langchain_together-0.1.4.tar.gz
Algorithm Hash digest
SHA256 fddcc5ccb18321c60df05f79f10c35318674ac2f97ff2e69e1455d988f83e350
MD5 1487f3116f2f2fc2b28b4215d2167fd3
BLAKE2b-256 0495388739fe1153f4aea99e9e8c5fbb6c2074600e5abee543d51f4f5830fa4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_together-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 41750e87cb253ee7b8e1cb757f56b178b101944cfa2bb4759aa74a7b3edd3f12
MD5 977b419fb58090068bd06cb79832b3a7
BLAKE2b-256 861631a60af321ecb72cb816ec11860d12ca8a1849e0a03c6ab39a521a24f25d

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