Skip to main content

llama-index embeddings gigachat integration

Project description

LlamaIndex Embeddings Integration: GigaChat

GigaChat Embedding provides a way to generate embeddings for text and documents using the GigaChat API within the llama_index library.

To learn more about GigaChat and embedding principles, visit https://developers.sber.ru/docs/ru/gigachat/api/embeddings?tool=api

Installation

pip install gigachat
pip install llama-index-embeddings-gigachat

Usage

from llama_index.embeddings.gigachat import GigaChatEmbedding

Initialization Parameters:

  • auth_data: GigaChat authentication data.
  • scope: The scope of your GigaChat API access. Use "GIGACHAT_API_PERS" for personal use or "GIGACHAT_API_CORP" for corporate use.
embeddings = GigaChatEmbedding(
    auth_data="YOUR_AUTH_DATA",
    scope="GIGACHAT_API_CORP",
)

Example

See the example notebook for a detailed walkthrough of using GigaChat embeddings with LlamaIndex.

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

llama_index_embeddings_gigachat-0.5.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file llama_index_embeddings_gigachat-0.5.0.tar.gz.

File metadata

  • Download URL: llama_index_embeddings_gigachat-0.5.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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":true}

File hashes

Hashes for llama_index_embeddings_gigachat-0.5.0.tar.gz
Algorithm Hash digest
SHA256 178adcc7eb824c5ece620a9be7fffc1710fb4d882bac5378d61910940cd7501d
MD5 59e53641a6271ea1b20a126c051306e1
BLAKE2b-256 ea3dbbd6aa47530df173303eab4c4b86c8c64d8660117d4c52afb090f55501ba

See more details on using hashes here.

File details

Details for the file llama_index_embeddings_gigachat-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_embeddings_gigachat-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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":true}

File hashes

Hashes for llama_index_embeddings_gigachat-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccdf85fad3618dc1f052a1ad987616c5cb14ba97ce17e55a1e8e529990147488
MD5 3219b051262a26cab01e25ae40f80516
BLAKE2b-256 5682ddd1b24281e8d77941434364386c548c75ba8939ec37dff5105fb85ed378

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