At Oracle Cloud World 2023, Oracle announced they were moving toward enabling Artificial Intelligence (AI) within many of their products. Oracle is making huge steps forward for many people to use AI daily. As 2023 ended, many other industry leaders announced they would do the same.
Regarding databases, Oracle is the only industry leader that leverages its core product for many different things. For at least a decade, Oracle has turned the Oracle Database into a Swiss army knife by enabling it to support different modern data types, analytics, and development paradigms, all in one product. It is only natural that with the AI revolution starting, Oracle would build a data type that enables organizations to use Retrieval-Augmented Generation (RAG) within the databases.
By adding a “vector” datatype, Oracle simplifies data architectures and the building of RAG or Private-LLM configurations for organizations.
Where is the Vector datatype?
If you use an Oracle Database today, you will not immediately have access to the Vector datatype. Even if you use the latest version, 23.3.x.x, on Oracle Cloud Infrastructure (OCI), you cannot access this datatype (Believe me, I tried). You have to be part of the beta program for the next release of Oracle Database, which will provide you details on the Vector datatype before the initial release in 23.4.
In short, and for the moment, if you are not part of the beta program, this datatype will be available soon!
What is the Vector datatype?
The Vector datatype is a modern datatype designed to efficiently store, manage, and index massive amounts of high-dimensional data. This data type is growing in interest and is used to create additional value for generative AI use cases and applications.
Vector Settings?
The vector datatype is used within standard Oracle tables. This enables database schemas to use the data in real-time. The following command shows a simple example:
sql> CREATE TABLE rd_vectors (id NUMBER, embed VECTOR);
This simple example shows that the vector datatype can be set as a column within a table. Enabling it this way allows you to specify vectors of different dimensions with different formats. Think of this as a catch-all setting for vector data.
It is great to have a catch-all; however, you can limit the type of vectors created by imposing constraints on the stored data. In this example, you can only store up to 1024 dimensions, and they must be formatted as INT8 (8-bit integers):
sql> CREATE TABLE rd_vectors_int8 (id NUMBER, embed VECTOR(1024, INT8);
With this complex example, you must have 1024 dimensions, each of which must be 8-bit integers (INT8). The number of dimensions should be greater than 0 with no limit. The dimensions formats are INT8, FLOAT32, and FLOAT64. FLOAT32 and FLOAT64 are the IEEE standards, and the Oracle Databases will automatically cast the values as needed.
Examples of setting additional dimension formats are:
sql> CREATE TABLE rd_vectors_int8 (id NUMBER, embed VECTOR(1024, FLOAT32);
sql> CREATE TABLE rd_vectors_int8 (id NUMBER, embed VECTOR(1024, FLOAT64);
Vector Forms?
With the understanding of Vector settings, there are a few forms that a vector can take. Understanding these forms will help in defining the proper vector for your requirements:
Important Note: A vector can be NULL, but the dimensions cannot be NULL. (example: You cannot have [(1.1, NULL, 2.3)]
Examples of Vectors:
Now that you understand the Vector datatype, how does the Oracle Database see the datatype? The following SQL example shows that the table rd_vector is created with only vector datatypes using different variations.
sql> CREATE TABLE vector.rd_vector (
v1 VECTOR,
v2 VECTOR(3, FLOAT32),
v3 VECTOR(2, FLOAT64),
v4 VECTOR(1, INT8),
v5 VECTOR(1, *),
v6 VECTOR(*, FLOAT32),
v7 VECTOR(*, *)
);
sql> desc vector.rd_vector;
Name Null? Type
----------------------------------------- -------- ——————————————
V1 VECTOR(*, *)
V2 VECTOR(3, FLOAT32)
V3 VECTOR(2, FLOAT64)
V4 VECTOR(1, INT8)
V5 VECTOR(1, *)
V6 VECTOR(*, FLOAT32)
V7 VECTOR(*, *)
Hopefully, Oracle will release Oracle Database 23.4 soon! There will be many opportunities to use vector data types as organizations expand their usage of Generative AI.
Enjoy!
Current Oracle Certs
Bobby Curtis
I’m Bobby Curtis and I’m just your normal average guy who has been working in the technology field for awhile (started when I was 18 with the US Army). The goal of this blog has changed a bit over the years. Initially, it was a general blog where I wrote thoughts down. Then it changed to focus on the Oracle Database, Oracle Enterprise Manager, and eventually Oracle GoldenGate.
If you want to follow me on a more timely manner, I can be followed on twitter at @dbasolved or on LinkedIn under “Bobby Curtis MBA”.
The cramps can manifest in any body part priligy (dapoxetine) We know that the cost of fertility treatment can be an added concern at a time that can be challenging already
lesting, a non stress tosl NST, or biophysical profiling BPP may be approprtate, depending upon the weak 01 pregnency paxil or priligy When we pick a medication, we want it to have the best efficacy with the fewest side effects
emla cream and priligy tablets SEER obtained vital status, survival time, as well as cause of death from the National Center for Health Statistics 37
can priligy cure pe Although several follicles can start to develop with each cycle, usually just one follicle will release an egg, while the other follicles deteriorate
buy priligy 60 mg Secondary endpoints include prostate cancer specific survival and overall survival
Prosthetic Valve Candida spp order priligy online uk Clin Endocrinol Oxf 2013; 79 93 99
In other words, tamoxifen therapy is an appropriate consideration for a much smaller subset of high risk women than was originally thought can you buy priligy in usa
priligy buy What about getting vaccines while on methotrexate
dapoxetine priligy uk viagra ashwagandha side effect Hutchins has said he thought the man Гў who turned out to be a retired policeman Гў was an insurgent leader
kerlone docril diclofenaco sodico 100 mg para que sirve In northern Nevada, mop up and fire line rehabilitation began on the sprawling Bison Fire in the Pine Nut Mountains near Gardnerville and Carson City priligy equivalent Given that there were similar 1, 25 OH 2 D levels in women with ductal carcinoma in situ and in women with invasive ductal carcinoma, the observed inverse association with breast cancer might not have resulted from an effect of the invasive disease on blood 1, 25 OH 2 D levels
Howdy! Do you know if they make any plugins to assist with SEO?
I’m trying to get my blog to rank for some targeted keywords but I’m
not seeing very good results. If you know of any please share.
Thank you! You can read similar blog here: Eco product
viagra priligy Free Shipping on this item
Peptide Nanoparticle Mediated Combinatorial Delivery of Cancer Related siRNAs for Synergistic Anti Proliferative Activity in Triple Negative Breast Cancer Cells how can i buy priligy in usa
buy priligy 60 mg Ball HG, Blessing JA, Lentz SS, Mutch DG; Gynecologic Oncology Group
He also picked up the teapot in front of can high blood pressure meds make crps worse the old man, poured himself a cup of tea, and tasted it can you get cheap cytotec no prescription 2011; 7 501 527
Exogenous substrates for NQO1 include many xenobiotic quinones can i get cheap cytotec pill do you think there is any way to convince my doc
can you get generic cytotec The goal of treatment with DCIS is to prevent the in situ mass from progressing to an invasive breast cancer 75