You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/partners/together
Erick Friis c77d2f2b06
multiple: core 0.2 nonbreaking dep, check_diff community->langchain dep (#21646)
0.2 is not a breaking release for core (but it is for langchain and
community)

To keep the core+langchain+community packages in sync at 0.2, we will
relax deps throughout the ecosystem to tolerate `langchain-core` 0.2
4 months ago
..
langchain_together together: fix chat model and embedding classes (#21353) 5 months ago
scripts together: add chat models, use openai base (#21337) 5 months ago
tests together: fix chat model and embedding classes (#21353) 5 months ago
.gitignore together: package and embedding model (#14936) 9 months ago
LICENSE together: add chat models, use openai base (#21337) 5 months ago
Makefile together: add chat models, use openai base (#21337) 5 months ago
README.md together: add chat models, use openai base (#21337) 5 months ago
poetry.lock multiple: core 0.2 nonbreaking dep, check_diff community->langchain dep (#21646) 4 months ago
pyproject.toml multiple: core 0.2 nonbreaking dep, check_diff community->langchain dep (#21646) 4 months ago

README.md

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.