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
请参阅 chat、complete 和 embedding 用法示例。
from langchain_community.chat_models import ChatOCIGenAI
from langchain_community.llms import OCIGenAI
from langchain_community.embeddings import OCIGenAIEmbeddings
OCI Data Science 模型部署端点
OCI Data Science 是一个完全托管的无服务器平台,供数据科学团队使用。使用 OCI Data Science 平台,您可以构建、训练和管理机器学习模型,然后使用 OCI Data Science Model Deployment Service 将它们部署为 OCI 模型部署端点。
要使用,您应该安装最新的 oracle-ads
python SDK。
pip install -U oracle-ads
from langchain_community.chat_models import ChatOCIModelDeployment
from langchain_community.llms import OCIModelDeploymentLLM