Skip to content

About

The-Architecture-Handbook-for-Milvus-Vector-Database, by Packt Publishing

Resources

Stars

10 stars

Watchers

1 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Architecture Handbook for Milvus Vector Database, First Edition

This is the code repository for The Architecture Handbook for Milvus Vector Database, First Edition, published by Packt.

Design and implement high-performance vector search systems with Milvus

Yudong Cai, Jeremy Zhu, Xuan Yang, Bang Fu

      Free PDF       Graphic Bundle       Amazon      

About the book

The Architecture Handbook for Milvus Vector Database, First Editionn

The rapid adoption of LLMs demands efficient storage and lightning-fast retrieval of unstructured data. Designed as a vector database, Milvus has earned widespread recognition in the community and support from tech giants like Apple and NVIDIA. Yet, many developers only scratch the surface of what Milvus is truly capable of. Written by the contributors of the Milvus project, this handbook gives you an insider’s perspective on its design and how it handles large-scale, high-dimensional vector data. Starting with the basics, you’ll learn about everything from service deployment and SDK usage to Milvus’ layered architecture and how its components interact. You’ll learn how the indexing, replication, compaction, and garbage collection systems work and how to apply them to real scenarios. Through practical demos and configuration exercises, you’ll learn how to monitor, scale, and secure Milvus in production and then advance to performance evaluation and scalability testing using tools like VectorDBBench. You'll also explore Milvus' integration with LangChain for use cases such as vector search and RAG-based chatbots. By the end of this book, you’ll be able to analyze Milvus internals, fine-tune for performance, ensure system stability, and integrate it into next-generation AI solutions. *Email sign-up and proof of purchase required

Key Learnings

  • Deploy Milvus using Docker, Kubernetes, and Helm
  • Configure Milvus and monitor system health with Prometheus, Grafana, and Loki
  • Understand core components like Knowhere, indexes, time sync, compaction, and garbage collection
  • Design and optimize schema, queries, and data modification flows
  • Benchmark performance and simulate real-world failure recovery
  • Scale Milvus clusters to support large datasets and high-concurrency traffic
  • Apply security hardening, rate-limiting, and role-based access control
  • Build AI applications using Milvus with LangChain

Chapters

Chapters Colab Kaggle Gradient Studio Lab
Chapter 1: Introduction to Milvus
Chapter 2: Deploying Milvus in Multiple Ways
Chapter 3: Interacting with Milvus
Chapter 4: Configuring the Milvus System
Chapter 5: Understanding the Milvus Data Model and Architecture
  • ch5_movies.ipynb
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • ch5_wiki.ipynb
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
Chapter 6: Data Modification and Maintenance in Milvus
Chapter 7: Reading Data in Milvus
Chapter 8: Compaction and Garbage Collection
Chapter 9: Exploring Milvus' Vector Engine
Chapter 10: How to Select a Vector Index
Chapter 11: Handling Complicated Search Requests
Chapter 12: Getting Started with Milvus Performance Benchmarking
Chapter 13: Stability and Reliability Evaluation for the Milvus Vector Database
Chapter 14: Scalability Evaluation for the Milvus Vector Database
Chapter 15: Getting Started with Milvus Performance Tuning
Chapter 16: Implementing Multi-Tenancy in Milvus
  • comprehensive_multi_tenancy_example.ipynb
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • database_level_multi_tenancy.ipynb
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • partition_based_multi_tenancy.ipynb
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • partition_key_multi_tenancy.ipynb
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • resource_group_multi_tenancy.ipynb
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
Chapter 17: How Milvus Works in AI
  • chatbot.ipynb
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • image_search.ipynb
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab

Requirements for this book

## Technical Requirements

To get the most out of this book, you should meet the following prerequisites:

Knowledge Requirements

  • Basic understanding of Python programming
  • Familiarity with machine learning concepts
  • Basic understanding of large language models (LLMs)
  • Experience working with APIs and AI development environments
  • Foundational knowledge of databases
  • Familiarity with containerization tools such as Docker
  • Basic understanding of orchestration tools such as Kubernetes
  • Experience with distributed systems (optional but beneficial)
  • No prior in-depth knowledge of vector databases is required

Software Requirements

  • Visual Studio Code (VS Code) or any preferred code editor
  • Python 3.x
  • Docker
  • Kubernetes (K8s)

Supported Operating Systems

  • macOS
  • Linux

Hardware Requirements

  • A machine with at least 8 GB RAM (recommended for running complex examples)
  • Access to a Python development environment

Additional Notes

  • If using the digital version of this book, it is recommended to type the code manually

  • This helps avoid errors caused by copying and pasting code

Get to know Authors

Yudong Cai Yudong Cai is a senior software engineer with over 20 years of experience in large-scale system development. As one of the founding members of the Milvus project, he helped build Milvus from the ground up and has been involved in the development and iteration of every version since its initial open-source release. His key contributions include delivering the first production-grade Range Search implementation, as well as the refactoring of the entire Milvus configuration system, alongside the design and implementation of numerous other critical features. He is also the original developer and key maintainer of Knowhere, Milvus' core vector computation engine, where he designed its architecture to support multiple hardware acceleration frameworks and a wide range of vector search algorithms.

Jeremy Zhu Jeremy Zhu is a quality assurance engineer at Zilliz, focused on ensuring the robustness and high performance of the Milvus vector database. His core responsibilities include designing comprehensive test cases, developing automated system test pipelines for diverse scenarios, and executing rigorous stress, recovery, and performance testing. Jeremy possesses deep expertise in chaos engineering, distributed systems testing, and test automation frameworks, playing a key role in maintaining Milvus' high-quality standards.

Xuan Yang Xuan Yang is a senior software engineer at Zilliz in China, passionate about designing high-performance, scalable distributed database systems. As a core Milvus contributor, she architected the DataNode module, implemented the compaction process, and led the L0 segment design. She is the primary maintainer of PyMilvus, the official Python SDK, and VectorDBBench, an open-source benchmarking framework for vector databases. She cares deeply about system stability and performance and is always eager to collaborate with the community to push the boundaries of large-scale AI and vector data infrastructure.

Bang Fu Bang Fu is a senior software engineer at Zilliz. With extensive experience in both Go and Python, he has actively contributed to the development of several key features for Milvus, including permission verification, request interception, incremental synchronization, and serverless metering functionalities. He is also interested in AI technology and led the development of the GPTCache project, which focuses on caching LLM responses to improve speed and reduce costs. In addition, he has participated in the development of the DeepSearcher project.

Other Related Books

About

The-Architecture-Handbook-for-Milvus-Vector-Database, by Packt Publishing

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages