Build MAS-RAG with DualRAG, GraphRAG, and multimodal video pipelines on Oracle AI Database 26ai (database engine: Oracle Database 23ai)
Copyright 2025-2026, Denis Rothman.
Last updated: May 6, 2026
See the Changelog for updates, fixes, and upgrades (past, present, coming).
The era of extracting sensitive enterprise data to external AI platforms is under fire. This second edition defines a revolutionary architectural shift: bringing the AI to the data. This repository shows you how to build Sovereign AI systems that keep your most critical assets secure and governed within Oracle's converged engine, eliminating the fragmentation, latency, and security risks inherent in traditional data extraction. The repository implements Oracle AI Database 26ai, powered by the Oracle Database 23ai engine, and opens the door to other AI‑to‑data databases such as SQL Server or any database you are integrating.
Dual RAG is the definitive methodology for defeating hallucinations and data poisoning simultaneously. By synchronizing unstructured vector semantics with the deterministic truth of structured SQL, Graph, and Spatial retrieval, your agents reason over verified corporate facts rather than probabilistic guesses. From there, you will move beyond simple pipelines to master MAS-RAG (multi-agent systems for RAG): a Universal Context Engine with a Planner, an Agent Registry, and sovereign Oracle agents coordinating across hybrid retrieval workflows, Hybrid Adaptive RAG feedback loops, and multimodal video pipelines.
You will engineer a single converged hyper-query that fuses vector similarity, Oracle Spatial (SDO_GEOMETRY), and SQL Property Graphs (SQL/PGQ) without data movement, scale MAS-RAG workloads to millions of vectors using Oracle Exadata AI Smart Scan, and culminate by deploying an Autonomous Database Architect — an agent that constructs its own governed relational structures.
To get the most out of this book, ensure you have the following background and setup:
- Proficiency in Python
- Working knowledge of SQL and REST APIs
- Foundational understanding of LLM orchestration
- Ability to navigate cloud consoles
- Comfort with notebook-based workflows for implementing multi-agent systems
- Access to a Google Colab environment
- An Oracle Cloud Free Tier account to provision an Autonomous Database 23ai instance provisioned through the Oracle AI Database 26ai console.
- An OpenAI API key for powering reasoning engines and fine-tuning pipelines
- A system capable of running a modern web browser smoothly
- Stable internet connection for cloud-based development and API usage
Denis Rothman has been designing and deploying AI systems for more than three decades.
After graduating from Sorbonne University and Paris Cité University, he taught at Panthéon
Sorbonne University, where he registered an early patent for word tokenization and encoding,
followed by a patent for a conversational human–machine system. Since then, he has created
pioneering AI applications ranging from cognitive NLP chatbots for language learning to
aerospace AI solutions, global supply chain optimizers, and advanced planning and scheduling
systems used worldwide.
An early advocate of explainable AI, Denis has consistently built interpretable interfaces and
explanation data into complex projects across aerospace, apparel, and automotive industries.
His belief that knowledge is only complete when it is shared has led him to author multiple
books on AI, distilling his hands-on expertise into algorithms, frameworks, and platforms.
Model- and platform-agnostic, Denis combines theory with pragmatic, full-stack
development, providing not just concepts but also working code that readers can experiment
with and build upon.
