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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for llama_index_embeddings_gigachat-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81e68ea25b116d54a173054b5a4c6169ba06b8a66d3f4d364f8bd6194ce7d424 |
|
MD5 | 0511d1d2d818b6f1ebbec8f51bd68f7d |
|
BLAKE2b-256 | 07ecb2401c529acfe0dea905952f9eb070c503159ab9aa5ab6ff08edb5effd38 |
Close
Hashes for llama_index_embeddings_gigachat-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12789e92cb0fdbebd146de96b460732284a4be857a2c3ff14d39715b5ccd130e |
|
MD5 | 311bb63d49401c8bd74601227bc59e1b |
|
BLAKE2b-256 | 24ad6eb897a2977b9e6282e8a09da58b51488cb818c9a1bf2f81d6d129ee7c79 |