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.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fff5270870f94b862e8568a21fcc81276a345a84369c2f7b3794da76142d8367 |
|
MD5 | 26fbab712f5b83745f90f9f462b4ad6d |
|
BLAKE2b-256 | e49baa93a976018dcafe7e841d8f2365efe13b8e15b67e591812e4211836b2f8 |
Close
Hashes for llama_index_embeddings_gigachat-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86b18f9c4f883f113e0db7db9de36d0cc918974e70a0b24da010989d45affb40 |
|
MD5 | 3004d87eb90ed525e30a0d47aa294143 |
|
BLAKE2b-256 | 719220659ae1eedc98b5b0d0e1103ff45be00b1a05bb70f56571372009fe87ca |