Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Vector Search for Practitioners with Elastic

You're reading from   Vector Search for Practitioners with Elastic A toolkit for building NLP solutions for search, observability, and security using vector search

Arrow left icon
Product type Paperback
Published in Nov 2023
Publisher Packt
ISBN-13 9781805121022
Length 240 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Jeff Vestal Jeff Vestal
Author Profile Icon Jeff Vestal
Jeff Vestal
Bahaaldine Azarmi Bahaaldine Azarmi
Author Profile Icon Bahaaldine Azarmi
Bahaaldine Azarmi
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

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

Log vectorization

Log vectorization is the process of transforming logs into embeddings. This process requires a couple of steps, such as generating logs for the test and expanding and using a general model to generate vectors.

In addition, we made the arbitrary choice to do everything in Python here, which gives you the ability to re-execute the same examples in a Google Colab notebook for educational purposes.

All the code from this chapter is available in the chapter 7 folder of this book’s GitHub repository: https://github.com/PacktPublishing/Vector-Search-for-Practitioners-with-Elastic/tree/main/chapter7.

Note that instead of applying the first approach and trying to generate vectors directly from the logs, we will adopt the strategy of expanding them to a human-readable description first, allowing us to avoid the intensive process of model training.

We are now going to learn how to generate synthetic logs.

Synthetic log

With synthetic logs, we enable...

lock icon The rest of the chapter is locked
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.
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 $19.99/month. Cancel anytime
Banner background image