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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d0a293146c3ed2df426a3b583ccd881e23de7e8d0af595ea93fa37e8cba4a3f |
|
MD5 | a7b34643ad7b56c8fc89da01a536d2fd |
|
BLAKE2b-256 | 8f6d9383d6c4152075e017eb887add21d9f554951485a93ac78d67e122cdbcfe |
Close
Hashes for llama_index_embeddings_gigachat-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4c1a4f686429a8507b58226b109477cf26cc0d41b2b2051ae1c2603fd8422ef |
|
MD5 | be87e966df5b0486f639e8b06e453059 |
|
BLAKE2b-256 | e1cd229508b84c61d0774ea62d488655c058f22f6b442157fb0f1cb8d8715c61 |