• Home
  • Categories
  • Pricing
  • Submit
    Built with
    Ever Works
    Ever Works

    Connect with us

    Stay Updated

    Get the latest updates and exclusive content delivered to your inbox.

    Product

    • Categories
    • Pricing
    • Help

    Clients

    • Sign In
    • Register
    • Forgot password?

    Company

    • About Us
    • Admin
    • Sitemap

    Resources

    • Blog
    • Submit
    • API Documentation
    All product names, logos, and brands are the property of their respective owners. All company, product, and service names used in this repository, related repositories, and associated websites are for identification purposes only. The use of these names, logos, and brands does not imply endorsement, affiliation, or sponsorship. This directory may include content generated by artificial intelligence.
    Copyright © 2025 Awesome Vector Databases. All rights reserved.·Terms of Service·Privacy Policy·Cookies
    Decorative pattern
    Decorative pattern
    1. Home
    2. Relational Databases
    3. ClickHouse Vector Search

    ClickHouse Vector Search

    Vector similarity search in ClickHouse using HNSW indexes for high-performance approximate nearest-neighbor (ANN) searches. Supports both exact brute-force and indexed search approaches with innovative QBit data type for query-time precision adjustment.

    Overview

    As of version 25.6.2.5, ClickHouse supports vector similarity indexing using the HNSW algorithm, enabling high-performance approximate nearest-neighbor (ANN) searches within the analytical database.

    Supported ANN Index Types

    HNSW (Hierarchical Navigable Small World)

    • Current state-of-the-art method for approximate vector search
    • Based on hierarchical navigable small world graphs algorithm
    • Implemented via the USearch library
    • Standard for fast vector retrieval

    Annoy (Previously Supported)

    • Based on the ANNOY library in C++ from Spotify
    • Used in Spotify's music recommendations
    • Currently experimental in ClickHouse

    Search Approaches

    ClickHouse offers two main approaches for vector search:

    1. Brute-force search using distance functions

      • Highly accurate but slower
      • No index required
      • Best for smaller datasets
    2. Indexing vector fields

      • Faster but less precise
      • Uses ANN indexes (HNSW)
      • Suitable for large-scale deployments

    QBit Data Type

    ClickHouse introduced a new data type QBit where no early decisions are needed and you can adjust precision and speed trade-off directly at query time. This allows for flexible optimization based on specific query requirements.

    Memory & Performance Considerations

    • The vector similarity index must be fully loaded from disk into main memory to perform searches
    • Vector index is constructed fully in memory and then saved to disk
    • Provides fast retrieval for billion-scale vector datasets

    Use Cases

    • Real-time analytics with vector search
    • Recommendation systems
    • Semantic search in data warehouses
    • Combining analytical queries with similarity search
    • Large-scale embedding storage and retrieval

    Architecture

    ClickHouse's vector search is built into its MergeTree table engine family, allowing seamless integration with existing analytical workloads and SQL queries.

    Pricing

    Free and open-source (Apache 2.0 license). Commercial cloud offerings available through ClickHouse Cloud.

    Surveys

    Loading more......

    Information

    Websiteclickhouse.com
    PublishedMar 26, 2026

    Categories

    1 Item
    Relational Databases

    Tags

    3 Items
    #clickhouse#hnsw#analytics

    Similar Products

    6 result(s)

    TiDB Vector Search

    Built-in vector search capability in TiDB, a MySQL-compatible database, enabling seamless storage and search for vectors using SQL with HNSW indexes. Eliminates the need for separate vector databases by combining operational and vector data.

    HNSWlib

    A fast C++/Python library for Hierarchical Navigable Small World (HNSW) graph-based vector search, offering high performance for dense vector retrieval with incremental insert support.

    Featured

    HNSW-IF

    Hybrid billion-scale vector search method combining HNSW with inverted file indexes, enabling cost-efficient search by keeping centroids in memory while storing vectors on disk.

    Featured

    Rockset

    Real-time analytics database with vector search capabilities, built on RocksDB with converged indexing. Acquired by OpenAI in 2024 to power retrieval infrastructure. This was a commercial service.

    Featured

    DuckDB

    An in-memory, open-source, and free analytical database that speaks SQL, heavily based on vectorization. It can store and process vector embeddings using Array and List data types to enable vector search, bridging the gap between data engineering and AI workflows with fast response times.

    Featured

    EmbeddixDB

    High-performance vector database designed for LLM memory and RAG applications. Provides an MCP (Model Context Protocol) server for seamless integration with AI assistants like Claude, and a REST API for traditional applications. Supports HNSW and flat indexes with 256x memory compression via quantization, flexible storage backends, auto-embedding, and advanced analytics.