Metadata-Version: 2.1
Name: llama-index-embeddings-gigachat
Version: 0.1.5
Summary: llama-index embeddings gigachat integration
License: MIT
Author: Kirill Kukharev
Author-email: lepeshokoff200@mail.ru
Requires-Python: >=3.8.1,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: gigachat (==0.1.28)
Requires-Dist: llama-index-core (>=0.10.1,<0.11.0)
Description-Content-Type: text/markdown

# 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

```bash
pip install gigachat
pip install llama-index-embeddings-gigachat
```

## Usage

```python
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.

```python
embeddings = GigaChatEmbedding(
    auth_data="YOUR_AUTH_DATA",
    scope="GIGACHAT_API_CORP",
)
```

## Example

See the [example notebook](https://github.com/run-llama/llama_index/tree/main/docs/docs/examples/embeddings/gigachat.ipynb) for a detailed walkthrough of using GigaChat embeddings with LlamaIndex.

