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.1.5.tar.gz
(10.1 kB
view details)
Built Distribution
File details
Details for the file langchain_together-0.1.5.tar.gz
.
File metadata
- Download URL: langchain_together-0.1.5.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 049aae10eece64b83fa4bd6047571c3524efaa7f53a73968857c89748792ae59 |
|
MD5 | 1c3566d1e9b7e567997a0c59d230823d |
|
BLAKE2b-256 | 5d98c4b8d3de6390461074a5297896d35a648130eac520107cc51714203ac505 |
File details
Details for the file langchain_together-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: langchain_together-0.1.5-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 785e625adab8334a49a02af5893ef1e4d4affc4e90cd29b92da7265d5dbb41f3 |
|
MD5 | 172abd61b8410e134eb193fda83416a9 |
|
BLAKE2b-256 | f77ba97b705deb541030a37380c0b6167c1310e4569766a5cc9c5675ff3068e6 |