Vector databases are transforming how we handle data, allowing us to search through text, images, and audio by converting them into vectors. Today, we'll dive into the basics of this exciting technology and discuss its potential to revolutionize our next-generation AI applications. We'll examine typical uses for these databases and the essential tools
developers need. Plus, we'll zoom in on the advanced capabilities of vector search and semantic caching in Java, showcasing these through a live demo with Redis libraries. Get ready to see how these powerful tools can change the game!
1 of 43
More Related Content
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Databases
1. Luigi Fugaro
Senior Solution Architect @ Redis
Unlocking the Future of Data:
Powering Next-Gen AI
with Vector Databases
4. Data Review
Lets start with a metric
Around 80%
of the data generated
by organizations is
Unstructured
Growth
IDC Report 2023 - https://www.box.com/resources/unstructured-data-paper
6. How to deal with Unstructured Data?
Common approaches were:
Labeling
Tagging
Data Review
7. Labeling and Tagging
Feature Value
Frame Color Green
Tire Color Brown
Has Rear Rack Yes
Has Fenders Yes
Has Safety Bell No
Has Fat Tires Yes
Feature Value
Frame Color Matte Olive
Tire Color Orange
Has Rear Rack Yes
Has Fenders Yes
Has Safety Bell Yes
Has Fat Tires Yes
Data Review
8. Labeling and Tagging
Feature Value
Easy Assembly 皚皚皚皚皚
Chain Quality 皚皚皚
Seat Comfort 皚
Gear Smoothness 皚皚皚皚
Data Review
9. How to deal with Unstructured Data?
Labeling and Tagging are
labor intensive,
subjective and error-prone
Whats the new approach?
Data Review
11. Vector Embeddings
What is a Vector?
Numeric representation of something
in N-dimensional space using 鍖oating numbers
Can represent anything
entire documents, images, video, audio
12. Vector Embeddings
How to turn Data into Vectors?
Its quite a complex process,
based primarily on Neural Networks
13. Vector Embeddings
How to turn Data into Vectors?
Dont be scared, Machine Learning and Deep Learning
has leaped forward in the last decade and we all can
bene鍖t from a huge ecosystem of Models, ready to use!
Each Model has its own speci鍖c task!
23. So, is it all about arithmetic operations?
Vector Embeddings
What else?
There is one main operation that you can do,
and its called Similarity Search!
29. How does a Vector DB need to have?
Store data
Index data
Query data
Does Redis have all ofem?
Avoja, and much more!
Vector Database
30. Vector indexing algorithms
Redis manages vectors in an index data structure to enable intelligent similarity search that
balances search speed and search quality. Choose from two popular techniques, FLAT (a brute
force approach) and HNSW (Hierarchical Navigable Small World - a faster, and approximate
approach).
Vector search distance metrics
Redis uses a distance metric to measure the similarity between two vectors. Choose from
three popular metrics Euclidean, Inner Product, and Cosine Similarity used to calculate
how close or far apart two vectors are.
Powerful hybrid 鍖ltering
Take advantage of the full suite of search features available in Redis query and search.
Enhance your work鍖ows by combining the power of vector similarity with more traditional
geo, numeric, text, and tag 鍖lters. Incorporate more business logic into queries and simplify
client application code.
Redis as Vector DB
Vector Database
31. Redis as Vector DB
Real-time updates
Real-time search and recommendation systems generate large volumes of
changing data. New images, text, products, or metadata? Perform updates,
insertions, and deletes to the search index seamlessly as your dataset changes
overtime. Redis Enterprise reduces costly impacts of stagnant data.
Vector range queries
Traditional vector search is performed by 鍖nding the top K most similar
vectors. Redis Enterprise also enables the discovery of relevant content within a
prede鍖ned similarity range or threshold for an alternative, and offers a more
鍖exible search experience.
Vector Database