Local Vector Database, Embedding Model and Generative Model RAG
Workshop
Scott Askinosie M.S. Ph.D.
Developer Educator & AI Engineer
Everything we do
(on the internet)
Starts with Search
Everything we do
(on the internet)
Starts with Search
v
v
Everything we do
(on the internet)
Starts with Search
What is the problem?
v
Everything we do
(on the internet)
Starts with Search
What is the problem?
v
The challenges of traditional search
Why do airplanes fly?
Why you should fly with ExpensiveAir’s airplanes!
…fly with ExpensiveAir’s modern fleet of airplanes to over 4 destinations. Why do you hesitate? Book now!
The challenges of traditional search
(the keywords match)
Why do airplanes fly?
Why you should fly with ExpensiveAir’s airplanes!
…fly with ExpensiveAir’s modern fleet of airplanes to over 4 destinations. Why do you hesitate? Book now!
Everything we do
(on the internet)
Starts with Search
In summary
v
Semantic Search to the rescue!
Why do airplanes fly?
Dynamics of Flight - NASA
Airplane wings are shaped to make air move faster over the top of the wing. When air moves faster, the pressure of the air decreases.
Everything we do
(on the internet)
Starts with Search
In summary
v
Everything we do
(on the internet)
Starts with Search
v
How does this work?
Everything we do
(on the internet)
Starts with Search
“You don’t need to understand it,
but it is pretty cool” 😉
v
How does this work?
Everything we do
(on the internet)
Starts with Search
“You don’t need to understand it,
but it is pretty cool” 😉
v
How does this work?
Everything we do
(on the internet)
Starts with Search
Machine Learning models
v
[ 0.23, 0.45, …, 0.84, 0.23 ]
ML�model
Everything we do
(on the internet)
Starts with Search
Vector Embeddings
v
[ 0.23, 0.45, …, 0.84, 0.23 ]
“Fly with ExpensiveAir’s modern fleet of airplanes to over 4 destinations. Why do you hesitate? Book now!”
ML�model
Everything we do
(on the internet)
Starts with Search
Vector Embeddings
v
ML�model
“Fly with ExpensiveAir’s modern fleet of airplanes to over 4 destinations. Why do you hesitate? Book now!”
Airplane wings are shaped to make air move faster over the top of the wing. When air moves faster, the pressure of the air decreases.
[ 0.26, 0.31, …, 0.12, 0.44 ]
[ 0.23, 0.45, …, 0.84, 0.23 ]
Everything we do
(on the internet)
Starts with Search
Vector Embeddings
v
ML�model
“Fly with ExpensiveAir’s modern fleet of airplanes to over 4 destinations. Why do you hesitate? Book now!”
Airplane wings are shaped to make air move faster over the top of the wing. When air moves faster, the pressure of the air decreases.
[ 0.26, 0.31, …, 0.12, 0.44 ]
[ 0.23, 0.45, …, 0.84, 0.23 ]
Everything we do
(on the internet)
Starts with Search
Vector Space
v
[ 0.26, 0.31, …, 0.12, 0.44 ]
[ 0.23, 0.45, …, 0.84, 0.23 ]
Everything we do
(on the internet)
Starts with Search
Vector Search
v
[ 0.26, 0.31, …, 0.12, 0.44 ]
[ 0.23, 0.45, …, 0.84, 0.23 ]
ML�model
Why do airplanes fly?
Everything we do
(on the internet)
Starts with Search
Vector Search
v
[ 0.26, 0.31, …, 0.12, 0.44 ]
[ 0.23, 0.45, …, 0.84, 0.23 ]
ML�model
Why do airplanes fly?
[ 0.24, 0.36, …, 0.16, 0.46 ]
Everything we do
(on the internet)
Starts with Search
Vector Search
v
[ 0.26, 0.31, …, 0.12, 0.44 ]
[ 0.23, 0.45, …, 0.84, 0.23 ]
ML�model
Why do airplanes fly?
[ 0.24, 0.36, …, 0.16, 0.46 ]
[ 0.26, 0.31, …, 0.12, 0.44 ] The NASA article
Large Language Model
Vector Database
One Key Difference
Large Language Model
(Stateless)
Vector Database
(Stateful)
Large Language Model
(Stateless)
Vector Database
(Stateful)
Large Language Model
(Stateless)
Vector Database
(Stateful)
Large Language Model
(Stateless)
Vector Database
(Stateful)
Everything we do
(on the internet)
Starts with Search
v
This is not a story of
VDBs vs LLMs
Everything we do
(on the internet)
Starts with Search
v
This is a story of
VDBs + LLMs
Everything we do
(on the internet)
Starts with Search
v
This is a story of
VDBs + LLMs
Everything we do
(on the internet)
Starts with Search
v