Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Vector Search for Practitioners with Elastic
Vector Search for Practitioners with Elastic

Vector Search for Practitioners with Elastic: A toolkit for building NLP solutions for search, observability, and security using vector search

Arrow left icon
Profile Icon Bahaaldine Azarmi Profile Icon Vestal
Arrow right icon
$18.99 $27.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9 (15 Ratings)
eBook Nov 2023 240 pages 1st Edition
eBook
$18.99 $27.99
Paperback
$34.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Bahaaldine Azarmi Profile Icon Vestal
Arrow right icon
$18.99 $27.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9 (15 Ratings)
eBook Nov 2023 240 pages 1st Edition
eBook
$18.99 $27.99
Paperback
$34.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$18.99 $27.99
Paperback
$34.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Table of content icon View table of contents Preview book icon Preview Book

Vector Search for Practitioners with Elastic

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...

Exploring the roles of supervised and unsupervised learning in vector search

Supervised learning is a method in ML where a model learns from labeled data to determine a mapping between input features and output labels. During the training process, the model adjusts its parameters to minimize the error between its predictions and the true labels. Supervised learning is widely used in various applications, such as image classification, speech recognition, and natural language processing (NLP). One of the key challenges with supervised learning is that a curated labeled dataset must be provided to train the model.

Unsupervised learning, on the other hand, involves discovering patterns and structures in input data without using labeled examples. This type of learning focuses on finding similarities, differences, or underlying structures within the data by using techniques such as clustering, dimensionality reduction, and density estimation. Unsupervised learning is commonly applied...

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...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Install, configure, and optimize the ChatGPT-Elasticsearch plugin with a focus on vector data
  • Learn how to load transformer models, generate vectors, and implement vector search with Elastic
  • Develop a practical understanding of vector search, including a review of current vector databases
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

While natural language processing (NLP) is largely used in search use cases, this book aims to inspire you to start using vectors to overcome equally important domain challenges like observability and cybersecurity. The chapters focus mainly on integrating vector search with Elastic to enhance not only their search but also observability and cybersecurity capabilities. The book, which also features a foreword written by the founder of Elastic, begins by teaching you about NLP and the functionality of Elastic in NLP processes. Here you’ll delve into resource requirements and find out how vectors are stored in the dense-vector type along with specific page cache requirements for fast response times. As you advance, you’ll discover various tuning techniques and strategies to improve machine learning model deployment, including node scaling, configuration tuning, and load testing with Rally and Python. You’ll also cover techniques for vector search with images, fine-tuning models for improved performance, and the use of clip models for image similarity search in Elasticsearch. Finally, you’ll explore retrieval-augmented generation (RAG) and learn to integrate ChatGPT with Elasticsearch to leverage vectorized data, ELSER's capabilities, and RRF's refined search mechanism. By the end of this NLP book, you’ll have all the necessary skills needed to implement and optimize vector search in your projects with Elastic.

Who is this book for?

If you're a data professional with experience in Elastic observability, search, or cybersecurity and are looking to expand your knowledge of vector search, this book is for you. This book provides practical knowledge useful for search application owners, product managers, observability platform owners, and security operations center professionals. Experience in Python, using machine learning models, and data management will help you get the most out of this book.

What you will learn

  • Optimize performance by harnessing the capabilities of vector search
  • Explore image vector search and its applications
  • Detect and mask personally identifiable information
  • Implement log prediction for next-generation observability
  • Use vector-based bot detection for cybersecurity
  • Visualize the vector space and explore Search.Next with Elastic
  • Implement a RAG-enhanced application using Streamlit

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 30, 2023
Length: 240 pages
Edition : 1st
Language : English
ISBN-13 : 9781805127413
Category :
Languages :
Concepts :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning

Product Details

Publication date : Nov 30, 2023
Length: 240 pages
Edition : 1st
Language : English
ISBN-13 : 9781805127413
Category :
Languages :
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 134.97
Vector Search for Practitioners with Elastic
$34.99
Python Deep Learning
$49.99
Generative AI with LangChain
$49.99
Total $ 134.97 Stars icon

Table of Contents

16 Chapters
Part 1:Fundamentals of Vector Search Chevron down icon Chevron up icon
Chapter 1: Introduction to Vectors and Embeddings Chevron down icon Chevron up icon
Chapter 2: Getting Started with Vector Search in Elastic Chevron down icon Chevron up icon
Part 2: Advanced Applications and Performance Optimization Chevron down icon Chevron up icon
Chapter 3: Model Management and Vector Considerations in Elastic Chevron down icon Chevron up icon
Chapter 4: Performance Tuning – Working with Data Chevron down icon Chevron up icon
Part 3: Specialized Use Cases Chevron down icon Chevron up icon
Chapter 5: Image Search Chevron down icon Chevron up icon
Chapter 6: Redacting Personal Identifiable Information Using Elasticsearch Chevron down icon Chevron up icon
Chapter 7: Next Generation of Observability Powered by Vectors Chevron down icon Chevron up icon
Chapter 8: The Power of Vectors and Embedding in Bolstering Cybersecurity Chevron down icon Chevron up icon
Part 4: Innovative Integrations and Future Directions Chevron down icon Chevron up icon
Chapter 9: Retrieval Augmented Generation with Elastic Chevron down icon Chevron up icon
Chapter 10: Building an Elastic Plugin for ChatGPT Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9
(15 Ratings)
5 star 93.3%
4 star 6.7%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Alison Bernardes Jul 08, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Unfortunately we don't have physical copy available in Brazil, had to buy in US which increased a bit the costs, but still worth every single penny.
Amazon Verified review Amazon
Camille CG Feb 19, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
An accessible and practical book on Vector Search technologies, in the context of the Elastic ecosystem and wider technological landscape.As someone who has not explored the intricacies of Vector Search, I found the structure to be conducive to a holistic understanding of the domain - with the book providing an introduction to foundational components, followed by sophisticated and applicable implementation examples and techniques and follow-along tasks, to reinforce learnings.Moreover, with an emphasis on applicability in arenas like observability, and cyber-security and extensive coverage of the current landscape and future directions of search technologies, I would highly recommend as a read for both practitioners and theorists alike.
Amazon Verified review Amazon
Alex Apr 23, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Best resource out there for the latest and greatest that Elasticsearch offers in the AI search space.
Amazon Verified review Amazon
William McKnight Jan 25, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is a great resource for data professionals of all levels. It starts with the basics of vector search and embeddings and gradually progresses to advanced topics like performance tuning and building Elastic plugins. The authors provide clear explanations, code examples, and practical exercises, making it easy to learn and apply the concepts. I highly recommend this book to anyone looking to explore the exciting world of vector search and Elastic.
Amazon Verified review Amazon
IslandGuy Dec 11, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A much needed book for beginners and experienced Elastic users. You will go into the technical details of vector search with an emphasis on use cases.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.