Metadata-Version: 2.1
Name: llama-index-embeddings-oci-genai
Version: 0.2.0
Summary: llama-index embeddings oci-genai integration
License: MIT
Author: Arthur Cheng
Author-email: arthur.cheng@oracle.com
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: llama-index-core (>=0.11.0,<0.12.0)
Requires-Dist: oci (>=2.125.3)
Description-Content-Type: text/markdown

# LlamaIndex Embeddings Integration: Oracle Cloud Infrastructure (OCI) Generative AI

> Oracle Cloud Infrastructure (OCI) [Generative AI](https://docs.oracle.com/en-us/iaas/Content/generative-ai/home.htm) is a fully managed service that provides a set of state-of-the-art,
> customizable large language models (LLMs) that cover a wide range of use cases, and which are available through a single API.
> Using the OCI Generative AI service you can access ready-to-use pretrained models, or create and host your own fine-tuned
> custom models based on your own data on dedicated AI clusters.

## Installation

```bash
pip install llama-index-embeddings-oci-genai
```

You will also need to install the OCI sdk

```bash
pip install -U oci
```

## Usage

```bash
from llama_index.embeddings.oci_genai import OCIGenAIEmbeddings

embedding = OCIGenAIEmbeddings(
    model_name="MY_MODEL",
    service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com",
    compartment_id="MY_OCID",
)
```

