langchain/libs/partners/together
2024-08-28 02:01:49 -07:00
..
langchain_together together[patch]: update base url (#25524) 2024-08-18 10:48:30 -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[patch]: use mixtral in standard integration tests (#25619) 2024-08-21 14:26:25 +00:00
.gitignore
LICENSE
Makefile all: Improve make lint command (#25344) 2024-08-23 18:23:52 -07:00
poetry.lock together[patch]: Release 0.1.6 (#25805) 2024-08-28 02:01:49 -07:00
pyproject.toml together[patch]: Release 0.1.6 (#25805) 2024-08-28 02:01:49 -07:00
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.