Skip to main content
Open on GitHub

Oracle Cloud Infrastructure (OCI)

Oracle 云基础设施相关的LangChain个集成。

OCI 生成式人工智能

Oracle Cloud Infrastructure (OCI) Generative AI 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.

要使用,您应该安装最新的 oci Python SDK 和 langchain_community 包。

pip install -U oci langchain-community

查看聊天补全嵌入的使用示例。

from langchain_community.chat_models import ChatOCIGenAI

from langchain_community.llms import OCIGenAI

from langchain_community.embeddings import OCIGenAIEmbeddings

OCI 数据科学模型部署端点

OCI Data Science 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.

要使用,您应该安装最新的 oracle-ads Python SDK。

pip install -U oracle-ads

查看聊天补全的使用示例。

from langchain_community.chat_models import ChatOCIModelDeployment

from langchain_community.llms import OCIModelDeploymentLLM