Skip to main content

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.

Metadata

Release files for gigachain-together 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gigachain-together 0.1.5
File Size Uploaded
gigachain_together-0.1.5.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gigachain-together 0.1.5
File Interpreter ABI Platform
gigachain_together-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 22.1 kB

Release files / gigachain_together-0.1.5.tar.gz

Download URL gigachain_together-0.1.5.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
afaba9b7b990b1b198c06ffc02f163e94cfcc4dfce4bce0ebba575ae5bf337bc
BLAKE2b-256 checksum
How to use checksums
511152c2a16ab46784cd5479ffeebe2bc20de58bed80055f7a99189c67013082
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.6 Darwin/23.5.0

Release files / gigachain_together-0.1.5-py3-none-any.whl

Download URL gigachain_together-0.1.5-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
127c507221da1e711ababb24cfa9931830ede5b1de0995b2b0d460c905eab61a
BLAKE2b-256 checksum
How to use checksums
7e2367c547423f881178c5a2f96c6489ddb5dcaa88e23b469fa13690935a077e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.6 Darwin/23.5.0

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page