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
ccurme cb95198398
standard-tests[patch]: add tests for runnables as tools and streaming usage metadata (#24153)
2 months ago
..
langchain_together partners: add lint docstrings for azure-dynamic-sessions/together modules (#23303) 3 months ago
scripts partners: add lint docstrings for azure-dynamic-sessions/together modules (#23303) 3 months ago
tests standard-tests[patch]: add tests for runnables as tools and streaming usage metadata (#24153) 2 months ago
.gitignore
LICENSE
Makefile infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
README.md
poetry.lock infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
pyproject.toml infra: update mypy 1.10, ruff 0.5 (#23721) 3 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.