
How to Choose an Embedding Model: In-Database vs Gemini
Test embedding models on your own questions in Oracle AI Database 26ai and learn when a small in-database model is enough and when Gemini pays off.

Test embedding models on your own questions in Oracle AI Database 26ai and learn when a small in-database model is enough and when Gemini pays off.

Get Gemini embeddings from SQL and PL/SQL, embed whole tables in batches, call the REST API for extra options, and survive a busy provider.

AI Applications 26ai Oracle AI Database and APEX The book Contents Examples Look inside FAQ Look insideReal pages from the book Why this book How an entry works Examples and screens Look inside What the book covers AI in the…

Embed text inside Oracle AI Database 26ai with VECTOR_EMBEDDING, keep embeddings current with a trigger, and search tickets by meaning.

Run embeddings inside Oracle AI Database 26ai by loading a prebuilt ONNX model from a file or a BLOB, checking it, and managing it safely.

Compare vectors with VECTOR_DISTANCE in Oracle AI Database 26ai, choose the right metric, and find the nearest rows with ORDER BY and FETCH FIRST.

Store embeddings in Oracle AI Database 26ai with the right VECTOR declaration, format, and storage, and convert and inspect them in SQL and PL/SQL.
The few ideas behind every AI feature, from language models and tokens to embeddings, vectors, RAG, and agents, explained in database terms.

Store a Gemini API key safely as an Oracle credential, open the network to Google, and send your first prompt from SQL in Oracle AI Database 26ai.

One Before Page Submit dynamic action disables the buttons on every page while it submits, plus an optional database safety net for critical tables.

What APEX forms do by default, how to show a clear message, and how to protect your own PL/SQL save processes with a ROW_VERSION column.

One table, one PL/SQL function, and one application setting give central error handling and an Error Log page for any Oracle APEX app.

Three levels of Classic Reports and a dialog, with one small JavaScript file for Tally-like keyboard navigation, a sticky grand total, and a Print button.

One history table, a small package that creates the trigger for any table, and a Classic Report region that shows who changed what.

A short, step-by-step fix for disabled form items that save as empty or fail with a required error, with a readable read-only style.

A step-by-step guide to masking personal data by role in Oracle APEX with DBMS_REDACT, an application context, and fixes for the form and filter traps.

A step-by-step guide to showing each Oracle APEX user only their own rows with Virtual Private Database, one policy function, and no WHERE clauses in the pages.

A step-by-step guide to signing PDFs in your own Oracle APEX schema, with one-time codes, an immutable audit trail, a digital seal, and any PDF tool.