An integration package connecting GigaChat and LangChain
Project description
langchain-gigachat
This is a library integration with GigaChat.
Installation
pip install -U langchain-gigachat
Quickstart
Follow these simple steps to get up and running quickly.
Installation
To install the package use following command:
pip install -U langchain-gigachat
Initialization
To initialize chat model:
from langchain_gigachat.chat_models import GigaChat
giga = GigaChat(credentials="YOUR_AUTHORIZATION_KEY", verify_ssl_certs=False)
To initialize embeddings:
from langchain_gigachat.embeddings import GigaChatEmbeddings
embedding = GigaChatEmbeddings(
credentials="YOUR_AUTHORIZATION_KEY",
verify_ssl_certs=False
)
Usage
Use the GigaChat object to generate responses:
print(giga.invoke("Hello, world!"))
Now you can use the GigaChat object with LangChain's standard primitives to create LLM-applications.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_gigachat-0.3.13a1.tar.gz.
File metadata
- Download URL: langchain_gigachat-0.3.13a1.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.13.3 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c459e776c65e74bbb852e21f22c8637d3983211294d390f4f526e1b72477829
|
|
| MD5 |
bb221124d289e974ca0b32b42815eea0
|
|
| BLAKE2b-256 |
ffbabdc22697155ae9db4c5c77b17f8716dcd43920e78d75e346f78da59151fa
|
File details
Details for the file langchain_gigachat-0.3.13a1-py3-none-any.whl.
File metadata
- Download URL: langchain_gigachat-0.3.13a1-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.13.3 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d80d85c31bd0768cdcf784d5672d9b10acf96d4b9c7c708ab8be470aef09d602
|
|
| MD5 |
59adad26d1b437bd45a2aa4095e905a4
|
|
| BLAKE2b-256 |
3d2690dbeea0dad976eeb3b4745313ca59d5c1c6f2eb44bee94c0c5a74a65396
|