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
Built Distribution
File details
Details for the file llama_index_embeddings_gigachat-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_embeddings_gigachat-0.3.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5302825fd694de6c2de64e5f21ea249317ab782129f014cb312a87abdff5e00 |
|
MD5 | 53c4a5d6f759a4daad9a3c8ddbb3f050 |
|
BLAKE2b-256 | 647ed595d2d215c93041d8004417ba4ae77bb6a9bc21d8f34e0d8c5a08404037 |
File details
Details for the file llama_index_embeddings_gigachat-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_embeddings_gigachat-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12b8d0c50b2979b1cd1d8595ca2fdc2a00191dc092e4938ef99be6cf8935c957 |
|
MD5 | 707170a1662c5ced29259393e57a20ee |
|
BLAKE2b-256 | ae3114bf06fddfca328f6049573c874609785063f5fe0cdb0426f5ee70c6d971 |