langchain/libs/partners/together
wenngong af620db9c7
partners: add lint docstrings for azure-dynamic-sessions/together modules (#23303)
Description: add lint docstrings for azure-dynamic-sessions/together
modules
Issue: #23188 @baskaryan

test: ruff check passed.
<img width="782" alt="image"
src="https://github.com/langchain-ai/langchain/assets/76683249/bf11783d-65b3-4e56-a563-255eae89a3e4">

---------

Co-authored-by: gongwn1 <gongwn1@lenovo.com>
2024-06-24 16:26:54 -04:00
..
langchain_together partners: add lint docstrings for azure-dynamic-sessions/together modules (#23303) 2024-06-24 16:26:54 -04:00
scripts partners: add lint docstrings for azure-dynamic-sessions/together modules (#23303) 2024-06-24 16:26:54 -04:00
tests standard-tests[patch]: Update chat model standard tests (#22378) 2024-06-17 13:37:41 -07:00
.gitignore
LICENSE together: add chat models, use openai base (#21337) 2024-05-06 17:47:06 -07:00
Makefile together: add chat models, use openai base (#21337) 2024-05-06 17:47:06 -07:00
poetry.lock partners: add lint docstrings for azure-dynamic-sessions/together modules (#23303) 2024-06-24 16:26:54 -04:00
pyproject.toml partners: add lint docstrings for azure-dynamic-sessions/together modules (#23303) 2024-06-24 16:26:54 -04:00
README.md together: add chat models, use openai base (#21337) 2024-05-06 17:47:06 -07:00

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.