Skip to main content

Together AI

The Together API makes it easy to fine-tune or run leading open-source models with a couple lines of code. We have integrated the world’s leading open-source models, including Llama-2, RedPajama, Falcon, Alpaca, Stable Diffusion XL, and more. Read more: https://together.ai

To use, you’ll need an API key which you can find here: https://api.together.xyz/settings/api-keys. This can be passed in as init param together_api_key or set as environment variable TOGETHER_API_KEY.

Together API reference: https://docs.together.ai/reference/inference

You will also need to install the langchain-together integration package:

%pip install --upgrade --quiet langchain-together
from __module_name__ import (
Together, # LLM
TogetherEmbeddings,
)

See the docs for their