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.4.1.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.4.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_embeddings_gigachat-0.4.1.tar.gz
Algorithm Hash digest
SHA256 cf91e855997dec381074fd094cf45cbf745b50259df9baa15a4814a498a6a087
MD5 a33d5b0b6f114569dd51e2172aab1f01
BLAKE2b-256 46cfa591cd31e73d0cdf4528be2361bacf97ae1c55c8eaddf8e1bf02c8f87a7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_gigachat-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6357134a3815ad570ad2c32ba2c5b82e2e0ad71f17dcec381ed9919c4fa26595
MD5 b89fa2b88aec043e2eb3f23b54e14dbe
BLAKE2b-256 7d2ea6f66b889288145da114a10e789f30b7d96025c038500afb5362c3552d7f

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