# langchain-gigachat
This is a library integration with [GigaChat](https://giga.chat/).
[](https://github.com/ai-forever/langchain-gigachat/releases)
[](https://github.com/ai-forever/langchain-gigachat/actions/workflows/check_diffs.yml)
[](https://opensource.org/license/MIT)
[](https://pypistats.org/packages/langchain-gigachat)
[](https://star-history.com/#ai-forever/langchain-gigachat)
[](https://github.com/ai-forever/langchain-gigachat/issues)
## Installation
```bash
pip install -U langchain-gigachat
```
## Quickstart
Follow these simple steps to get up and running quickly.
### Installation
To install the package use following command:
```shell
pip install -U langchain-gigachat
```
### Initialization
To initialize chat model:
```python
from langchain_gigachat.chat_models import GigaChat
giga = GigaChat(credentials="YOUR_AUTHORIZATION_KEY", verify_ssl_certs=False)
```
To initialize embeddings:
```python
from langchain_gigachat.embeddings import GigaChatEmbeddings
embedding = GigaChatEmbeddings(
credentials="YOUR_AUTHORIZATION_KEY",
verify_ssl_certs=False
)
```
### Usage
Use the GigaChat object to generate responses:
```python
print(giga.invoke("Hello, world!"))
```
Now you can use the GigaChat object with LangChain's standard primitives to create LLM-applications.
Raw data
{
"_id": null,
"home_page": "https://github.com/ai-forever/langchain-gigachat",
"name": "langchain-gigachat",
"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/72/9f/1c0fccdd78b8d6e132230f6fb11196b262375e20789b6c597929a07f5895/langchain_gigachat-0.3.3.tar.gz",
"platform": null,
"description": "# langchain-gigachat\n\nThis is a library integration with [GigaChat](https://giga.chat/).\n\n[](https://github.com/ai-forever/langchain-gigachat/releases)\n[](https://github.com/ai-forever/langchain-gigachat/actions/workflows/check_diffs.yml)\n[](https://opensource.org/license/MIT)\n[](https://pypistats.org/packages/langchain-gigachat)\n[](https://star-history.com/#ai-forever/langchain-gigachat)\n[](https://github.com/ai-forever/langchain-gigachat/issues)\n\n## Installation\n```bash\npip install -U langchain-gigachat\n```\n\n## Quickstart\nFollow these simple steps to get up and running quickly.\n\n### Installation\nTo install the package use following command:\n```shell\npip install -U langchain-gigachat\n```\n\n### Initialization\n\nTo initialize chat model:\n```python\nfrom langchain_gigachat.chat_models import GigaChat\n\ngiga = GigaChat(credentials=\"YOUR_AUTHORIZATION_KEY\", verify_ssl_certs=False)\n```\n\nTo initialize embeddings:\n\n```python\nfrom langchain_gigachat.embeddings import GigaChatEmbeddings\n\nembedding = GigaChatEmbeddings(\n credentials=\"YOUR_AUTHORIZATION_KEY\",\n verify_ssl_certs=False\n)\n```\n\n### Usage\n\nUse the GigaChat object to generate responses:\n\n```python\nprint(giga.invoke(\"Hello, world!\"))\n```\n\nNow you can use the GigaChat object with LangChain's standard primitives to create LLM-applications.",
"bugtrack_url": null,
"license": "MIT",
"summary": "An integration package connecting GigaChat and LangChain",
"version": "0.3.3",
"project_urls": {
"Homepage": "https://github.com/ai-forever/langchain-gigachat",
"Repository": "https://github.com/ai-forever/langchain-gigachat",
"Source Code": "https://github.com/ai-forever/langchain-gigachat/tree/master/libs/gigachat"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8782d485ab5a13bfd4f222f7786d6abdf3f3532a0f27728f9a78720fd6ac2514",
"md5": "4619ca29f4428262220e3703fe1d51bf",
"sha256": "62ae10ef3d37b1fcf32ff15090c6d94eb124b06e8b5241e0d4a98e0ebb019e3f"
},
"downloads": -1,
"filename": "langchain_gigachat-0.3.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4619ca29f4428262220e3703fe1d51bf",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 25377,
"upload_time": "2025-01-15T14:24:54",
"upload_time_iso_8601": "2025-01-15T14:24:54.489728Z",
"url": "https://files.pythonhosted.org/packages/87/82/d485ab5a13bfd4f222f7786d6abdf3f3532a0f27728f9a78720fd6ac2514/langchain_gigachat-0.3.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "729f1c0fccdd78b8d6e132230f6fb11196b262375e20789b6c597929a07f5895",
"md5": "066bf4148ba93f3f67617929100dc963",
"sha256": "54ea59be93050eaee280152fd6b5c896ed50c200e476fd92e4b88d79b5209de7"
},
"downloads": -1,
"filename": "langchain_gigachat-0.3.3.tar.gz",
"has_sig": false,
"md5_digest": "066bf4148ba93f3f67617929100dc963",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 21322,
"upload_time": "2025-01-15T14:24:55",
"upload_time_iso_8601": "2025-01-15T14:24:55.790675Z",
"url": "https://files.pythonhosted.org/packages/72/9f/1c0fccdd78b8d6e132230f6fb11196b262375e20789b6c597929a07f5895/langchain_gigachat-0.3.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-15 14:24:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ai-forever",
"github_project": "langchain-gigachat",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "langchain-gigachat"
}