Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_gigachat-0.3.12.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_gigachat-0.3.12-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file langchain_gigachat-0.3.12.tar.gz.

File metadata

  • Download URL: langchain_gigachat-0.3.12.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.4.0

File hashes

Hashes for langchain_gigachat-0.3.12.tar.gz
Algorithm Hash digest
SHA256 35312a041f56c344e234777bed0c3d5b6e90542d832afbfb225f2728a51a5af5
MD5 8e2f6aeaf54473a62d9c7c9d69f38b85
BLAKE2b-256 924a9e8dfe5073d8364e5f62ec41af9a618d13ffd7edf7bfad1bd6af590ff550

See more details on using hashes here.

File details

Details for the file langchain_gigachat-0.3.12-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_gigachat-0.3.12-py3-none-any.whl
Algorithm Hash digest
SHA256 e7ee809a7e9c2dc8d5339f50c8478cad2bb24829db923b641142b5c1d4d991fe
MD5 8770b34309521592b2b4d21058a7037a
BLAKE2b-256 2a1748e8fa50ac1e8025c6c55c16b47fb2b003619bb8fd47072ea55cce8f01d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page