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.4.0b2.tar.gz (21.9 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.4.0b2-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file langchain_gigachat-0.4.0b2.tar.gz.

File metadata

  • Download URL: langchain_gigachat-0.4.0b2.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for langchain_gigachat-0.4.0b2.tar.gz
Algorithm Hash digest
SHA256 e345a117bc211a36f793c8831e2c89a1c022a763fb9b72f65dbfec89f90b71ad
MD5 cc18d224549cef59b059b8659592d138
BLAKE2b-256 1c44dc3402041a508f4fe0fad28e10140b27b57b43d08aa0a9865ffc5e82b371

See more details on using hashes here.

File details

Details for the file langchain_gigachat-0.4.0b2-py3-none-any.whl.

File metadata

  • Download URL: langchain_gigachat-0.4.0b2-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for langchain_gigachat-0.4.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 ce94d9ccd2d732fb6043246f55f69d61c53e8e31d934663a8b03d0d3401f2f8d
MD5 6cf56f4e754b552eb70932ffd198a1bf
BLAKE2b-256 dfe26cac516b22e1b2431004ab4c59ae08b77090952c27b05b265e10c8658b83

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