Efficient Dense Vector Search within Knowledge Graph Content Embeddings
Benedikt Kantz, Tobias Schreck, Gianmaria Silvello
Abstract
Knowledge graphs are a core component of today's knowledge infrastructure, supporting reasoning and anchoring knowledge systems to verifiable facts. RDF stores and SPARQL engines fulfill this function, enabling a range of retrieval and inference tasks on structured knowledge. Coupling them with Language Models (LMs) extends RAG toward neurosymbolic reasoning, where structured queries gate or re-rank generative outputs. This line of reasoning requires that SPARQL evaluation natively support tensor operations on dense embeddings, enabling multimodal querying and learned similarity-based ranking to be expressed together with graph-structural constraints. This approach is feasible only if the engine can efficiently perform dense vector search. We present QLever-Unified Indexed Vector Embedding Retrieval (QUIVER), an extension to QLever that adds native support for dense vector retrieval within RDF knowledge graphs. It implements three optimizations: engine-level registration of tensor functions, vocabulary-time parsing of JSON-encoded vectors, and a virtual SERVICE that exposes a vector index inside the query. We propose two new benchmarks: an extension of Berlin Sparql Benchmark (BSBM) with text embeddings and an extension of DBpedia with image embeddings. Against the baselines, vocabulary-time parsing alone yields median speedups of up to 41.9x on BSBM and 20x on DBpedia for single-type ranking; adding an approximate nearest-neighbor index yields speedups of 355x on BSBM and 97.8x on DBpedia. The index further makes cross-modal vector joins on DBpedia feasible in seconds, whereas all non-indexed configurations time out.
Create a lesson
Related papers
RiftANN: Efficient Graph Traversal for Vector Search with RDMA-Based Memory Disaggregation
Shared title terminology · Qi Lin, Zhenyu Zhang, Jun Kong et al.
COMPASS: Steering Distributed Vector Search with Scientific Knowledge Graphs
Shared title terminology · Song Young Oh, Amal Gueroudji, Seth Ockerman et al.
Pelorus: Warped-Product Graph Indexing for Hyperbolic Vector Search
Shared title terminology · Wenxuan Xiao, Xu Cao
A Power Law in Logarithm's Clothing: On the Scalability of Graph-Based Vector Search
Shared title terminology · Sajad Faghfoor Maghrebi, Navid Eslami, Niv Dayan
GenSPARQL: A Generative Extension of SPARQL for Incomplete Knowledge Graphs
Shared title terminology · Jingcheng Wu, Yi Wang, Hongkuan Zhou et al.
Errpedia: Is Your Exact k-NN Vector Search Really Exact?
Shared title terminology · Yinuo Deng, Ying Zhang, Hanchen Wang et al.