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
Built Distribution
File details
Details for the file langchain_together-0.1.3.tar.gz
.
File metadata
- Download URL: langchain_together-0.1.3.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64bd3117efa552376c6b6fbc6df8e64e14244f12b10ee7d4222e50972a586628 |
|
MD5 | b4a66a196316daf369df9ba888037f53 |
|
BLAKE2b-256 | 0d721cb585c9c3391f1933de07d5704f0a3bf4b7541c18f622192e99f079f3ae |
File details
Details for the file langchain_together-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: langchain_together-0.1.3-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2593b0cb840a79388783caa2643599a7aa57c3d11770b1cfe49e66f84a54ff61 |
|
MD5 | b6c10302d517abdbd09f8ed769d6d735 |
|
BLAKE2b-256 | 6d91ced56dec434cdcba4ea3f701a9c659bdc2da86f47c425ce27770d729dd3e |