Multi-Vector and Hybrid Search
Agentic AI for Oracle AI Database Professional · Lesson 9 of 20 · 59:19
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: multi-vector search with PARTITIONS BY, its indexes, hybrid vector indexes, and hybrid search with DBMS_HYBRID_VECTOR.SEARCH and score fusion (RRF, RSF, WRRF). 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.
Ten chunks, one manual
Ambergate's top ten search often returns ten chunks from the same manual, while other useful manuals never show up. And technicians type part codes, like W X forty four ten, which a search by meaning alone can miss. This lesson covers multi-vector search, the indexes that support it, hybrid vector indexes, and hybrid search.
Multi-vector search
A long document is split into chunks, each with its own vector, so one document has many vectors. A plain top k search can return ten chunks from the same manual, and miss other manuals that also matter. A multi-vector search groups the results, with partitions by clauses in the fetch clause. Here it keeps the two best manuals, the three best sections in each, and up to four chunks for each section, and the rows stay ordered by distance.
Its indexes
A multi-vector search can be exact, or approximate with a vector index. An IVF index supports it, and it can include the columns used to group the results. An HNSW index supports it too, when the partitions by columns are included columns of the index. In both cases, the metric of the query must match the index, and with HNSW, EFSEARCH can widen the search.
Hybrid vector indexes
Some questions mix a meaning and an exact term, like a part code or a model name, and vectors alone can miss the exact term. A hybrid vector index combines an Oracle Text index and a vector index, in a single domain index that stays up to date as the data changes. You create it with create hybrid vector index on a text column, and name the embedding model in its parameters. The index chunks and embeds the documents itself, so the same index serves keyword searches and semantic searches.
Hybrid search
You search a hybrid index with DBMS_HYBRID_VECTOR.SEARCH, which takes a JSON document. Its vector part holds the text to search by meaning, its text part holds a contains expression for the keywords, and its return part sets the number of results. The search can run in semantic mode only, in keyword mode only, or in both together. When both run, the scores are fused: relative score fusion adds normalized scores, reciprocal rank fusion works on ranks, and a weighted version of it is also available.
Recap
Let's recap. A multi-vector search groups chunks by document, with partitions by clauses in the fetch clause, and rows stay ordered by distance. It runs exact, or approximate with an IVF or HNSW index, and HNSW needs the partitions by columns as included columns. A hybrid vector index combines Oracle Text and a vector index in one domain index, and it chunks and embeds the documents itself. DBMS_HYBRID_VECTOR.SEARCH takes JSON, with a vector part, a text part, and a return part. And semantic and keyword scores are fused with relative score fusion, or reciprocal rank fusion, weighted or not.
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 runs an approximate multi-vector search, with PARTITIONS BY manual_id, on a table with an HNSW index. What lets the HNSW index serve this query?
- A DOT metric on the index and the query
- A table partitioned by manual_id
- manual_id included in the index
- FETCH EXACT FIRST in the multi-vector query
Show the answer
manual_id included in the index
For a multi-vector search through HNSW, the partitions by columns must be included columns of the index. “A DOT metric on the index and the query” is wrong, because any metric works, as long as the query uses the same one. “A table partitioned by manual_id” partitions the table, which is a different thing from the partitions by clause. And “FETCH EXACT FIRST in the multi-vector query” forces an exact search, so no index would be used at all.
Technicians ask about error E21 on one exact washer model, and the semantic search returns similar errors on other models. Ambergate wants both meaning and exact terms, with a single index to maintain. What fits?
- A higher target accuracy on the index
- A hybrid vector index on the manuals
- A smaller chunk size for every manual
- A multi-vector search grouped by manual
Show the answer
A hybrid vector index on the manuals
A hybrid vector index matches the exact model name with its text part, and the meaning with its vector part. “A higher target accuracy on the index” makes the vector search more complete, but it still has no notion of an exact term. “A smaller chunk size for every manual” changes the size of the chunks, not what the search matches. And “A multi-vector search grouped by manual” groups results by document, which does not find the exact model either.
A developer calls DBMS_HYBRID_VECTOR.SEARCH, with the question “drum will not spin” and the exact part code WX4410. Where should the part code go?
- In search_text, in the vector part
- In topN, in the return part
- In the name of the hybrid vector index
- In contains, in the text part
Show the answer
In contains, in the text part
The text part runs a keyword search, and its contains expression matches the exact code. “In search_text, in the vector part” searches by meaning, which is where the question itself belongs. “In topN, in the return part” only sets how many results come back. And “In the name of the hybrid vector index” names the index to search, not what to look for.