Metadata-Version: 2.4
Name: llama-index-embeddings-yandexgpt
Version: 0.5.0
Summary: llama-index embeddings yandexgpt integration
Author-email: Kirill Kukharev <k.kuharev@uniyar.ac.ru>
License-Expression: MIT
License-File: LICENSE
Requires-Python: <4.0,>=3.10
Requires-Dist: llama-index-core<0.15,>=0.13.0
Requires-Dist: tenacity>=8.3.0
Description-Content-Type: text/markdown

# LlamaIndex Embeddings Integration: YandexGPT

YandexGPT Embeddings provides text embedding service using the Yandex Cloud API. It supports both synchronous and asynchronous methods for embedding texts and documents(queries), making it flexible and suitable for various applications in natural language processing (NLP) and machine learning.

To learn more about Yandex Cloud API and embedding principles, visit https://yandex.cloud/en/docs/foundation-models/concepts/embeddings

## Installation

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

## Usage

```python
from llama_index.embeddings.yandexgpt import YandexGPTEmbedding
```

**Initialization Parameters:**

- `api_key`: The API key for Yandex Cloud. This key is required for authenticating requests.
- `folder_id`: The folder ID for Yandex Cloud.

```python
embeddings = YandexGPTEmbedding(
    api_key="your-api-key",
    folder_id="your-folder-id",
)
```

## Example

See the [example notebook](../../../docs/examples/embeddings/yandexgpt.ipynb) for a detailed walkthrough of using YandexGPT embeddings with LlamaIndex.
