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.3.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_gigachat-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e5302825fd694de6c2de64e5f21ea249317ab782129f014cb312a87abdff5e00
MD5 53c4a5d6f759a4daad9a3c8ddbb3f050
BLAKE2b-256 647ed595d2d215c93041d8004417ba4ae77bb6a9bc21d8f34e0d8c5a08404037

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_gigachat-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12b8d0c50b2979b1cd1d8595ca2fdc2a00191dc092e4938ef99be6cf8935c957
MD5 707170a1662c5ced29259393e57a20ee
BLAKE2b-256 ae3114bf06fddfca328f6049573c874609785063f5fe0cdb0426f5ee70c6d971

See more details on using hashes here.

Supported by

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