Setup
Ensure that the oci sdk and the langchain-community package are installedUsage
Chaining with prompt templates
Streaming
Authentication
The authentication methods supported for LlamaIndex are equivalent to those used with other OCI services and follow the standard SDK authentication methods, specifically API Key, session token, instance principal, and resource principal. API key is the default authentication method used in the examples above. The following example demonstrates how to use a different authentication method (session token)Dedicated AI Cluster
To access models hosted in a dedicated AI cluster create an endpoint whose assigned OCID (currently prefixed by ‘ocid1.generativeaiendpoint.oc1.us-chicago-1’) is used as your model ID. When accessing models hosted in a dedicated AI cluster you will need to initialize the OCIGenAI interface with two extra required params (“provider” and “context_size”).Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.