oracle-samples/oracle-aidp-samples

Oracle AI Data Platform Workbench Samples

46

stars

204

commits

Python

primary language

Sep 8, 2026

updated

docs.oracle.com/en/cloud/paas/ai-data-platform/index.html
ai-agent
ai-agents
ai-assistant
ai-data
data-engineering
data-ingestion
data-integration
data-science
Browse cluster: Real-time streaming data processing

README

Oracle AI Data Platform Workbench Samples

This repository contains a curated collection of sample notebooks demonstrating how to build data pipelines, run machine learning workloads, and integrate AI capabilities using Oracle AI Data Platform (AIDP) Workbench — a unified, governed workspace for data engineering, ML, and AI development powered by Apache Spark.

What is Oracle AI Data Platform Workbench?

Oracle AI Data Platform Workbench is a unified, governed workspace for building, managing, and deploying AI and data-driven solutions. It brings together notebooks, agent development, orchestration, and catalog management in a single collaborative platform — empowering teams to explore data, fine-tune models, and operationalize AI with trust and speed.

Learn more about AIDP Workbench →


Repository Structure

oracle-aidp-samples/
├── getting-started/          # Foundational notebooks for new users
│   ├── Delta_Lake/           # Delta Lake feature walkthroughs
│   └── migration/            # Migrating workloads to AIDP
├── data-engineering/
│   ├── ingestion/            # Connectors and data loading patterns
│   └── transformation/       # Pipeline architectures and table formats
│       ├── liquid-clustering/
│       ├── medallion-lake/
│       ├── scd/
│       └── streaming/
├── ai/
│   ├── agent-flows/          # Agent orchestration and scheduling
│   └── ml-datascience/       # ML, LLM, and AI service integrations
└── shared-utils/             # Reusable utilities and data generators

Sample Catalog

Getting Started

Foundational examples to help you get up and running on AIDP Workbench.

NotebookDescription
Access ALH DataWrite and query data in Oracle Autonomous AI Lakehouse (ALH) using PySpark insertInto and SQL INSERT statements with external catalogs.
Access Object Storage DataRead and write data from OCI Object Storage using direct access, external volumes, and external tables.
Analyse Data Using PySparkPySpark fundamentals: catalog and schema setup, table creation, data insertion, schema exploration, and matplotlib visualizations.
Analyse Data Using SQLCore SQL operations on AIDP including DataFrame creation, transformations, aggregations, and simple visualizations.
ALH External Catalog MERGEEnd-to-end MERGE workflow into an ALH table via an AIDP external catalog: insert/update/delete with merge keys and OOS-staging skip optimization.

Delta Lake

NotebookDescription
Use Delta Lake TableComprehensive guide covering Delta table operations: updates, merges, time travel, liquid clustering, and vacuuming.
Delta Change Data FeedCapture row-level changes (inserts, updates, deletes) from Delta tables for CDC, incremental processing, and streaming pipelines.
Handle Schema EvolutionAdd and evolve columns in Delta tables without rewriting existing data, leveraging automatic schema evolution.
Delta UniForm TablesCreate Delta UniForm tables that automatically synchronize Iceberg metadata for cross-format interoperability.

Migration

NotebookDescription
Migrate Files from Databricks to AIDPRecursively export notebooks and files from a Databricks workspace to AIDP using the databricks-sdk library.
Download from Git to AIDPDownload notebooks and files from a Git repository as a ZIP archive and extract them directly into an AIDP workspace volume.

Data Engineering — Ingestion

Patterns for connecting to and loading data from a wide range of sources.

NotebookDescription
Read/Write Oracle Ecosystem ConnectorsConnect to Oracle Database, Oracle Exadata, ALH, and ATP with external catalog support and SQL pushdown.
Read/Write External Ecosystem ConnectorsRead/write operations with Hive Metastore, Microsoft SQL Server, PostgreSQL, and MySQL.
Read-Only Ingestion ConnectorsUse read-only connectors for MySQL HeatWave, REST APIs, Oracle Fusion BICC, Kafka, and other sources.
Connect Using Custom JDBC DriverIntegrate custom JDBC drivers (e.g., SQLite, Snowflake) with Spark for connecting to databases not bundled by default.
Execute Oracle ALH SQLExecute SQL statements directly against Oracle ALH using the oracledb Python package.
Ingest Data Using YAMLConfig-driven ingestion from cloud storage (CSV, JSON) and JDBC sources with schema validation and data quality checks.
Ingest from Multi-CloudIngest data from Azure Data Lake Storage (ADLS) and AWS S3 with proper JAR configuration and credential management.
Ingest into Apache Iceberg (OCI Native)End-to-end Apache Iceberg workflow: table creation, querying, schema evolution, time travel, and metadata inspection using OCI native protocol and Hadoop catalog.
Pipe-Delimited File IngestionRead pipe-delimited (|) files from OCI Object Storage and register them as external tables.
Read Excel FilesRead Excel (.xlsx) files using the Spark Excel connector and convert them to Spark DataFrames or CSV.
Streaming from OCI Streaming ServiceConsume messages from OCI Streaming (Kafka-compatible) using Spark Structured Streaming with SASL/OAUTHBearer authentication.
Streaming from Volume PathProcess CSV files from a workspace volume using one-time micro-batch streaming with Trigger.Once().

Data Engineering — Transformation

Architectural patterns and pipeline templates for data transformation at scale.

Medallion Architecture

Implements the Bronze → Silver → Gold lakehouse pattern with data quality checks and aggregations. Industry variants available:

NotebookIndustry
EducationEducation analytics pipeline
EnergyEnergy consumption and reporting
Financial ServicesFinancial transactions and risk
HealthcarePatient records and clinical data
HospitalityHotel bookings and guest analytics
InsurancePolicy and claims processing
ManufacturingProduction line and quality data
MediaContent engagement and subscriptions
Real EstateProperty listings and transactions
RetailSales, inventory, and customer data
TelecommunicationsNetwork usage and customer churn
TransportationLogistics and fleet tracking

Delta Liquid Clustering

Demonstrates Delta Lake liquid clustering for automatic query optimization and data layout management. Industry variants available:

NotebookIndustry
EducationStudent performance analytics with ML prediction
EnergySmart grid monitoring and anomaly detection
Financial ServicesTransaction analytics and reporting
HealthcarePatient data access patterns
HospitalityBooking and occupancy analytics
InsuranceClaims and policy data optimization
ManufacturingProduction and quality metrics
MediaContent and engagement data
Real EstateProperty and transaction data
RetailSales and inventory analytics
TelecommunicationsNetwork and customer usage data
TransportationFleet and logistics optimization

Apache Iceberg Uniform Liquid Clustering

Combines Delta UniForm with Apache Iceberg Liquid Clustering for open-format, cross-engine table optimization. Industry variants available:

NotebookIndustry
EducationStudent performance data
EnergyGrid and sensor data
Financial ServicesTransaction and risk data
HealthcareClinical and patient records
HospitalityBooking and revenue data
InsurancePolicy and claims data
ManufacturingProduction and IoT data
MediaContent delivery data
Real EstateProperty listings data
RetailSales and inventory data
TelecommunicationsNetwork usage data
TransportationFleet and route data

Other Transformation Patterns

NotebookDescription
Slowly Changing Dimensions (SCD Type 2)Track historical changes to dimension records using SCD Type 2 with Jinja2-templated merge logic.
Streaming — Energy Delta Liquid ClusteringReal-time smart grid monitoring with streaming Delta tables, anomaly detection, and statistical baselines for energy consumption.
Streaming — Manufacturing Delta Liquid ClusteringContinuous ingestion and clustering of manufacturing sensor data using Spark Structured Streaming and Delta Lake.

Cross-Format & External Table Interop

SampleDescription
ADW External Table on Delta UniFormAutomates recreating an ADW Iceberg external table against the latest UniForm-generated metadata file when a UniForm-enabled Delta table evolves — ADW + Python + a stored procedure that resolves the newest vN.metadata.json.

Other Utilities

SampleDescription
DataFrame PII Masking with AIPySpark utility that detects and masks PII columns using a pluggable PIIChecker abstraction — supports Anthropic Claude (Haiku/Sonnet/Opus) and OCI native models via Spark query_model().
Partition-Aware Merge GeneratorHelper utility for partition-aware merge operations on Spark DataFrames: PK-based updates, configurable update policies, deletes, and schema evolution — Delta-MERGE-like behaviour without requiring Delta.

Miscellaneous

SampleDescription
Working with Table PropertiesManage Spark SQL table properties on a managed Delta table — set, read, overwrite, and remove properties, and store structured JSON metadata as a property value.

AI & Machine Learning

Notebooks covering generative AI, NLP, ML model training, and LLM-powered analytics.

NotebookDescription
Sentiment Analysis with OCI GenAIPerform sentiment analysis on text data using OCI Generative AI (Llama model) via the AIDP query_model function.
OCI Language Service TranslationTranslate text using OCI AI Language Service via REST API, demonstrated with a round-trip English ↔ Spanish translation.
Customer Churn Prediction (GPU)Train a TensorFlow neural network on GPU for customer churn prediction, including preprocessing, training, and evaluation.
LLM Model Output ParserUse an LLM to parse and translate statistical model outputs into business-friendly insights and plain-language summaries.
Natural Language to SQL (NL2SQL)Introspect a database schema and generate accurate SQL queries from natural language questions using an LLM, with result summarization.
Multi-Table NL2SQL with Grouped AnalysisExtend NL2SQL to multi-table scenarios with grouped LLM analysis for complex procurement and supplier-item intelligence.
Retrieval-Augmented Generation (RAG)End-to-end RAG pipeline: ingest documents from OCI Object Storage, chunk and embed text, retrieve relevant context, and generate answers with an LLM.
Movie Recommendation SystemBuild a collaborative filtering recommendation engine using PySpark ML's ALS algorithm, trained and evaluated on movie rating data.
Linear Mixed Effects ModelApply a Linear Mixed Effects Model (LME) with statsmodels and PySpark to analyze student test scores across schools, accounting for fixed and random effects.

Agent Flows

SampleDescription
Agent Flow Schedule TriggerInvoke AIDP agent flows via REST API using OCI request signing, demonstrating programmatic agent orchestration with custom message handling.
Invoke Agent Flows from APEXOracle APEX region plugin that adds a chat UI for AIDP agents, with persistent conversation history, async Oracle AQ-backed response processing, and conversation summarization.
Invoke Agent Flows from StreamlitStreamlit chat app for AIDP agents with streaming responses, trace/span visualization, multiple auth modes (API key, security token, resource principal), and OCI Container Instance deployment.

Visual (No-Code) Agent Flows

End-to-end labs showing the AIDP visual flow canvas authoring experience.

SampleDescription
Hello World AgentMinimal conversational agent built on the visual flow canvas — the starting template that grounds answers on the model's training data.
Entertainment Industry AnalystRelease & performance analyst combining RAG over internal playbooks/policies with strictly-defined parameterized SQL tools for read-only analytics.
ACME Pet Insurance Customer SupportRAG-based customer support agent answering policy questions from PDF documents in a Knowledge Base.

Custom Tools

Python tool packages that extend agent flows with user-authored capabilities. Upload the ZIP to a workspace volume and wire it into any agent flow. See the Custom Tools User Guide for the full authoring contract.

SampleDescription
Hello ToolThe minimal CustomToolBase tool — one class, one parameter, no dependencies. The starting template for new tools.
Developer ToolkitThree tools in one package — bash execution, file I/O, and Python subprocess execution — demonstrating multi-tool packages and a shared utils/ module.
ORDS Database ToolQuery Oracle Autonomous Database via the ORDS REST API with basic auth. Executes SQL, lists tables/views, and describes columns.

Agent Chat Clients

SampleDescription
AIDP Chat Client — Python LibraryReusable Python client for AIDP Chat Agent endpoints: streaming & non-streaming responses, API Key + Security Token auth, typed APIs, and a standalone test script for quick endpoint verification.
AIDP Agent Chat — Web UIBrowser chat UI for any deployed AIDP agent: a Flask proxy that handles OCI request signing plus a single-page HTML frontend. Includes a one-command deploy script for OCI Container Instances.
APEX Chat with Inline Charts (over OAC via MCP)Render an AIDP agent's answers as inline charts inside an Oracle APEX chat, driven by an agent-agnostic chart marker that both low-code and high-code agents emit.

Code-First Agent Flows

SampleDescription
Multi-MCP Chat AgentNatural-language chat agent that fans out across Oracle Autonomous Database (Select AI MCP), Oracle Analytics Cloud (Logical SQL MCP), and Oracle Integration Cloud (project-scoped MCP). Each integration can be enabled or disabled independently via config.
ReAct Agent with RAG ToolSimple code-authored ReAct agent that uses a RAG tool over PDFs stored in an AIDP Knowledge Base — runs as a code-first agent flow with the standard playground/test loop.
Supply Chain AgentMulti-agent system for supply-chain operations using OCI Generative AI (Grok-4) over AIDP catalog tables — data generation, table provisioning, and agent configuration walkthrough included.

Shared Utilities

NotebookDescription
Data Code GeneratorGenerate realistic multi-table synthetic datasets from a YAML configuration file, with CSV and JSON export support for testing and prototyping.
Data Quality CheckerRun comprehensive data quality checks including null, uniqueness, range, pattern, foreign key, and AI-powered semantic validation across single and multiple tables.
OCI Vault Secret RetrievalSecurely retrieve secrets (passwords, API keys, connection strings) from OCI Vault using auto-detected authentication — Resource Principal on AI Data Platform or OCI config file locally.
AIDP Customer Workbench Usage UIBrowser UI and read-only local proxy for viewing AIDP Workbench workspaces, compute clusters, notebooks, workflows, and cluster libraries from fixture data or live Workbench REST APIs.
AIDP Workbench Migration ToolkitParameterized archive and Bundle-based migration process for AIDP Workbench metadata, workspace files, jobs, and agent flows.

Developer Tooling

SampleDescription
Claude Code Plugins for AIDPAnthropic Claude Code plugins published by the Oracle AIDP team. Includes the oracle-ai-data-platform-workbench-spark-connectors plugin — 18 model-invokable skills connecting Spark notebooks to Oracle (ALH/ADW/ATP, ExaCS, Fusion, BICC, EPM, Essbase) and external (PostgreSQL, MySQL/HeatWave, SQL Server, Snowflake, ADLS Gen2, S3, OCI Streaming, Object Storage, Iceberg, REST/JDBC, Excel) sources.

Running the Samples

Prerequisites

Before running any sample, ensure you have:

  • An active Oracle AI Data Platform Workbench environment with a compute cluster.
  • The required IAM policies configured for the services used (Object Storage, ALH, AI Services, etc.).
  • Cluster libraries installed from the requirements.txt file included in the relevant sample folder, where applicable.

General Steps

  1. Open your AIDP Workbench notebook environment.
  2. Clone or import the samples into your workspace.
  3. Navigate to the notebook of your choice and open it.
  4. Follow the instructions and prerequisites described in the notebook's opening cells.
  5. Attach the notebook to a running compute cluster and execute the cells.

MLflow Tracking Server

Several ML samples integrate with MLflow for experiment tracking. Ensure your AIDP environment has an MLflow Tracking Server configured. Refer to the AIDP documentation for setup instructions.


Documentation


Get Support

If you encounter issues with these samples, please open an issue in this repository. For questions about Oracle AI Data Platform itself, refer to the OCI Support portal.


Security

Please consult the security guide for our responsible security vulnerability disclosure process.


Contributing

This project welcomes contributions from the community. Before submitting a pull request, please review our contribution guide.


License

See LICENSE

Contributors

mariomiola

22 commits

davidallan

21 commits

oracle-samples/oracle-aidp-samples

Oracle AI Data Platform Workbench Samples

46

stars

204

commits

Python

primary language

Sep 8, 2026

updated

docs.oracle.com/en/cloud/paas/ai-data-platform/index.html
ai-agent
ai-agents
ai-assistant
ai-data
data-engineering
data-ingestion
data-integration
data-science
Browse cluster: Real-time streaming data processing

README

Oracle AI Data Platform Workbench Samples

This repository contains a curated collection of sample notebooks demonstrating how to build data pipelines, run machine learning workloads, and integrate AI capabilities using Oracle AI Data Platform (AIDP) Workbench — a unified, governed workspace for data engineering, ML, and AI development powered by Apache Spark.

What is Oracle AI Data Platform Workbench?

Oracle AI Data Platform Workbench is a unified, governed workspace for building, managing, and deploying AI and data-driven solutions. It brings together notebooks, agent development, orchestration, and catalog management in a single collaborative platform — empowering teams to explore data, fine-tune models, and operationalize AI with trust and speed.

Learn more about AIDP Workbench →


Repository Structure

oracle-aidp-samples/
├── getting-started/          # Foundational notebooks for new users
│   ├── Delta_Lake/           # Delta Lake feature walkthroughs
│   └── migration/            # Migrating workloads to AIDP
├── data-engineering/
│   ├── ingestion/            # Connectors and data loading patterns
│   └── transformation/       # Pipeline architectures and table formats
│       ├── liquid-clustering/
│       ├── medallion-lake/
│       ├── scd/
│       └── streaming/
├── ai/
│   ├── agent-flows/          # Agent orchestration and scheduling
│   └── ml-datascience/       # ML, LLM, and AI service integrations
└── shared-utils/             # Reusable utilities and data generators

Sample Catalog

Getting Started

Foundational examples to help you get up and running on AIDP Workbench.

NotebookDescription
Access ALH DataWrite and query data in Oracle Autonomous AI Lakehouse (ALH) using PySpark insertInto and SQL INSERT statements with external catalogs.
Access Object Storage DataRead and write data from OCI Object Storage using direct access, external volumes, and external tables.
Analyse Data Using PySparkPySpark fundamentals: catalog and schema setup, table creation, data insertion, schema exploration, and matplotlib visualizations.
Analyse Data Using SQLCore SQL operations on AIDP including DataFrame creation, transformations, aggregations, and simple visualizations.
ALH External Catalog MERGEEnd-to-end MERGE workflow into an ALH table via an AIDP external catalog: insert/update/delete with merge keys and OOS-staging skip optimization.

Delta Lake

NotebookDescription
Use Delta Lake TableComprehensive guide covering Delta table operations: updates, merges, time travel, liquid clustering, and vacuuming.
Delta Change Data FeedCapture row-level changes (inserts, updates, deletes) from Delta tables for CDC, incremental processing, and streaming pipelines.
Handle Schema EvolutionAdd and evolve columns in Delta tables without rewriting existing data, leveraging automatic schema evolution.
Delta UniForm TablesCreate Delta UniForm tables that automatically synchronize Iceberg metadata for cross-format interoperability.

Migration

NotebookDescription
Migrate Files from Databricks to AIDPRecursively export notebooks and files from a Databricks workspace to AIDP using the databricks-sdk library.
Download from Git to AIDPDownload notebooks and files from a Git repository as a ZIP archive and extract them directly into an AIDP workspace volume.

Data Engineering — Ingestion

Patterns for connecting to and loading data from a wide range of sources.

NotebookDescription
Read/Write Oracle Ecosystem ConnectorsConnect to Oracle Database, Oracle Exadata, ALH, and ATP with external catalog support and SQL pushdown.
Read/Write External Ecosystem ConnectorsRead/write operations with Hive Metastore, Microsoft SQL Server, PostgreSQL, and MySQL.
Read-Only Ingestion ConnectorsUse read-only connectors for MySQL HeatWave, REST APIs, Oracle Fusion BICC, Kafka, and other sources.
Connect Using Custom JDBC DriverIntegrate custom JDBC drivers (e.g., SQLite, Snowflake) with Spark for connecting to databases not bundled by default.
Execute Oracle ALH SQLExecute SQL statements directly against Oracle ALH using the oracledb Python package.
Ingest Data Using YAMLConfig-driven ingestion from cloud storage (CSV, JSON) and JDBC sources with schema validation and data quality checks.
Ingest from Multi-CloudIngest data from Azure Data Lake Storage (ADLS) and AWS S3 with proper JAR configuration and credential management.
Ingest into Apache Iceberg (OCI Native)End-to-end Apache Iceberg workflow: table creation, querying, schema evolution, time travel, and metadata inspection using OCI native protocol and Hadoop catalog.
Pipe-Delimited File IngestionRead pipe-delimited (|) files from OCI Object Storage and register them as external tables.
Read Excel FilesRead Excel (.xlsx) files using the Spark Excel connector and convert them to Spark DataFrames or CSV.
Streaming from OCI Streaming ServiceConsume messages from OCI Streaming (Kafka-compatible) using Spark Structured Streaming with SASL/OAUTHBearer authentication.
Streaming from Volume PathProcess CSV files from a workspace volume using one-time micro-batch streaming with Trigger.Once().

Data Engineering — Transformation

Architectural patterns and pipeline templates for data transformation at scale.

Medallion Architecture

Implements the Bronze → Silver → Gold lakehouse pattern with data quality checks and aggregations. Industry variants available:

NotebookIndustry
EducationEducation analytics pipeline
EnergyEnergy consumption and reporting
Financial ServicesFinancial transactions and risk
HealthcarePatient records and clinical data
HospitalityHotel bookings and guest analytics
InsurancePolicy and claims processing
ManufacturingProduction line and quality data
MediaContent engagement and subscriptions
Real EstateProperty listings and transactions
RetailSales, inventory, and customer data
TelecommunicationsNetwork usage and customer churn
TransportationLogistics and fleet tracking

Delta Liquid Clustering

Demonstrates Delta Lake liquid clustering for automatic query optimization and data layout management. Industry variants available:

NotebookIndustry
EducationStudent performance analytics with ML prediction
EnergySmart grid monitoring and anomaly detection
Financial ServicesTransaction analytics and reporting
HealthcarePatient data access patterns
HospitalityBooking and occupancy analytics
InsuranceClaims and policy data optimization
ManufacturingProduction and quality metrics
MediaContent and engagement data
Real EstateProperty and transaction data
RetailSales and inventory analytics
TelecommunicationsNetwork and customer usage data
TransportationFleet and logistics optimization

Apache Iceberg Uniform Liquid Clustering

Combines Delta UniForm with Apache Iceberg Liquid Clustering for open-format, cross-engine table optimization. Industry variants available:

NotebookIndustry
EducationStudent performance data
EnergyGrid and sensor data
Financial ServicesTransaction and risk data
HealthcareClinical and patient records
HospitalityBooking and revenue data
InsurancePolicy and claims data
ManufacturingProduction and IoT data
MediaContent delivery data
Real EstateProperty listings data
RetailSales and inventory data
TelecommunicationsNetwork usage data
TransportationFleet and route data

Other Transformation Patterns

NotebookDescription
Slowly Changing Dimensions (SCD Type 2)Track historical changes to dimension records using SCD Type 2 with Jinja2-templated merge logic.
Streaming — Energy Delta Liquid ClusteringReal-time smart grid monitoring with streaming Delta tables, anomaly detection, and statistical baselines for energy consumption.
Streaming — Manufacturing Delta Liquid ClusteringContinuous ingestion and clustering of manufacturing sensor data using Spark Structured Streaming and Delta Lake.

Cross-Format & External Table Interop

SampleDescription
ADW External Table on Delta UniFormAutomates recreating an ADW Iceberg external table against the latest UniForm-generated metadata file when a UniForm-enabled Delta table evolves — ADW + Python + a stored procedure that resolves the newest vN.metadata.json.

Other Utilities

SampleDescription
DataFrame PII Masking with AIPySpark utility that detects and masks PII columns using a pluggable PIIChecker abstraction — supports Anthropic Claude (Haiku/Sonnet/Opus) and OCI native models via Spark query_model().
Partition-Aware Merge GeneratorHelper utility for partition-aware merge operations on Spark DataFrames: PK-based updates, configurable update policies, deletes, and schema evolution — Delta-MERGE-like behaviour without requiring Delta.

Miscellaneous

SampleDescription
Working with Table PropertiesManage Spark SQL table properties on a managed Delta table — set, read, overwrite, and remove properties, and store structured JSON metadata as a property value.

AI & Machine Learning

Notebooks covering generative AI, NLP, ML model training, and LLM-powered analytics.

NotebookDescription
Sentiment Analysis with OCI GenAIPerform sentiment analysis on text data using OCI Generative AI (Llama model) via the AIDP query_model function.
OCI Language Service TranslationTranslate text using OCI AI Language Service via REST API, demonstrated with a round-trip English ↔ Spanish translation.
Customer Churn Prediction (GPU)Train a TensorFlow neural network on GPU for customer churn prediction, including preprocessing, training, and evaluation.
LLM Model Output ParserUse an LLM to parse and translate statistical model outputs into business-friendly insights and plain-language summaries.
Natural Language to SQL (NL2SQL)Introspect a database schema and generate accurate SQL queries from natural language questions using an LLM, with result summarization.
Multi-Table NL2SQL with Grouped AnalysisExtend NL2SQL to multi-table scenarios with grouped LLM analysis for complex procurement and supplier-item intelligence.
Retrieval-Augmented Generation (RAG)End-to-end RAG pipeline: ingest documents from OCI Object Storage, chunk and embed text, retrieve relevant context, and generate answers with an LLM.
Movie Recommendation SystemBuild a collaborative filtering recommendation engine using PySpark ML's ALS algorithm, trained and evaluated on movie rating data.
Linear Mixed Effects ModelApply a Linear Mixed Effects Model (LME) with statsmodels and PySpark to analyze student test scores across schools, accounting for fixed and random effects.

Agent Flows

SampleDescription
Agent Flow Schedule TriggerInvoke AIDP agent flows via REST API using OCI request signing, demonstrating programmatic agent orchestration with custom message handling.
Invoke Agent Flows from APEXOracle APEX region plugin that adds a chat UI for AIDP agents, with persistent conversation history, async Oracle AQ-backed response processing, and conversation summarization.
Invoke Agent Flows from StreamlitStreamlit chat app for AIDP agents with streaming responses, trace/span visualization, multiple auth modes (API key, security token, resource principal), and OCI Container Instance deployment.

Visual (No-Code) Agent Flows

End-to-end labs showing the AIDP visual flow canvas authoring experience.

SampleDescription
Hello World AgentMinimal conversational agent built on the visual flow canvas — the starting template that grounds answers on the model's training data.
Entertainment Industry AnalystRelease & performance analyst combining RAG over internal playbooks/policies with strictly-defined parameterized SQL tools for read-only analytics.
ACME Pet Insurance Customer SupportRAG-based customer support agent answering policy questions from PDF documents in a Knowledge Base.

Custom Tools

Python tool packages that extend agent flows with user-authored capabilities. Upload the ZIP to a workspace volume and wire it into any agent flow. See the Custom Tools User Guide for the full authoring contract.

SampleDescription
Hello ToolThe minimal CustomToolBase tool — one class, one parameter, no dependencies. The starting template for new tools.
Developer ToolkitThree tools in one package — bash execution, file I/O, and Python subprocess execution — demonstrating multi-tool packages and a shared utils/ module.
ORDS Database ToolQuery Oracle Autonomous Database via the ORDS REST API with basic auth. Executes SQL, lists tables/views, and describes columns.

Agent Chat Clients

SampleDescription
AIDP Chat Client — Python LibraryReusable Python client for AIDP Chat Agent endpoints: streaming & non-streaming responses, API Key + Security Token auth, typed APIs, and a standalone test script for quick endpoint verification.
AIDP Agent Chat — Web UIBrowser chat UI for any deployed AIDP agent: a Flask proxy that handles OCI request signing plus a single-page HTML frontend. Includes a one-command deploy script for OCI Container Instances.
APEX Chat with Inline Charts (over OAC via MCP)Render an AIDP agent's answers as inline charts inside an Oracle APEX chat, driven by an agent-agnostic chart marker that both low-code and high-code agents emit.

Code-First Agent Flows

SampleDescription
Multi-MCP Chat AgentNatural-language chat agent that fans out across Oracle Autonomous Database (Select AI MCP), Oracle Analytics Cloud (Logical SQL MCP), and Oracle Integration Cloud (project-scoped MCP). Each integration can be enabled or disabled independently via config.
ReAct Agent with RAG ToolSimple code-authored ReAct agent that uses a RAG tool over PDFs stored in an AIDP Knowledge Base — runs as a code-first agent flow with the standard playground/test loop.
Supply Chain AgentMulti-agent system for supply-chain operations using OCI Generative AI (Grok-4) over AIDP catalog tables — data generation, table provisioning, and agent configuration walkthrough included.

Shared Utilities

NotebookDescription
Data Code GeneratorGenerate realistic multi-table synthetic datasets from a YAML configuration file, with CSV and JSON export support for testing and prototyping.
Data Quality CheckerRun comprehensive data quality checks including null, uniqueness, range, pattern, foreign key, and AI-powered semantic validation across single and multiple tables.
OCI Vault Secret RetrievalSecurely retrieve secrets (passwords, API keys, connection strings) from OCI Vault using auto-detected authentication — Resource Principal on AI Data Platform or OCI config file locally.
AIDP Customer Workbench Usage UIBrowser UI and read-only local proxy for viewing AIDP Workbench workspaces, compute clusters, notebooks, workflows, and cluster libraries from fixture data or live Workbench REST APIs.
AIDP Workbench Migration ToolkitParameterized archive and Bundle-based migration process for AIDP Workbench metadata, workspace files, jobs, and agent flows.

Developer Tooling

SampleDescription
Claude Code Plugins for AIDPAnthropic Claude Code plugins published by the Oracle AIDP team. Includes the oracle-ai-data-platform-workbench-spark-connectors plugin — 18 model-invokable skills connecting Spark notebooks to Oracle (ALH/ADW/ATP, ExaCS, Fusion, BICC, EPM, Essbase) and external (PostgreSQL, MySQL/HeatWave, SQL Server, Snowflake, ADLS Gen2, S3, OCI Streaming, Object Storage, Iceberg, REST/JDBC, Excel) sources.

Running the Samples

Prerequisites

Before running any sample, ensure you have:

  • An active Oracle AI Data Platform Workbench environment with a compute cluster.
  • The required IAM policies configured for the services used (Object Storage, ALH, AI Services, etc.).
  • Cluster libraries installed from the requirements.txt file included in the relevant sample folder, where applicable.

General Steps

  1. Open your AIDP Workbench notebook environment.
  2. Clone or import the samples into your workspace.
  3. Navigate to the notebook of your choice and open it.
  4. Follow the instructions and prerequisites described in the notebook's opening cells.
  5. Attach the notebook to a running compute cluster and execute the cells.

MLflow Tracking Server

Several ML samples integrate with MLflow for experiment tracking. Ensure your AIDP environment has an MLflow Tracking Server configured. Refer to the AIDP documentation for setup instructions.


Documentation


Get Support

If you encounter issues with these samples, please open an issue in this repository. For questions about Oracle AI Data Platform itself, refer to the OCI Support portal.


Security

Please consult the security guide for our responsible security vulnerability disclosure process.


Contributing

This project welcomes contributions from the community. Before submitting a pull request, please review our contribution guide.


License

See LICENSE

Contributors

mariomiola

22 commits

davidallan

21 commits

Languages

Python

65.8%

JavaScript

18.8%

Jupyter Notebook

14.8%