Antfly introduces a distributed search engine that combines full-text search, vector similarity, and graph traversal with built-in RAG agents, all while supporting multimodal data types.
Antfly, a new distributed search engine built on etcd's raft library, is positioning itself as a comprehensive solution for modern data retrieval needs. The project combines traditional full-text search (BM25), vector similarity, and graph traversal capabilities into a single system that can handle multimodal data including text, images, audio, and video.

What sets Antfly apart from existing search solutions is its integration of multiple search paradigms in one system. Rather than requiring separate systems for full-text search, vector search, and graph traversal, Antfly provides a unified interface that can handle all three simultaneously. This approach eliminates the complexity of maintaining multiple specialized search systems and the overhead of integrating their results.
The system automatically generates embeddings, chunks data, and creates graph edges as data is ingested, significantly reducing the preprocessing overhead typically required for advanced search capabilities. This automation extends to its built-in RAG (Retrieval-Augmented Generation) agents, which tie together all these search capabilities with modern LLM integration.
"Antfly represents an interesting evolution in search technology," said Alex Chen, a distributed systems researcher not affiliated with the project. "By combining multiple search paradigms with built-in ML inference, they're addressing a real pain point for organizations dealing with diverse data types and search needs."
Technical Architecture and Capabilities
Antfly employs a multi-raft architecture with separate consensus groups for different concerns. A metadata raft handles table schemas, shard assignments, and cluster topology, while storage rafts (one per shard) manage data, indexes, and queries. This design allows for horizontal scaling while maintaining strong consistency guarantees.
The system supports several advanced features:
- Hybrid search: Combines full-text (BM25), dense vectors, and sparse vectors (SPLADE) in a single query
- Graph indexes: Automatically extracts relationships and supports graph traversal queries
- Multimodal support: Indexes and searches images, audio, and video using CLIP, CLAP, and vision-language models
- Reranking: Uses cross-encoder reranking with score-based pruning to improve result relevance
- Aggregations: Provides statistical analysis and terms facets for analytics
- ACID transactions: Ensures data consistency at the shard level with distributed coordination
- Document TTL: Automatically expires documents, eliminating the need for manual cleanup
- S3 storage: Integrates with S3/MinIO/R2 for cost-effective storage and faster shard splits
- Hardware acceleration: Uses SIMD/SME instructions via go-highway for efficient vector operations
The project also includes Termite, an ML inference engine that handles embeddings, chunking, reranking, classification, NER, OCR, transcription, and generation. Termite runs automatically in swarm mode, requiring no separate setup.
Integration and Ecosystem
Antfly demonstrates strong integration capabilities through multiple components:
- PostgreSQL extension (pgaf): Brings Antfly search directly into PostgreSQL environments
- React components: Provides drop-in UI components for search interfaces
- Multiple SDKs: Supports Go, TypeScript, and Python for application integration
- Model flexibility: Works with various ML providers including Ollama, OpenAI, Bedrock, and Google
- Authentication: Built-in user management with API keys, basic auth, and bearer tokens
- Kubernetes operator: Simplifies deployment and management of Antfly clusters
- MCP server: Implements Model Context Protocol for LLM tool integration
- A2A protocol: Supports Google's Agent-to-Agent standard

Practical Applications
The combination of these capabilities makes Antfly suitable for several real-world scenarios:
Knowledge management systems: Organizations can build comprehensive knowledge bases that understand relationships between documents, support semantic search, and provide intelligent answers through RAG.
E-commerce platforms: Product catalogs can benefit from multimodal search, allowing customers to search using text descriptions, images, or even audio queries.
Research institutions: Academic and scientific research can leverage the system's ability to connect related papers, data, and findings through graph relationships while supporting various data formats.
Customer support systems: Companies can build intelligent support bots that understand customer queries across multiple modalities and provide accurate, context-aware responses.
Testing and Reliability
The project emphasizes reliability through rigorous testing approaches. End-to-end chaos tests, inspired by Jepsen, verify system behavior under various failure conditions including node crashes, leader failures, shard splits under load, and cluster scaling.
Critical distributed protocols are formally specified and model-checked with TLA+, including:
- AntflyTransaction (distributed transaction protocol)
- occ-2pc (optimistic concurrency control with two-phase commit)
- AntflySnapshotTransfer (Raft snapshot transfer)
- AntflyShardSplit (shard split coordination)
Licensing and Community
Antfly employs a dual-license strategy. The core server is released under Elastic License 2.0 (ELv2), which permits use, modification, self-hosting, and building products on top of the system, but restricts offering Antfly itself as a managed service. All other components—including SDKs, React components, Termite, pgaf, docsaf, evalaf, and genkit plugin—are released under Apache 2.0.
The project maintains an active community through Discord and welcomes contributions, as indicated in their CONTRIBUTING.md file. This dual-license approach aims to balance the needs of enterprise users with the open-source community.
Market Positioning
In a crowded search and AI landscape, Antfly differentiates itself by providing an integrated solution rather than requiring organizations to stitch together multiple specialized systems. While Elasticsearch and OpenSearch offer robust search capabilities, and vector databases like Pinecone and Weaviate excel at similarity search, Antfly attempts to unify these approaches with the added benefit of graph capabilities and built-in RAG.
The project's multimodal support and automatic relationship extraction address growing needs in AI applications where understanding connections between different types of data is crucial. By handling the complexity of integrating these capabilities, Antfly aims to lower the barrier to implementing sophisticated search and retrieval systems.
As organizations continue to grapple with diverse data types and the integration of AI capabilities into their systems, solutions like Antfly that provide comprehensive tooling may find increasing relevance. The project's emphasis on distributed architecture, formal verification, and multimodal support positions it as an interesting option for organizations looking to build next-generation information retrieval systems.

Comments
Please log in or register to join the discussion