An integration package connecting Together AI and LangChain
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
langchain_together-0.2.0.tar.gz
(10.3 kB
view details)
Built Distribution
File details
Details for the file langchain_together-0.2.0.tar.gz
.
File metadata
- Download URL: langchain_together-0.2.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39656451179e9c10dffa3a84642855d3ca23f7c01848953765adc30b08d276cc |
|
MD5 | 3aaa9c73ad49bccddcf7d5c45d4752cc |
|
BLAKE2b-256 | f2d3f1e3307e571c19407053648e98f1a3e51e1916c3ee8db4d424ba05d0f33e |
File details
Details for the file langchain_together-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: langchain_together-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ed3c20804d9d437bacfb5b494a85c0a8aca0eca223cc2575b5d368420ca2c9f |
|
MD5 | 2a1dbed146b2b4d828d5badc5ddc94d2 |
|
BLAKE2b-256 | 535048c47e72a2b2e87d943d090f7693744ebb0ffe983962571da08cace3d5be |