Skip to main content
Open on GitHub

Oracle Cloud Infrastructure (OCI)

与 Oracle Cloud Infrastructure 相关的 LangChain 集成。

OCI Generative AI​

Oracle Cloud Infrastructure (OCI) Generative AI 是一项全托管服务,提供一系列最先进、可定制的大型语言模型 (LLM),涵盖广泛的用例,可通过单一 API 访问。 使用 OCI Generative AI 服务,您可以访问即用型预训练模型,或者在专用 AI 集群上基于您自己的数据创建和托管您自己的微调自定义模型。

要使用,您应该安装最新的 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 Data Science Model Deployment Endpoint​

OCI Data Science 是一个 面向数据科学团队的全托管无服务器平台。使用 OCI Data Science 平台,您可以构建、训练和管理机器学习模型,然后使用 OCI Data Science Model Deployment Service 将它们部署为 OCI Model Deployment Endpoint。

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

pip install -U oracle-ads

请参阅 聊天 和 补全 用法示例。

from langchain_community.chat_models import ChatOCIModelDeployment

from langchain_community.llms import OCIModelDeploymentLLM