Reader small image

You're reading from  Vector Search for Practitioners with Elastic

Product typeBook
Published inNov 2023
PublisherPackt
ISBN-139781805121022
Edition1st Edition
Right arrow
Authors (2):
Bahaaldine Azarmi
Bahaaldine Azarmi
author image
Bahaaldine Azarmi

Bahaaldine Azarmi, Global VP Customer Engineering at Elastic, guides companies as they leverage data architecture, distributed systems, machine learning, and generative AI. He leads the customer engineering team, focusing on cloud consumption, and is passionate about sharing knowledge to build and inspire a community skilled in AI.
Read more about Bahaaldine Azarmi

Jeff Vestal
Jeff Vestal
author image
Jeff Vestal

Jeff Vestal has a rich background spanning over a decade in financial trading firms and extensive experience with Elasticsearch. He offers a unique blend of operational acumen, engineering skills, and machine learning expertise. As a Principal Customer Enterprise Architect, he excels at crafting innovative solutions, leveraging Elasticsearch's advanced search capabilities, machine learning features, and generative AI integrations, adeptly guiding users to transform complex data challenges into actionable insights.
Read more about Jeff Vestal

View More author details
Right arrow

Introduction to Vectors and Embeddings

In this first chapter, we will dive into the fascinating world of embeddings, or vectors, and their diverse applications across various domains. We’ll introduce the concept of embeddings, which help represent complex data and enable powerful machine learning (ML) models to analyze and process that data. You’ll learn about the roles of supervised and unsupervised learning in creating embeddings and the challenges addressed by vectors. Moreover, we’ll discuss examples illustrating the broad applications of vector representation in different fields. We’ll also introduce you to the ecosystem of tools and platforms that enhance the developer experience when working with vector search, including Hugging Face and various backend considerations.

As we delve deeper into this chapter, you’ll discover the rapidly evolving market landscape and platforms that facilitate the implementation of vector search. We’ll...

Use cases and domains of application

AI-based search is often overwhelming for a majority of users to get started with, mainly, we believe, because of the lack of standardization – there are a lot of options to get started. In this book, we believe that it would be useful for practitioners to understand where to start by targeting the more mature and adopted techniques, use cases, and domains of application.

We will directly address the scope of possibilities for search, navigating around the jargon carried by the complex space of ML, NLP, and deep learning.

In addition, there is something to keep in mind before jumping into such a project: maintaining a balance between complexity, effort, and cost. By knowing how rapidly the field evolves with new research techniques, the initial investment can be short-lived. In this section, we are going to look at what AI-based search is and also explore the different techniques, such as named entity recognition (NER), sentiment analysis...

How is Elastic playing a role in this space?

Now, what role does Elastic play here? There are multiple ways you can leverage Elastic – including Elasticsearch. Elasticsearch is a distributed and highly scalable data store. Its specialty is information retrieval. It’s one thing to run the preceding code in a notebook – it’s another to make it operational at scale and to be accessed by hundreds, thousands, or millions of users.

Furthermore, training can be long as it requires the algorithm to be able to access a large amount of data, indexed for fast access, at scale. There are very few data stores that are versatile enough to be able to cope with structured and unstructured data at the same time, manage a wide range of data types, and be scalable for ingestion and search.

Elasticsearch is a unique choice, not only because of its technical attributes but also because of its vibrant community and large adoption. As mentioned earlier, the field of AI-based...

Summary

This book is going to guide you through pragmatic, practical examples that you will be able to replicate for your needs, ranging from building a vector-powered search application to applying vectors to domains such as observability and security. It targets a large spectrum of practitioners but is more focused on the operations teams, which deal with specific challenges and could make good use of combining vectors and Elastic.

In this chapter, you learned about the key aspects of NLP, vector search, AI-based search, and its relative techniques. You were also shown pieces of code that you can run and adapt for your business applications. Lastly, you gained a high-level understanding of Elasticsearch’s role in this context as well as how to apply vector search beyond the search use case, such as in terms of observability.

In the next chapter, we will get started by looking at vectors in Elasticsearch. We will explore the current search methodology and see how vectors...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Vector Search for Practitioners with Elastic
Published in: Nov 2023Publisher: PacktISBN-13: 9781805121022
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (2)

author image
Bahaaldine Azarmi

Bahaaldine Azarmi, Global VP Customer Engineering at Elastic, guides companies as they leverage data architecture, distributed systems, machine learning, and generative AI. He leads the customer engineering team, focusing on cloud consumption, and is passionate about sharing knowledge to build and inspire a community skilled in AI.
Read more about Bahaaldine Azarmi

author image
Jeff Vestal

Jeff Vestal has a rich background spanning over a decade in financial trading firms and extensive experience with Elasticsearch. He offers a unique blend of operational acumen, engineering skills, and machine learning expertise. As a Principal Customer Enterprise Architect, he excels at crafting innovative solutions, leveraging Elasticsearch's advanced search capabilities, machine learning features, and generative AI integrations, adeptly guiding users to transform complex data challenges into actionable insights.
Read more about Jeff Vestal