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

Uploaded Source

Built Distribution

langchain_together-0.1.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_together-0.1.3.tar.gz
  • Upload date:
  • Size: 8.1 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.3.tar.gz
Algorithm Hash digest
SHA256 64bd3117efa552376c6b6fbc6df8e64e14244f12b10ee7d4222e50972a586628
MD5 b4a66a196316daf369df9ba888037f53
BLAKE2b-256 0d721cb585c9c3391f1933de07d5704f0a3bf4b7541c18f622192e99f079f3ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_together-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2593b0cb840a79388783caa2643599a7aa57c3d11770b1cfe49e66f84a54ff61
MD5 b6c10302d517abdbd09f8ed769d6d735
BLAKE2b-256 6d91ced56dec434cdcba4ea3f701a9c659bdc2da86f47c425ce27770d729dd3e

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