TigerVector: Supporting Vector Search in Graph Databases for Advanced RAGs
Shige Liu, Zhifang Zeng, Li Chen, Adil Ainihaer, Arun Ramasami, Songting Chen, Yu Xu, Mingxi Wu, Jianguo Wang
TL;DR
TigerVector addresses the need to ground LLMs with both unstructured and structured data by unifying vector search and graph query within a native graph database. It introduces an embedding data type, decoupled vector storage, and MVCC-based incremental updates, all integrated through GSQL to enable declarative and procedural vector searches, graph-pattern queries, and their combination. Through extensive experiments, TigerVector demonstrates superior vector-search performance and scalability relative to Neo4j, Amazon Neptune, and competitive with Milvus, while delivering significant cost advantages and robust hybrid search capabilities. The work offers a practical path toward unified retrieval for RAG systems and suggests design principles applicable to other graph databases seeking efficient vector search support.
Abstract
In this paper, we introduce TigerVector, a system that integrates vector search and graph query within TigerGraph, a Massively Parallel Processing (MPP) native graph database. We extend the vertex attribute type with the embedding type. To support fast vector search, we devise an MPP index framework that interoperates efficiently with the graph engine. The graph query language GSQL is enhanced to support vector type expressions and enable query compositions between vector search results and graph query blocks. These advancements elevate the expressive power and analytical capabilities of graph databases, enabling seamless fusion of unstructured and structured data in ways previously unattainable. Through extensive experiments, we demonstrate TigerVector's hybrid search capability, scalability, and superior performance compared to other graph databases (including Neo4j and Amazon Neptune) and a highly optimized specialized vector database (Milvus). TigerVector was integrated into TigerGraph v4.2, the latest release of TigerGraph, in December 2024.
