langchain/libs/partners/together
ZhangShenao 2c3e3dc6b1
patch[Partners] Unified fix of incorrect variable declarations in all check_imports (#25014)
There are some incorrect declarations of variable `has_failure` in
check_imports. The purpose of this PR is to uniformly fix these errors.
2024-08-03 13:49:41 -04:00
..
langchain_together docs: fix kwargs docstring (#25010) 2024-08-02 19:54:54 -07:00
scripts patch[Partners] Unified fix of incorrect variable declarations in all check_imports (#25014) 2024-08-03 13:49:41 -04:00
tests together: Add rate limiter to integration tests (#24714) 2024-07-26 10:59:33 -04:00
.gitignore together: package and embedding model (#14936) 2023-12-19 18:48:32 -08:00
LICENSE together: add chat models, use openai base (#21337) 2024-05-06 17:47:06 -07:00
Makefile infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
poetry.lock integrations[patch]: release model packages (#24900) 2024-07-31 20:48:20 +00:00
pyproject.toml integrations[patch]: release model packages (#24900) 2024-07-31 20:48:20 +00: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.