Skip to main content

An integration package connecting GigaChat and LangChain

Reason this release was yanked:

Use langchain-gigachat-lc1 for LangChain 1.0+ capatibility

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.13a2.tar.gz (23.2 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.13a2-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file langchain_gigachat-0.3.13a2.tar.gz.

File metadata

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

File hashes

Hashes for langchain_gigachat-0.3.13a2.tar.gz
Algorithm Hash digest
SHA256 51efd284201994305eb83d74f65ec607b33e5fe2934cc164ee661de84d8025e1
MD5 67214c1f2c123c13b3b9fda09056b720
BLAKE2b-256 9442ce45191dac4acbfda27cbb13bc819cdfd81cea8aab45646d745dea663280

See more details on using hashes here.

File details

Details for the file langchain_gigachat-0.3.13a2-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_gigachat-0.3.13a2-py3-none-any.whl
Algorithm Hash digest
SHA256 e2bb9f85051548efceed207fc0a7d98346ad0eb363534ae8aba6ae6e7513d443
MD5 1bd79287e7f2369701d81314febe5a61
BLAKE2b-256 3d711901def3d88e4f9f03241eb5f22f3a70884612aab1c222e8bd9b96974745

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