• Home
  • Categories
  • Tags
  • Pricing
  • Submit
    Decorative pattern
    1. Home
    2. Sdks & Libraries
    3. LibVQ

    LibVQ

    LibVQ is an open-source toolkit for optimizing vector quantization and efficient neural retrieval, offering training and indexing components that can serve as the core of high-performance approximate nearest neighbor search and vector database systems.

    🌐Visit Website

    About this tool


    title: LibVQ slug: libvq category: sdks-libraries source_url: https://github.com/staoxiao/LibVQ images:

    • https://opengraph.githubassets.com/1/staoxiao/LibVQ tags:
    • vector-quantization
    • neural-search
    • ann

    Description

    LibVQ is an open-source library for dense-retrieval–oriented vector quantization. It provides training and indexing components that optimize vector quantization for retrieval quality, and can serve as the core of high-performance approximate nearest neighbor (ANN) search and vector database systems.

    Features

    • Dense retrieval–oriented vector quantization

      • Designed specifically to improve retrieval quality compared with conventional VQ methods (e.g., IVF, PQ, OPQ).
      • Targets real-time and memory-efficient dense retrieval scenarios.
    • Knowledge distillation–based learning

      • Uses knowledge distillation to learn VQ parameters from off-the-shelf embeddings.
      • Can directly operate on existing dense embeddings without modifying upstream models.
      • Aims to achieve strong retrieval metrics (e.g., MRR@10, Recall@10/100) compared to other VQ-based ANN indexes.
    • Flexible usage modes

      • Train only VQ/index parameters while keeping encoders fixed.
      • Jointly adapt and train the query encoder together with the index.
      • Supports different training strategies (e.g., contrastive index training, distillation-based index training).
    • Rich input condition support

      • Works with only off-the-shelf embeddings when no extra signals are available.
      • Optionally leverages extra supervision such as:
        • Relevance labels.
        • Source queries.
      • Can be configured for both labeled and no-label (unlabeled) training settings.
    • PyTorch-based training

      • Training pipeline implemented with PyTorch.
      • Configurable for different computation resources and training setups.
    • FAISS-backed ANN deployment

      • Exports trained VQ parameters to FAISS-based indexes (e.g., IndexPQ, IndexIVFPQ).
      • Resulting indexes are directly deployable for large-scale dense retrieval.
      • Integrates with common ANN backends similar to FAISS, ScaNN, etc.
    • Example workflows and benchmarks

      • Example pipelines for constructing and training indexes (documented in the Docs and examples folders).
      • MSMARCO example demonstrating:
        • IVFPQ and PQ settings with a fixed compression ratio (e.g., 96x compression).
        • Multiple training recipes, including:
          • contrastive_index
          • distill_index
          • distill_index_nolabel
          • contrastive_index-and-query-encoder
          • distill_index-and-query-encoder
          • distill_index-and-query-encoder_nolabel
        • Reported metrics such as MRR@10, Recall@10, Recall@100 for these methods and for baseline FAISS/ScaNN indexes.
    • Simple installation from source

      • Installable via pip after cloning the repository:
        • git clone https://github.com/staoxiao/LibVQ.git
        • cd LibVQ
        • pip install .

    Installation

    git clone https://github.com/staoxiao/LibVQ.git
    cd LibVQ
    pip install .
    

    Pricing

    LibVQ is an open-source library; no pricing information or paid plans are specified.

    Surveys

    Loading more......

    Information

    Websitegithub.com
    PublishedDec 25, 2025

    Categories

    1 Item
    Sdks & Libraries

    Tags

    3 Items
    #vector quantization#Neural Search#Ann

    Similar Products

    6 result(s)
    SymphonyQG

    SymphonyQG is a research codebase and method that integrates vector quantization with graph-based indexing to build efficient approximate nearest neighbor (ANN) indexes for high-dimensional vector search. It targets vector database and similarity search scenarios where combining compact codes with navigable graphs can improve recall–latency tradeoffs and memory footprint.

    PUFFINN

    Parameterless and Universal Fast Finding of Nearest Neighbors - an LSH-based library for approximate nearest neighbor search with probabilistic guarantees. Features a parameterless design requiring only memory budget and result quality specifications.

    ANN Library

    A C++ library for approximate nearest neighbor searching in arbitrarily high dimensions, developed by David Mount and Sunil Arya at the University of Maryland. Provides data structures and algorithms for both exact and approximate nearest neighbor searching.

    FLANN (Fast Library for Approximate Nearest Neighbors)

    A C++ library for performing fast approximate nearest neighbor searches in high dimensional spaces. Contains multiple ANN algorithms and automatic algorithm selection based on dataset characteristics.

    ScaNN Library

    Scalable Nearest Neighbors library by Google Research that provides efficient vector similarity search at scale. Uses anisotropic vector quantization and advanced compression techniques to handle twice as many queries per second compared to alternatives.

    FLANN

    Fast Library for Approximate Nearest Neighbors containing a collection of algorithms optimized for nearest neighbor search in high dimensional spaces with automatic algorithm and parameter selection.

    Decorative pattern
    Built with
    Ever Works
    Ever Works

    Connect with us

    Stay Updated

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

    Product

    • Categories
    • Tags
    • 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