█

AI/TLDR

Buy me a coffee
Buy me a coffee

cuVS

GPU-accelerated vector search and clustering from RAPIDS

Vector DatabasesOpen source
Language
C++
$pip install cuvs
IN SHORT

What is cuVS?

cuVS is a RAPIDS library that runs approximate nearest neighbor (ANN) search and clustering on NVIDIA GPUs. It implements algorithms such as CAGRA for vector similarity search, and you can call it directly or use it through databases and libraries that have integrated it. It sits in the Vector Databases category of the Retrieval & Knowledge (RAG) tools and is open-source, written in C++.

Overview

cuVS is a RAPIDS library that runs approximate nearest neighbor (ANN) search and clustering on NVIDIA GPUs. It implements algorithms such as CAGRA for vector similarity search, and you can call it directly or use it through databases and libraries that have integrated it.

It targets developers who need fast index builds and low-latency or high-throughput vector search, as well as people doing data mining tasks like clustering, k-NN graph construction, and visualization (UMAP, t-SNE, K-means, HDBSCAN). One stated goal is interoperability: build an index on the GPU and deploy it on the CPU.

As an embedded, in-process vector engine, cuVS gives you the building blocks for similarity search rather than a standalone server. It is built on top of the RAPIDS RAFT library and offers Python, C++, and C APIs so it can be embedded into other tools and pipelines.

What it does

  • Approximate nearest neighbor search on the GPU, including the CAGRA graph-based algorithm
  • Clustering and k-NN graph construction for data mining and visualization workflows
  • Fast index build plus latency-critical and high-throughput search
  • Interoperability: build an index on the GPU and deploy it on the CPU
  • Python, C++, and C APIs for embedding into other libraries and databases
  • Built on the RAPIDS RAFT library of GPU machine learning primitives

Getting started

cuVS ships pre-built packages for conda and pip; the snippet below builds a CAGRA approximate nearest neighbors index with the Python API.

Install cuVS

cuVS provides pre-built packages through conda and pip (and tarball). See the Build and Install Guide for the package that matches your CUDA version and language.

bashbash
pip install cuvs

Build a CAGRA index in Python

Load your dataset, set the index parameters, and call cagra.build to train an approximate nearest neighbors index.

pythonpython
from cuvs.neighbors import cagra

dataset = load_data()
index_params = cagra.IndexParams()

index = cagra.build(index_params, dataset)

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Add GPU-accelerated semantic search to a RAG or recommender pipeline over embeddings
  • Embed GPU vector search inside an existing vector database or application via the C/C++/Python APIs
  • Build k-NN graphs to feed clustering and visualization algorithms like UMAP, t-SNE, or HDBSCAN
  • Build an index on the GPU and deploy search on the CPU when GPUs are not available at serving time

How cuVS compares

cuVS alongside other open-source vector databases tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Supabase★ 116kManaged Postgres backend whose Vector toolkit (pgvector) stores, indexes, and queries embeddings next to transactional data.
Redis Cloud★ 77.8kFully-managed Redis with built-in vector search, offering low-latency similarity and hybrid queries over any embeddings.
Milvus★ 46.8kA distributed vector database for storing and searching billions of embeddings at scale, with multiple index types and Kubernetes-native deployment.
FAISS★ 42kA library from Meta for efficient similarity search and clustering of dense vectors, with both exact and approximate indexes.
Qdrant★ 35.8kA Rust-based vector search engine that stores embeddings with rich payload filtering for semantic search and recommendation systems.
Chroma★ 29.8kA developer-focused vector database designed for quickly building retrieval and RAG features with a simple Python and JavaScript API.
pgvector★ 23.9kA PostgreSQL extension that adds a vector data type and similarity search so you can store and query embeddings inside an existing Postgres database.
cuVS★ 909GPU-accelerated vector search and clustering from RAPIDS