0% found this document useful (0 votes)
794 views5 pages

Oracle AI Vector Search Mock Test - Set - 05

The document discusses various features and functionalities of Oracle Database 23ai, particularly focusing on vector indexing methods such as OHNSW and IVF, and their differences in memory usage and accuracy. It also covers SQL commands for managing vector memory size, retrieving vectors, and the implications of inserting vectors with incorrect dimensions. Additionally, it highlights the use of vector stores in AI applications and the importance of consistent embedding models for effective similarity searches.

Uploaded by

RobertJohnson
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
794 views5 pages

Oracle AI Vector Search Mock Test - Set - 05

The document discusses various features and functionalities of Oracle Database 23ai, particularly focusing on vector indexing methods such as OHNSW and IVF, and their differences in memory usage and accuracy. It also covers SQL commands for managing vector memory size, retrieving vectors, and the implications of inserting vectors with incorrect dimensions. Additionally, it highlights the use of vector stores in AI applications and the importance of consistent embedding models for effective similarity searches.

Uploaded by

RobertJohnson
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Both operate identically but differ in memory usage

OHNSW guarantees accuracy, whereas IVF sacrifices performance for accuracy


OHNSW uses an in-memory neighbor graph for faster approximate searches, whereas IVF uses the buffer cache with
partitions
OHNSW is partition based, whereas IVF uses neighbor graphs for indexing

65. A database administrator wants to change the VECTOR MEMORY SIZE parameter for a pluggable
database (PDB) in Oracle Database 23ai. Which SQL command is correct?
ALTER SYSTEM SET vector_memory_size-1G SCOPE-BOTH
ALTER DATABASE SET vector_memory_size=1G SCOPE=VECTOR/
ALTER SYSTEM SET vector_memory_size=1G SCOPE=SGA
ALTER SYSTEM RESET vector_memory_size

66. Which vector index available in Oracle Database 23ai is known for its speed and accuracy, making it
a preferred choice for vector search?
Binary Tree (BT) index
Inverted File System (IFS) index
Full-Text (FT) index
Hierarchical Navigable Small World (HNSW) index

67. What is the purpose of the Vector Pool in Oracle Database 23ai?
To manage database partitioning
To store HNSW vector indexes and IVF index metadata
To enable longer SQL execution
To store non-vector data types

68. What is the default distance metric used by the VECTOR DISTANCE function if none is specified?
Euclidean
Hamming
Cosine
Manhattan

69. In Oracle Database 23ai, which SQL function calculates the distance between two vectors using the
Euclidean metric?
L1 DISTANCE
L2 DISTANCE
HAMMING DISTANCE
COSINE DISTANCE

70. What is a key advantage of using GoldenGate 23ai for managing and distributing vector data for AI
applications?
Real-time vector data updates across locations
Automatic translation of vector embeddings between formats
Specialized vector embedding compression
Built-in version control for vector data
71. What happens when you attempt to insert a vector with an incorrect number of dimensions into a
VECTOR column with a defined number of dimensions?
The database pads the vector with zeros to match the defined dimensions
The database ignores the defined dimensions and inserts the vector as is
The database truncates the vector to fit the defined dimensions
The insert operation fails, and an error message is thrown

72. Which SQL query would retrieve the top-10 vectors based on Euclidean distance using exact
similarity search?
SELECT docID FROM vector_tab WHERE VECTOR_DISTANCE(embedding, :query_vector, 'EUCLIDEAN') <= 0.5
FETCH FIRST 10 ROWS ONLY;
SELECT docID FROM vector_tab ORDER BY VECTOR_DISTANCE(embedding, :query_vector, 'EUCLIDEAN')
FETCH FIRST 10 ROWS ONLY;
SELECT docID FROM vector_tab WHERE VECTOR_DISTANCE(embedding, :query_vector, EUCLIDEAN) <= 0.5
FETCH FIRST 10 ROWS ONLY;
SELECT docID FROM vector_tab ORDER BY VECTOR_DISTANCE(embedding, :query_vector, EUCLIDEAN) FETCH
EXACT FIRST 10 ROWS ONLY;

73. How does Select AI RAG leverage vector stores to enhance the capabilities of Large Language
Models (LLMs)?
Select AI RAG employs vector stores to isolate sensitive data, ensuring LLMs do not have direct access to private
information
Select AI RAG leverages vector stores to perform semantic similarity searches, finding and adding pertinent
information from private data to improve prompts for LLMs
Select AI RAG uses vector stores to reduce the size of LLM prompts by retrieving only the most relevant information,
minimizing computational overhead
Select AI RAG utilizes vector stores for the efficient management and retrieval of large volumes of textual data, leading
to faster response times from LLMs

Submit Retry Incorrect Download Result (Text)

Score: 0 / 73 (0.0%)

Results for Anonymous


Q1: When generating vector embeddings outside the database, what is the most suitable option for storing the
embeddings for later use?
Your Answer: No Answer
Correct Answer: in a dedicated vector database

Q2: When generating vector embeddings for a new dataset outside of Oracle Database 23ai, which factor is crucial to
ensure meaningful similarity search results?
Your Answer: No Answer
Correct Answer: The same vector embedding model must be used for vectorizing the data and creating a query vector

Q3: You are working with vector search in Oracle Database 23ai and need to ensure the integrity of your vector data
during storage and retrieval. Which factor is crucial for maintaining the accuracy and reliability of your vector search
results?
Your Answer: No Answer
Correct Answer: Using the same embedding model for both vector creation and similarity search

Q4: Which DDL operation is NOT permitted on a table containing a VECTOR column in Oracle Database 23ai?
Your Answer: No Answer
Correct Answer: Modifying the data type of an existing VECTOR column to a non-VECTOR type

Q5: Which SQL statement correctly adds a VECTOR column named v with 4 dimensions and FLOAT32 format to an
existing table named my_table?
Your Answer: No Answer
Correct Answer: ALTER TABLE my_table ADD v VECTOR(4, FLOAT32)
Q6: A machine learning team is using IVF indexes in Oracle Database 23ai to find similar images in a large dataset. During
testing, they observe that the search results are often incomplete, missing relevant images. They suspect the issue is in
the number of partitions probed. How should they improve the search accuracy?
Your Answer: No Answer
Correct Answer: Add the TARGET_ACCURACY clause to the query with a higher value to raise the accuracy

Q7: What does the VECTOR_NORM function return?


Your Answer: No Answer
Correct Answer: The Euclidean norm or distance between the vector and the origin

Q8: A retail company uses an Oracle Database 23ai HNSW vector index to recommend products to customers based on
their browsing history. The database administrator notices that after restarting the database, product recommendations are
slower. What steps should the administrator take to resolve the issue?
Your Answer: No Answer
Correct Answer: Rebuild the HNSW index or enable automatic reload

Q9: Which SQL statement will successfully insert a vector into a table named my_table with a single VECTOR column
named v?
Your Answer: No Answer
Correct Answer: INSERT INTO my_table (v) VALUES ('[1.1, 2.2, 3.3]')

Q10: What specifically does the VECTOR_NORM function calculate in Oracle Database 23ai?
Your Answer: No Answer
Correct Answer: The Euclidean norm or distance between the vector and the origin

Q11: A retail company uses an Oracle Database 23ai HNSW vector index to recommend products to customers based on
their browsing history. The database administrator notices that after restarting the database, product recommendations are
slower. What is the most effective solution?
Your Answer: No Answer
Correct Answer: Rebuild the HNSW index or enable automatic reload

Q12: Where are ONNX models stored after being loaded into an Oracle Database instance?
Your Answer: No Answer
Correct Answer: A table that includes BLOB data type

Q13: What is a key advantage of generating vector embeddings outside the database?
Your Answer: No Answer
Correct Answer: Flexibility in choosing specialized embedding models

You might also like