
DevRel and Solutions @ Zilliz/Milvus; Prev: PM & TL @ Google Search Indexing
California, USA
Joined September 2016
- Tweets128
- Following109
- Followers120
- Likes51
Iโm a fan of Claude Code, an exceptional AI coder invented by @bcherny @_catwu. I wish its context could remember my entire codebase. However, fitting millions of lines of code in each call would burn so many tokens to drive me bankrupt. To solve this problem, we developed an MCP that efficiently stores large codebases in a vector database and searches for related sections to use as context.
The result is Claude Context, a semantic search MCP plugin for Claude Code.
Here's how it works:
๐ Semantic Code Search allows you to ask questions such as "find functions that handle user authentication" and retrieves the code from functions like ValidateLoginCredential(), overcoming the limitations of keyword matching.
โก Incremental Indexing: Efficiently re-index only changed files using Merkle trees.
๐งฉ Intelligent Code Chunking: Analyze code in Abstract Syntax Trees (AST) for chunking. Understand how different parts of your codebase relate.
๐๏ธ Scalable: Powered by @zillizโs scalable vector search, works for large codebases regardless of their size.
Thanks @claudeai @AnthropicAI for the inspiration โ Claude Code + semantic search is a powerful duo. ๐
2
3
136
Claude Context is open-sourced github.com/zilliztech/claudeโฆ
1
79
Iโve been asked by many Milvus users how BM25 works in a vector database. Well, there is no secret. If elasticsearch can implement that with reverted index, so does a vector database with sparse vector. Here's how we did it:
๐๐๐๐ฒ ๐๐ง๐ง๐จ๐ฏ๐๐ญ๐ข๐จ๐ง:
Traditionaly (I mean a year ago๐), Milvus required users to pre-compute BM25 score with term frequencies and corpus-level stats like avg doc length. However, as more docs are ingested, the stats is ever-changing. So that wasn't really practical in the real-world. Since version 2.5, Milvus can compute the BM25 score internally. Users just need to ingest raw text and let Milvus generate the sparse vector.
We also added a new ๐๐25 metric for the sparse vector field and compute the BM25 score dynamically during query time. This hides all the complexity from users and keep the search accurate. Moreover, Milvus can speed up the performance of BM25 search with optimizations unique to sparse vectors. In addition, Milvus doesn't have the burden of JVM as elasticsearch. As a result, the full-text search on Milvus can be 3-5x faster than elasticsearch.
Under the hood, Milvus stores raw ๐๐
(Term Frequency) values as the document vector, and keep the stats like avg doc length as system wide metadata. So the doc vectors don't need to be updated as avg doc length is changing over time. We call this ๐๐ฉ๐๐ซ๐ฌ๐-๐๐25.
๐๐จ๐ฐ ๐๐จ๐๐ฌ ๐๐ฉ๐๐ซ๐ฌ๐-๐๐25 ๐๐จ๐ซ๐ค ๐ข๐ง ๐๐ข๐ฅ๐ฏ๐ฎ๐ฌ:
- During text ingestion, ๐๐ข๐ฅ๐ฏ๐ฎ๐ฌ tokenizes the text, removes stop-words, and stems the tokens
- The tokenized text are converted into ๐ฌ๐ฉ๐๐ซ๐ฌ๐ ๐ฏ๐๐๐ญ๐จ๐ซ๐ฌ by Milvus and stored in a sparse vector field. Milvus also maintains global term distribution statistics across the corpus that are required to compute ๐๐๐
(Inverse Document Frequency) and ๐๐ฏ๐ ๐๐ฅ (average document length).
- Milvus builds the index for the sparse vectors for efficient search.
- At search time, Milvus uses the global term distribution stats to compute the BM25 score dynamically to perform the ๐๐๐ (๐๐ฉ๐ฉ๐ซ๐จ๐ฑ๐ข๐ฆ๐๐ญ๐ ๐๐๐๐ซ๐ฌ๐ญ ๐๐๐ข๐ ๐ก๐๐จ๐ฎ๐ซ) ๐ฌ๐๐๐ซ๐๐ก.
Want to learn more?
๐ Here is the full blog that unveils all the details: milvus.io/blog/full-text-seaโฆ
Drop a comment or DM me if you have any questions.
1
111
I think 2025 will be the year of multi-agent ๐ค๐ค๐ค
Google's new Agent-to-Agent (A2A) protocol tackles a critical challenge in agent systems: enabling multiple AI agents to work as a team. The framework enables agents to communicate, assign tasks, and synchronize information with each other. If MCP is the USB protocol of agent and peripheral devices, A2A is the HTTP protocol for agents to collaborate with each other, like a service mesh.
The A2A protocol carries several key features:
๐ Capability Discovery: Just like microservices need service discovery, so does an agent network. With A2A, agents can "show their capabilities" through JSON-formatted "Agent Cards" so that client agents can select the best remote agent to complete a task.
๐ ๏ธ Structured Task Lifecycle: Tasks are treated as entities with defined states such as pending, running, completed, or failed. This structure allows for clear tracking and management of tasks throughout their execution.
๐ Asynchronous Communication: Agents can handle long-running operations by communicating asynchronously, ensuring that tasks can progress without requiring constant real-time interaction.
๐งโ๐คโ๐ง Collaboration and Error Handling: The protocol supports collaborative task execution, where agents can seek clarification, request additional information, or handle errors through specialized recovery agents, enhancing resilience in task management.
To see how this works in action, let's imagine implementing robot recruiters with multi-agents:
1๏ธโฃ The recruitment manager can instruct the agent to search for candidates based on job descriptions, locations, skills, etc.
2๏ธโฃ The agent collaborates with other specialized recruitment agents, integrating with platforms like LinkedIn or internal HR systems, to summarize candidate suggestions using A2A.
3๏ธโฃ After the manager reviews the suggestions, the agent can arrange interviews or engage another agent to conduct background checks.
Early prototypes of agents like Devin (AI software engineer) and Manus (general AI agent) are just a start, what's gonna really unlock the potential of agents is vast adoption of tool-using (MCP) and cross-agent collaboration (A2A).
1
69
If you're struggling with ๐๐๐ ๐ช๐ฎ๐๐ฅ๐ข๐ญ๐ฒ, here are a few advanced RAG techniques that are most popular ๐ฌ
1. ๐๐ ๐๐ง๐ญ๐ข๐ ๐๐๐ / ๐๐๐๐ฉ ๐๐๐ฌ๐๐๐ซ๐๐ก The core idea of Deep Research and agentic RAG is self-reflection plus query routing. This strategy can optimize the overall process by reasoning about user queries to understand complex intentions and break them down into sub-queries. (e.g. "Differences between Milvus vs Zilliz Cloud?" โ
Sub-Query 1: "Milvus features" | Sub-Query 2: "Zilliz Cloud features") ๐ ๏ธ github.com/zilliztech/deep-sโฆ
2. ๐๐ฒ๐๐ซ๐ข๐ ๐๐๐๐ซ๐๐ก Combining semantic search and full-text search captures both contextual semantics and special terms for more comprehensive results. This approach requires a vector database like @milvus-io that supports both dense vector embeddings and BM25 scoring with sparse vectors. ๐ ๏ธ milvus.io/docs/hybrid_searchโฆ
3. ๐๐จ๐ง๐ญ๐๐ฑ๐ญ๐ฎ๐๐ฅ ๐๐๐ญ๐ซ๐ข๐๐ฏ๐๐ฅ To address the semantic fragmentation caused by chunking, Contextual Retrieval enriches each document chunk with relevant context before embedding. Leveraging a KV Cache reduces redundant computations, making the approach more cost-efficient. ๐ ๏ธ milvus.io/docs/contextual_reโฆ
4. ๐๐ซ๐๐ฉ๐ก ๐๐๐ RAG enhanced with Knowledge Graphs (KGs) to effectively handle complex entity relationships and multi-hop questions. By representing entities and their interrelations through knowledge engineering, Graph RAG enhances traditional semantic search, leading to a better understanding of intricate connections within text corpora. ๐ ๏ธ milvus.io/docs/graph_rag_witโฆ
A more detailed report ๐milvus.io/docs/how_to_enhancโฆ
A new SOTA ๐๐๐๐๐
๐
๐๐๐ ๐๐๐
๐๐ ๐๐๐ ๐ด๐๐๐๐๐๐๐
๐๐ ๐บ๐๐๐๐๐: ๐ BGE has just released BGE-VL-MLLM series.
What is Multimodal Search: Also known as ๐๐ฐ๐ฎ๐ฑ๐ฐ๐ด๐ช๐ต๐ฆ ๐๐ฎ๐ข๐จ๐ฆ ๐๐ฆ๐ต๐ณ๐ช๐ฆ๐ท๐ข๐ญ (CIR), it accepts a pair of image and text as input, using the text to augment the search intention expressed by the image, such as ๐ ๐ฉ๐ก๐จ๐ญ๐จ of ๐ด๐ฉ๐ฐ๐ฆ๐ด ๐ธ๐ช๐ต๐ฉ ๐ด๐ฑ๐ฆ๐ค๐ช๐ข๐ญ ๐ฅ๐ฆ๐ด๐ช๐จ๐ฏ and ๐ญ๐๐ฑ๐ญ "๐ฐ๐ฏ ๐ต๐ฉ๐ฆ ๐ฃ๐ฆ๐ข๐ค๐ฉ" to find images of ๐ฅ๐ฆ๐ด๐ช๐จ๐ฏ๐ฆ๐ณ ๐ด๐ฉ๐ฐ๐ฆ๐ด ๐ฑ๐ญ๐ข๐ค๐ฆ๐ฅ ๐ฐ๐ฏ ๐ต๐ฉ๐ฆ ๐ฃ๐ฆ๐ข๐ค๐ฉ. In multimodal-demo.milvus.io live demo we showed the futuristic search experience of image + text retrieval.
The recently released ๐๐๐-๐๐-๐๐๐๐-๐1 is trained with a techique from paper ๐ด๐๐๐๐ท๐๐๐๐: Massive Data Synthesis For Universal Multimodal Retrieval published by @BAAIBeijing. Similar to @GoogleDeepMind's MagicLens paper, it uses large scale data mining and synthetic data generation with VLM to construct a massive dataset of image tuples and the text that describes the relation between the pair. It then uses the dataset and contrastive learning to train the multimodal model. ๐๐๐-๐๐-๐๐๐๐-๐2 is further trained with fine-tuning on the MMEB benchmark training set, achieving even better retrieval quality. The models are available on @huggingface: huggingface.co/BAAI/BGE-VL-Mโฆ.
๐ง๐ป See attached code snippets for how to use it with vector db for search. Paired with a performant vector db @milvusio, the new models can unlock more use cases with multimodal search, such as data exploration and mining on massive scale of visual content.
๐ฎ We are excited to add this to the upcoming vector lake feature in Milvus 3.0 release. If you have that use case, such as multimodel retrieval on billions of items with serving-grade sub-100ms latency target or high tolerance for interactive exploration, please reach out to me!
I'm really impressed by @manusai โ It's close to my imagination of ๐๐ ๐๐จ๐ฆ๐ฏ๐ต ๐ช๐ฏ ๐ข๐ค๐ต๐ช๐ฐ๐ฏ, ๐ฃ๐ฆ๐บ๐ฐ๐ฏ๐ฅ ๐ฑ๐ข๐ด๐ด๐ช๐ท๐ฆ ๐ด๐ถ๐จ๐จ๐ฆ๐ด๐ต๐ช๐ฐ๐ฏ๐ด. ๐๐ฐ ๐ด๐ฉ๐ฐ๐ต๐จ๐ถ๐ฏ ๐ฑ๐ฐ๐ด๐ช๐ต๐ช๐ฐ๐ฏ, ๐ต๐ข๐ฌ๐ฆ ๐ต๐ฉ๐ฆ ๐ฅ๐ณ๐ช๐ท๐ฆ๐ณ ๐ด๐ฆ๐ข๐ต ๐ฑ๐ญ๐ฆ๐ข๐ด๐ฆ.
I like the idea of it: From "Idea"๐ก to "Result" โ๏ธ
End-to-End Automation and sophisticated tool using that can do:
PPT Creation ๐๏ฝStock Analysis ๐๏ฝProperty Search ๐ ๏ฝTravel Planning ๐๏ฝContract Review โ๏ธ๏ฝAudio Production ๐ง
This feels a true "agent": automating workflows from idea โ execution โ delivery to close complex tasks in one click.
๐ก The core tech under the hood: A "Triple-Engine" Architecture
โซ๏ธ Smart Model ร Tool Integration ร Task Orchestration
โซ๏ธ Cloud-based async execution for long-chain tasks.
โซ๏ธ Memory ร Knowledge Base
Historical data + real-time learning = AI evolves from "responder" to "collaborator"!
๐ฎ Next-Level: What if it's equipped with a highly scalable vector db @milvusio?
โ Infinite long-term memory, always context aware
โ Knowledge base for massive proprietary data
โ Multimodal retrieval to not limited to text
I think when AI stops being a "suggestion box" and becomes a true results-maker, the future is here ๐ค
2024 was a transformative year for Information Retrieval! ๐ง Weโve witnessed the production-scale adoption of RAG and breakthroughs in Graph RAG, multi-modality, ColBERT/ColPali, and Text2SQLโredefining search infrastructure, data discovery, and knowledge synthesis.
Deep learning-powered IR now seamlessly integrates LLMs, hybrid search, rerankers, and structured knowledge tools like Knowledge Graphs, making retrieval more precise and scalable than ever. This is a new Age of Discovery for humanity, as groundbreaking as Columbus reaching the New World over 500 years ago. Iโm thrilled to be part of this exploration!
With Milvus 3.0, we are pushing the boundaries of vector databasesโevolving from a search-serving infrastructure to a comprehensive unstructured data platform. And with 2025 on the horizon, the next wave of innovation is just beginning.
๐ Read more about my reflection on IR in 2024: buff.ly/4k8ItTJ
#AI #InformationRetrieval #RAG #ColBERT #Text2SQL #LLMs #DeepLearning #VectorDatabases
1
109
๐ Deep Research is impressive! So we built one using open-source tools: @langchain + @milvusio + @deepseek_ai. Itโs amazing how far open source can take you these days!
But thereโs moreโthis agent isnโt limited to the public web. It can search private data in your vector DB, deployed on-prem or in your cloud VPC (see Zilliz Cloud BYOC zilliz.com/bring-your-own-clโฆ)โall while keeping your data secure.
Open source gives you the flexibility to shape this design pattern however you need. Check out the sample report from a demo research agent by @stefan_webb! ๐ฅ #AI #VectorDB #OpenSource
โญ๏ธ"I Built a Deep Research with Open Sourceโand So Can You!"
Youโve probably heard about OpenAIโs latest release, Deep Researchโdesigned for more detailed, informed, and nuanced responses. But how does the underlying technology actually work?
Our partner, Milvus, has a new post that breaks it down, showing how to build a research assistant similar to Deep Research using open-source tools. It combines LangChain for RAG, Milvus as the vector database, and DeepSeek R1 as the reasoning model.
The post explores key concepts behind agents and reasoning modelsโtool usage, memory, structured output, and planningโgiving you a hands-on look at how this powerful capability can be unlocked.
Check it out: milvus.io/blog/i-built-a-deeโฆ
Now @milvusio can do full text search, period.
milvus.io/docs/full-text-seaโฆ
71
PII protection is a critical step to responsible AI. I'm so glad that HydroX AI has demonstrated this innovative LLM-based PII masking technique with Milvus and Zilliz Cloud. Looking forward to more secure and compliant RAG applications unlocked by PII Masker ๐ github.com/HydroXai/pii-maskโฆ
๐ฃ We are launching PII Masker in collaboration with our friends @milvusio and @zilliz_universe !
A robust, privacy-first tool to detect and mask PII (personally identifiable information) using DeBERTa-v3. With high precision, easy integration, and compliance-ready features, PII Masker aims to secure data and protect privacy. Made for developers, companies, and anyone focused on keeping data safe in an AI-driven world.
Check it out and give us a star! โญ๏ธ
github.com/HydroXai/pii-maskโฆ
#Privacy #DataProtection #AI
2
94
Tmr 10/15 Tue we'll host a themed meetup on generating structured information such as json, labels, RESTful request, from unstructured data. Critical LLM use cases such as label extraction and function calling are relying on these techniques. Moreover, this time we host it in a special place, among snowboards and bikes๐
Come to Redwood City and learn more! ๐ lu.ma/6p7bwucy
Meetup Monday! ๐ฅ Join us TOMORROW in Redwood City for great talks, food, drinks, and networking. Topic is Structured Output from Unstructured Input
โก๏ธ Constrained Sampling from Large Language Models: Producing Structured Output @stefan_webb @milvusio
โก๏ธ Infinite world generation with Outlines @just_cameron @dottxtai
โก๏ธ BAML: Cheaper, faster, and more accurate function calling - without any fine-tuning Vaibhav from @boundaryML
Save your spot: lu.ma/6p7bwucy
#Vectordatbase #UnstructuredData #Meetup #Event #Milvus
109
Milvus is an open-source community within the @linuxfoundation, embracing an open spirit and a collaborative culture. We work with over 30 projects and partners to foster the ecosystem of GenAI app development. In an interview with my friend Alexy, I talked about the principles we follow in running the @milvusio:
๐ค Inclusiveness and diversity: Our community includes data infrastructure experts, machine learning researchers, app developers, and even those new to software development. We aim to ensure that everyone benefits from the technology, so we advocate for the AI tech stack in a way that is also useful to developers without machine learning experience.
๐ซถ Sharing is caring: We share the knowledge that data and search engineers have gained over a decade of building production systems, empowering developers with the modern AI stack of embedding models, LLMs, and RAG frameworks. Many of these lessons are hard-earned from real-world production challenges, so we provide valuable insights for todayโs landscape.
๐ฅ Have fun and make friends: Technology is only valuable when it serves humanity. While we all build AI solutions within the community, we donโt want to become robots. We host both online and offline events to create opportunities for people to connect and learn from one another.
Hereโs the full interview: youtu.be/1HaF2_wgrs8?t=89
If you also like to embark the AI journey with friends, join us at milvus.io/community and I hope to see you next time in our community events: lu.ma/6p7bwucy!
I think the latest OpenAI release may indicate that the LLM โhypeโ is entering its landing phase. On one hand there isn't breakthrough like next-gen GPT, on the other hand a lot of product-level advancements are in place. Some signals:
1๏ธโฃ An all-in-one platform for the entire model lifecycle: Instead of a one-size-fits-all API service for one model family, OpenAI is creating a platform that covers data acquisition, training/fine-tuning/distillation, and evaluationโaddressing the entire model development and customization cycle. This suggests there isnโt a single model that fits all use cases. This probably also indicate the Llama family is strong in competition as the enterprise users have to do some customization anyways and Llama is more flexible in deployment.
2๏ธโฃ Speech synthesis: I donโt think text should be the native interface for human-machine interaction. Who prefers texting when a phone call or video chat is available? The future will be speech-to-speech experiences as long as technology allows. While the release of the Real-time API solves the functionality, the next challenge is cost reduction. Currently, itโs too expensive.
3๏ธโฃ Prompt Caching: Honest Iโm surprised this only came out now. KVCache has already been supported by other players like Anthropic. This is crucial for use cases like chatbots with memory (reusing history) or text corpus mining (fixed documents as prefixes with various tasks, see generating background knowledge as an example here github.com/milvus-io/bootcamโฆ).
The full press release from OpenAI DevDay: openai.com/devday/
2
63
Today marks an incredible day for Zilliz Cloud (fully-managed Milvus)!
We've just launched a pack of new features that give more control over your vector data and boost your AI application performance ๐
โ
Migration Service: Move your data freely, say goodbye to vendor lock-in!
๐ Fivetran Connector: Simplify unstructured data search from 500+ sources
๐ฆ Multi-replica Functionality: Boost QPS and reliability
๐ Auto-scaling: Optimize resources dynamically
๐ 99.95% SLA: Rock-solid reliability for your critical AI apps
๐ Enhanced Observability: Keep your finger on the pulse of your system
Want to dive deeper into how these features can supercharge your AI projects? Check out ourย latest blog postย for all the juicy details! ๐
zilliz.com/blog/zilliz-sep-2โฆ
#AIInnovation #VectorSearch #ZillizCloud #Milvus @milvusio @zilliz_universe
Some recent trends on RAG, which I refer to as the โdemocratizationโ of Information Retrieval:
โ๏ธ Less obsession with chunking tricks. The focus has shifted toward more systematic data mining and data cleaning. A gem in this process is Knowledge Engineering. By extracting structured knowledge triples (entity - relation - entity) using LLMs, it scales the process of converting information from raw text into a more organized format. These triples can be represented as text and embedded into vectors for storage and efficient retrieval in vector databases, complementing vanilla RAGโs text semantic retrieval and achieving double-digit quality improvements.
๐น Advances in multi-modality models now make it possible to utilize information from media data. Pictures of tables can be processed by LLMs to generate text descriptions, and photos can be retrieved using both image and text instructions. Multimedia data can also be inserted into LLMs for answer generation.
โ๏ธ A well-connected data ecosystem is forming. Data is no longer limited to PDFs in S3 buckets. Information from business apps such as Salesforce and Zendesk, as well as various data sources like GitHub issues and Discord messages, can be cleaned and loaded into vector databases for search via data movement services.
๐ฅ๏ธ More options for UI and out-of-the-box RAG experiences. A suite of full-stack frameworks makes deploying an app with RAG as simple as a double-click or docker compose. There are also configurable frontend components available to build a customized UI experience.
In a recent blog, I listed the projects and startups that are thriving in this wave of Information Retrieval, many of which have convenient integrations with the Milvus vector database. Check it out to learn more: ๐zilliz.com/blog/landscape-ofโฆ
Had a very delightful panel discussion on LLM & agents with @cgnorthcutt Cleanlab @davitb Krisp @RLanceMartin LangChain, moderated by @yoheinakajima in #genaisummit2024. I shared a few insights from our practice at @zilliz_universe working with customers that build agentic solutions:
๐ง Memory is still a very chanllenging component to make right. Even with embedding models and vector database, managing memory is a big data engineering problem.
๐ฐThis might be an old topic, but long-context does NOT rule it all. Consumer apps simply can't afford $3 per conversation, so fitting all chat history into the context is not a practical option, even though you could use 1M tokens if willing to spend $3.
๐ Perception is as important as tool usage for an agent to be smart. With multi-modal LLMs and embeddings, we will soon see agents with "eyes" and other types of sensors that can react to their surrounding environment by taking in more than just natural language input.
๐ ๏ธ Despite the popularity of the topic, there is still a scarcity of good open-source tools for building effective agents. So we integrate with some of the best frameworks, like @MemGPT, to help AI developers build better agents using @milvusio vector DB: milvus.io/docs/integrate_witโฆ.
2
179
Today in our meetup at SF, I'll introduce @milvusio integration with @SnowflakeDB Container Services, and our guest speakers @mikedelbalso from Tecton, @chaoyu_ from BentoML, @Yiszzzz from Relari will share about every aspect of RAG, on models, serving infra, dataset, quality and more. Come join us in person or online! Event details๐ lu.ma/cw8q5dhx
Here is the documentation for Milvus in Snowflake's Container Service: milvus.io/docs/integrate_witโฆ
Code reviews are critical but often slow down productivity. It's a great use case for AI frameworks that can provide real-time feedback.
Even if not immediately replaceable by AI, automating aspects like basic checks and line coverage can enhance consistency and speed, allowing developers to focus on complex issues that require human intuition and minimizing tech debt for the future.
Code reviews don't do what they're supposed to. We need to rethink how we approach reviews.
sourcery.ai/blog/rethinking-โฆ
3
169
Not only does LLM need guardrails, but the retrieval component in RAG does too. WhyHow.AI combines knowledge graphs and rule-based retrieval with vector search, improving the accuracy and control of question answering. With only vector similarity search, developers often struggle to make RAG operate as expected and ensure users access only the data they are supposed to see. WhyHow provides open-source tools to extract metadata, seamlessly integrated with Milvus's metadata filtering feature to enable rule-based retrieval. This gives developers precise control over the chunks they want to include. Excited to see @milvusio's collaboration with Chris and @chiajy2000 made this happen! Check out the details about rule-based-retrieval at github.com/whyhow-ai/rule-baโฆ
1
3
219
It's only been 3 days since OpenAI released GPT-4o, their first natively fully multimodal model.
Developers have already built incredible things with it. I came across several impressive tools powered by GPT-4o so far:
6
4
179
Building agents with GPT-4o: xitter.cf/ashpreetbedi/status/17โฆ
Agents with gpt-4o from scratch ๐ฅ in 11 minutes we'll build:
๐ Web Search Agent (2:40)
๐ Finance Agent (3:30)
๐ซก Hackernews Agent (5:50)
๐ Data Analysis Agent (8:10)
๐๏ธ Research Agent (9:35)
code: phidata.link/assistants
1
109















