Metadata-Version: 2.1
Name: langchain-together
Version: 0.1.2
Summary: An integration package connecting Together AI and LangChain
Home-page: https://github.com/langchain-ai/langchain
License: MIT
Requires-Python: >=3.8.1,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: aiohttp (>=3.9.1,<4.0.0)
Requires-Dist: langchain-core (>=0.1.52,<0.3)
Requires-Dist: langchain-openai (>=0.1.3,<0.2.0)
Requires-Dist: requests (>=2,<3)
Project-URL: Repository, https://github.com/langchain-ai/langchain
Project-URL: Source Code, https://github.com/langchain-ai/langchain/tree/master/libs/partners/together
Description-Content-Type: text/markdown

# langchain-together

This package contains the LangChain integrations for [Together AI](https://www.together.ai/) through their [APIs](https://docs.together.ai/).

## Installation and Setup

- Install the LangChain partner package

```bash
pip install -U langchain-together
```

- Get your Together AI api key from the [Together Dashboard](https://api.together.ai/settings/api-keys) 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](https://python.langchain.com/docs/integrations/text_embedding/together/)

Use `togethercomputer/m2-bert-80M-8k-retrieval` as the default model for embeddings.

