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

File metadata

File hashes

Hashes for llama_index_embeddings_gigachat-0.4.0.tar.gz
Algorithm Hash digest
SHA256 af4880c24f834386f0caf1182998093a21412dfc870a00621c9ec66e60f56b51
MD5 290f44010b693d2e9b6d71b96cc6439a
BLAKE2b-256 7bebdecd7a45aaab1326b6e885354271918b7b66099305001a600ccded498a0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_gigachat-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4594e106ef7b2f4e756284cebfbcf6e98a4ed5747ffb353fdc9bfce155389b7a
MD5 be78f05ccfb7c1aa3d8a8040d43850bc
BLAKE2b-256 c9db720c6636e7d94e341dbe05ff4adaffa0cbfa8e598c0c5e2e70482d8c2b56

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