# langchain-together
This package contains the LangChain integrations for [Together AI](https://www.together.ai/) through their [APIs](https://docs.together.ai/).
## Installation and Setup
- Install the LangChain partner package
```bash
pip install -U langchain-together
```
- Get your Together AI api key from the [Together Dashboard](https://api.together.ai/settings/api-keys) 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](https://python.langchain.com/docs/integrations/text_embedding/together/)
Use `togethercomputer/m2-bert-80M-8k-retrieval` as the default model for embeddings.
Raw data
{
"_id": null,
"home_page": "https://github.com/langchain-ai/langchain-together",
"name": "langchain-together",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/24/c4/64b92524121eaf4e805ade7ea68e71d52eab5e8fdad9b6b8e62f5a99eff4/langchain_together-0.3.0.tar.gz",
"platform": null,
"description": "# langchain-together\n\nThis package contains the LangChain integrations for [Together AI](https://www.together.ai/) through their [APIs](https://docs.together.ai/).\n\n## Installation and Setup\n\n- Install the LangChain partner package\n\n```bash\npip install -U langchain-together\n```\n\n- Get your Together AI api key from the [Together Dashboard](https://api.together.ai/settings/api-keys) and set it as an environment variable (`TOGETHER_API_KEY`)\n\n## Chat Completions\n\nThis package contains the `ChatTogether` class, which is the recommended way to interface with Together AI chat models.\n\nADD USAGE EXAMPLE HERE.\nCan we add this in the langchain docs?\n\nNEED to add image endpoint + completions endpoint as well\n\n## Embeddings\n\nSee a [usage example](https://python.langchain.com/docs/integrations/text_embedding/together/)\n\nUse `togethercomputer/m2-bert-80M-8k-retrieval` as the default model for embeddings.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "An integration package connecting Together AI and LangChain",
"version": "0.3.0",
"project_urls": {
"Homepage": "https://github.com/langchain-ai/langchain-together",
"Release Notes": "https://github.com/langchain-ai/langchain-together/releases",
"Repository": "https://github.com/langchain-ai/langchain-together",
"Source Code": "https://github.com/langchain-ai/langchain-together/tree/main/libs/together"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a869b3cbcf5b43acbc098c012ef75035fb0dc1e0f227f5161329ef9884a25ba4",
"md5": "163bb9fe37193868b4df0ec34b9ce16b",
"sha256": "4dcb4f6858c910c23d2268da1ed5f54e8cd01224ecf086dc7a8adbacdc6cb686"
},
"downloads": -1,
"filename": "langchain_together-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "163bb9fe37193868b4df0ec34b9ce16b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 12338,
"upload_time": "2025-01-10T17:06:06",
"upload_time_iso_8601": "2025-01-10T17:06:06.678151Z",
"url": "https://files.pythonhosted.org/packages/a8/69/b3cbcf5b43acbc098c012ef75035fb0dc1e0f227f5161329ef9884a25ba4/langchain_together-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "24c464b92524121eaf4e805ade7ea68e71d52eab5e8fdad9b6b8e62f5a99eff4",
"md5": "456255c6f9ffaeb5c3a2f694d77164ad",
"sha256": "c8a96377e49c065526435f766c6e1c7da3f7d054361326f079de8bd368ea76f2"
},
"downloads": -1,
"filename": "langchain_together-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "456255c6f9ffaeb5c3a2f694d77164ad",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 10247,
"upload_time": "2025-01-10T17:06:08",
"upload_time_iso_8601": "2025-01-10T17:06:08.729891Z",
"url": "https://files.pythonhosted.org/packages/24/c4/64b92524121eaf4e805ade7ea68e71d52eab5e8fdad9b6b8e62f5a99eff4/langchain_together-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-10 17:06:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "langchain-ai",
"github_project": "langchain-together",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "langchain-together"
}