Semantic Search with AI Vector Search
Agentic AI for Oracle AI Database Professional · Lesson 1 of 20 · 3:03
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Agentic AI for Oracle AI Database Professional exam (1Z0-1159-26). In this lesson: what AI Vector Search is and why vectors live next to the business data, what vector embeddings capture, how similarity search finds the closest vectors, and the vector workflow from embedding to search. Follows Ambergate Appliances, a fictional appliance maker. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Search by meaning
Ambergate Appliances makes washing machines, fridges, and ovens, and its support team answers thousands of repair questions every week. A customer writes that the washer shakes and walks across the floor, while the repair guide calls it an unbalanced drum during the spin cycle. Keyword search misses that match, so this lesson explains how Oracle AI Vector Search finds content by its meaning.
What AI Vector Search is
Oracle AI Vector Search is built into Oracle AI Database. It adds a vector data type, vector indexes, and SQL functions, so you can store and search vectors next to your business data. The search works on meaning: it finds content that is semantically similar to a question, even when they share no words. And because it is part of the database, one SQL statement can combine a semantic search with relational filters, joins, and JSON data.
One database, not two
Many teams copy their data into a separate vector database. That adds a second system to secure, a sync job to run, and copies that drift out of date. With AI Vector Search, the vectors stay with the rows that they describe, under the same security, transactions, and backups. And a search sees the latest committed data, because there is no copy to refresh.
Vector embeddings
A vector embedding is a list of numbers that captures the meaning of a piece of content, such as a sentence, a chunk of a manual, an image, or a sound. An embedding model, usually a transformer neural network, produces it. Each dimension stands for a learned feature, and no single dimension means anything on its own. What matters is the position: content with a similar meaning gets vectors that sit close together.
Similarity search
Similarity search compares vectors with a distance. A small distance means a similar meaning, and a large distance means unrelated content. The search returns the top K vectors that are closest to the question's vector, which are its nearest neighbors. Because each model builds its own space, the documents and the questions must be embedded with the same model.
The vector workflow
A vector search project follows five steps. First, generate vector embeddings from your unstructured data, inside or outside the database. Second, store them in a column of the vector data type, next to the related rows. Third, you can create vector indexes, which speed up searches on large data sets. Fourth, query with similarity search and relational filters, and fifth, you can pass the results to a large language model, which is retrieval augmented generation.
From documents to vectors
Large documents go through a few stages first. A PDF repair manual becomes plain text, and the text is split into chunks that fit the model. The model's tokenizer splits each chunk into tokens, which are words or word pieces, and the model turns them into one vector for each chunk. The vectors are then stored and indexed, ready for search.
Recap
Let's recap. AI Vector Search adds vectors, vector indexes, and SQL functions to Oracle AI Database. Vectors stay next to the business data, under the same security, with no copy to sync. An embedding captures meaning, and similar content gets close vectors. Similarity search returns the top K nearest neighbors, with one model for documents and questions. And the workflow is: generate, store, index, query, then optionally generate an answer with a model.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Ambergate’s security team does not want copies of customer tickets in a second store, outside the database’s access rules and audit. What does AI Vector Search offer?
- Embeddings that encrypt the ticket text
- A managed vector store kept beside the database
- Vectors stored in the database with the rows
- A vector cache on each application server
Show the answer
Vectors stored in the database with the rows
The vectors live in Oracle AI Database, next to the tickets, under the same security and audit. “Embeddings that encrypt the ticket text” is not how embeddings work, since a vector is not an encrypted copy of the text. “A managed vector store kept beside the database” describes the separate store that the team wants to avoid. And “A vector cache on each application server” would still copy the tickets out, only to a cache.
Ambergate embedded its repair guides with one model last year. A new app now embeds customer questions with a different model, and the matches look random. What is the cause?
- Two models build two different vector spaces
- The question vectors have too few dimensions
- The repair guides have no vector index yet
- The questions share no words with the guides
Show the answer
Two models build two different vector spaces
Vectors from two different models live in two different spaces, so their distances mean nothing. “The question vectors have too few dimensions” is not the cause, since one model gives every vector the same number of dimensions. “The repair guides have no vector index yet” would only make the search faster, not more relevant. And “The questions share no words with the guides” is wrong, because similarity search does not need shared words at all.
Ambergate stores its vectors in a VECTOR column, and searches are slow now that the table holds forty million chunks. Which step of the workflow helps most?
- Generate the embeddings again
- Send the results to a language model
- Move the vectors to a separate table
- Create a vector index on the column
Show the answer
Create a vector index on the column
A vector index speeds up similarity search on large data sets, by trading a little accuracy for speed. “Generate the embeddings again” only creates the vectors, so it does not speed up the search. “Send the results to a language model” adds a model call after the search, which makes the answers better but not the search faster. And “Move the vectors to a separate table” changes how the rows are stored, not how the closest ones are found.