For the latest updates, examples and experimental features, please see ADS LangChain Integration.This notebooks goes over how to use an LLM hosted on a OCI Data Science Model Deployment. For authentication, the oracle-ads library is used to automatically load credentials required for invoking the endpoint.
Prerequisite
Deploy model
You can easily deploy, fine-tune, and evaluate foundation models using the AI Quick Actions on OCI Data Science Model deployment. For additional deployment examples, please visit the Oracle GitHub samples repository.Policies
Make sure to have the required policies to access the OCI Data Science Model Deployment endpoint.Set up
After having deployed model, you have to set up following required parameters of the call:endpoint: The model HTTP endpoint from the deployed model, e.g.https://modeldeployment.<region>.oci.customer-oci.com/<md_ocid>/predict.
Authentication
You can set authentication through either ads or environment variables. When you are working in OCI Data Science Notebook Session, you can leverage resource principal to access other OCI resources. Check out here to see more options.Examples
Asynchronous calls
Streaming calls
API reference
For comprehensive details on all features and configurations, please refer to the API reference documentation for each class:Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.