For the latest updates, examples and experimental features, please see ADS LangChain Integration.
Class | Package | Local | Serializable | JS support | Package downloads | Package latest |
---|---|---|---|---|---|---|
ChatOCIModelDeployment | langchain-community | ❌ | beta | ❌ |
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 | ✅ | ✅ | ✅ | ✅ |
langchain-community
, langchain-openai
and oracle-ads
integration packages.
You can easily deploy foundation models using the AI Quick Actions on OCI Data Science Model deployment. For additional deployment examples, please visit the Oracle GitHub samples repository.
langchain-community
package. The following command will install langchain-community
and the required dependencies.
ChatOCIModelDeployment
or framework specific class like ChatOCIModelDeploymentVLLM
.
ChatOCIModelDeployment
when you need a generic entry point for deploying models. You can pass model parameters through model_kwargs
during the instantiation of this class. This allows for flexibility and ease of configuration without needing to rely on framework-specific details.ChatOCIModelDeploymentVLLM
: This is suitable when you are working with a specific framework (e.g. vLLM
) and need to pass model parameters directly through the constructor, streamlining the setup process.