최신 업데이트, 예제 및 실험적 기능은 ADS LangChain Integration을 참조하세요.
Overview
Integration details
| Class | Package | Local | Serializable | JS support | Downloads | Version |
|---|---|---|---|---|---|---|
| ChatOCIModelDeployment | langchain-community | ❌ | beta | ❌ |
Model features
| Tool calling | Structured output | JSON mode | Image input | Audio input | Video input | Token-level streaming | Native async | Token usage | Logprobs |
|---|---|---|---|---|---|---|---|---|---|
| depends | depends | depends | depends | depends | depends | ✅ | ✅ | ✅ | ✅ |
Setup
ChatOCIModelDeployment를 사용하려면 chat completion endpoint가 있는 chat model을 배포하고langchain-community, langchain-openai 및 oracle-ads integration package를 설치해야 합니다.
OCI Data Science Model deployment에서 AI Quick Actions를 사용하여 foundation model을 쉽게 배포할 수 있습니다. 추가 배포 예제는 Oracle GitHub samples repository를 참조하세요.
Policies
OCI Data Science Model Deployment endpoint에 액세스하는 데 필요한 policies가 있는지 확인하세요.Credentials
Oracle ADS를 통해 인증을 설정할 수 있습니다. OCI Data Science Notebook Session에서 작업할 때 resource principal을 활용하여 다른 OCI 리소스에 액세스할 수 있습니다.Installation
LangChain OCIModelDeployment integration은langchain-community package에 있습니다. 다음 명령은 langchain-community와 필요한 dependencies를 설치합니다.
Instantiation
genericChatOCIModelDeployment 또는 ChatOCIModelDeploymentVLLM과 같은 framework 특정 class로 모델을 인스턴스화할 수 있습니다.
ChatOCIModelDeployment사용: 모델 배포를 위한 generic entry point가 필요할 때 사용합니다. 이 class를 인스턴스화하는 동안model_kwargs를 통해 model parameter를 전달할 수 있습니다. 이를 통해 framework별 세부 사항에 의존하지 않고도 유연하고 쉽게 구성할 수 있습니다.
ChatOCIModelDeploymentVLLM과 같은 framework 특정 class 사용: 특정 framework(예:vLLM)로 작업하고 constructor를 통해 model parameter를 직접 전달하여 설정 프로세스를 간소화해야 할 때 적합합니다.
Invocation
Chaining
Asynchronous calls
Streaming calls
Structured output
API reference
모든 기능 및 구성에 대한 포괄적인 세부 정보는 각 class의 API reference 문서를 참조하세요:Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.