# Oracle Cloud Infrastructure (OCI)

The `LangChain` integrations related to [Oracle Cloud Infrastructure](https://www.oracle.com/artificial-intelligence/).

## LLMs

### 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. 

To use, you should have the latest `oci` python SDK installed.

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

See [usage examples](/docs/integrations/llms/oci_generative_ai).

```python
from langchain_community.llms import OCIGenAI
```

### OCI Data Science Model Deployment Endpoint

> [OCI Data Science](https://docs.oracle.com/en-us/iaas/data-science/using/home.htm) is a
> fully managed and serverless platform for data science teams. Using the OCI Data Science
> platform you can build, train, and manage machine learning models, and then deploy them
> as an OCI Model Deployment Endpoint using the
> [OCI Data Science Model Deployment Service](https://docs.oracle.com/en-us/iaas/data-science/using/model-dep-about.htm).

If you deployed a LLM with the VLLM or TGI framework, you can use the
`OCIModelDeploymentVLLM` or `OCIModelDeploymentTGI` classes to interact with it.

To use, you should have the latest `oracle-ads` python SDK installed.

```bash
pip install -U oracle-ads
```

See [usage examples](/docs/integrations/llms/oci_model_deployment_endpoint).

```python
from langchain_community.llms import OCIModelDeploymentVLLM

from langchain_community.llms import OCIModelDeploymentTGI
```

## Text Embedding Models

### OCI Generative AI

See [usage examples](/docs/integrations/text_embedding/oci_generative_ai).

```python
from langchain_community.embeddings import OCIGenAIEmbeddings
```