Using Oracle as a vector database
The following Job aims at connecting to an Oracle Database 23ai, creating a table for similarity search, inserting some data about famous statements into it, and performing similarity search by vector type.
Before you begin
Linking the components
Procedure
Configuring the components
Procedure
Executing the Job
Procedure
- Press Ctrl + S to save your Job.
- Press F6 to execute it.
Results
The Run console displays the result of the SQL query that fetches the sample data from the vector table. Only the first 5 rows of the query result are displayed.
Once the vector table is created, you can do some similarity search on the vector
table. For example, with the query "Matter of work", you will
get the following
result:
.-----------------------------------------------------.
| tLogRow_2 |
|=---------------------------------------------------=|
|result |
|=---------------------------------------------------=|
|The only way to do great work is to love what you do.|
|The only way to do great work is to love what you do.|
|Knowledge is power. |
|To do nothing is the way to be nothing. |
|With great power comes great responsibility. |
'-----------------------------------------------------'
For more information on how to perform vector search with Oracle, read the corresponding Oracle documentation.