Which SQL function is used to create a vector embedding for a given text string in Oracle Database 23ai?
What happens when querying with an IVF index if you increase the value of the NEIGHBOR_PARTITIONS probes parameter?
In Oracle Database 23ai, which data type is used to store vector embeddings for similarity search?
Which PL/SQL package is primarily used for interacting with Generative AI services in Oracle Database 23ai?
What is the primary difference between the HNSW and IVF vector indexes in Oracle Database 23ai?
If a query vector uses a different distance metric than the one used to create the index, whathappens?
Which statement best describes the capability of Oracle Data Pump for handling vector data in thecontext of vector search applications?
What is the purpose of the VECTOR_DISTANCE function in Oracle Database 23ai similarity search?
You need to prioritize accuracy over speed in a similarity search for a dataset of images. Which should you use?
Which PL/SQL function converts documents such as PDF, DOC, JSON, XML, or HTML to plain text?
An application needs to fetch the top-3 matching sentences from a dataset of books while ensuring a balance between speed and accuracy. Which query structure should you use?
You are storing 1,000 embeddings in a VECTOR column, each with 256 dimensions using FLOAT32. What is the approximate size of the data on disk?
Which Python library is used to vectorize text chunks and the user’s question in the following example?
import oracledb
connection = oracledb.connect(user=un, password=pw, dsn=ds)
table_name = "Page"
with connection.cursor() as cursor:
create_table_sql = f"""
CREATE TABLE IF NOT EXISTS {table_name} (
id NUMBER PRIMARY KEY,
payload CLOB CHECK (payload IS JSON),
vector VECTOR
)"""
try:
cursor.execute(create_table_sql)
except oracledb.DatabaseError as e:
raise
connection.autocommit = True
from sentence_transformers import SentenceTransformer
encoder = SentenceTransformer('all-MiniLM-L12-v2')