---
title: "What's new in pgvector v0.7.0"
description: "pgvector 0.7.0 adds float16 (halfvec), sparse and bit vector types to exploit redundancy in embeddings and cut memory and storage."
url: "https://swe.quest/articles/what-s-new-in-pgvector-v0-7-0-faa9e83678b64f22"
canonical: "https://supabase.com/blog/pgvector-0-7-0"
source: "Supabase"
published: "2024-05-02"
difficulty: "medium"
kind: "Release"
reading_minutes: 5
tags: ["vector-search","postgres","performance"]
---

# What's new in pgvector v0.7.0

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2024-05-02, 5 min read, Release. Original: [https://supabase.com/blog/pgvector-0-7-0](https://supabase.com/blog/pgvector-0-7-0)

## Summary

pgvector 0.7.0 adds float16 (halfvec), sparse and bit vector types to exploit redundancy in embeddings and cut memory and storage. Halfvec halves both table and HNSW index size (3.5GB vs 7GB for 900K 1536-dim OpenAI vectors) and builds parallel HNSW indexes about 30% faster, with Jonathan Katz's benchmarks showing up to 3x faster builds at essentially unchanged recall and QPS. Binary quantization with Hamming-distance HNSW indexes enables a fast pre-select followed by exact re-ranking on a small subset, with limit sizes tuned per dataset. The release also adds L1, Hamming and Jaccard distance operators and index opclasses.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Vector search](https://swe.quest/tags/vector-search.md) (Data & databases)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- PostgreSQL basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- vector embeddings ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))
- HNSW indexes

## Keywords

pgvector, HNSW, halfvec, sparsevec, binary quantization, Supabase

## Related posts

- [Don’t use vector. Use halvec instead and save 50% of your storage cost](https://swe.quest/articles/don-t-use-vector-use-halvec-instead-and-save-50-of-your-storage-cost-bd6cf6e833bfde8c.md): Neon · 2024-07-31 · Medium · 4 min read · Vector search, PostgreSQL, Performance engineering, RAG & retrieval
  pgvector 0.7's half-precision halfvec type stores embedding components as 16-bit floats instead of 32-bit, cutting table and HNSW index storage nearly in half.
- [pgvector v0.5.0: Faster semantic search with HNSW indexes](https://swe.quest/articles/pgvector-v0-5-0-faster-semantic-search-with-hnsw-indexes-d1e5c38ac44f551e.md): Supabase · 2023-09-06 · Medium · 6 min read · Vector search, PostgreSQL, Performance engineering, Algorithms
  pgvector v0.5.0 adds HNSW indexes, which combine skip-list-style layering with navigable small world proximity graphs to do approximate nearest-neighbor search over embeddings.
- [20x faster than pgvector: introducing pg\_embedding extension for vector search in Postgres and LangChain](https://swe.quest/articles/20x-faster-than-pgvector-introducing-pg-embedding-extension-for-vector-search-058737fc9388f495.md): Neon · 2023-07-11 · Medium · 7 min read · Vector search, PostgreSQL, Performance engineering
  pg\_embedding brought HNSW graph-based approximate nearest neighbor indexing to Postgres.
- [Understanding vector search and HNSW index with pgvector](https://swe.quest/articles/understanding-vector-search-and-hnsw-index-with-pgvector-db3498f2e1e5486e.md): Neon · 2023-09-20 · Medium · 10 min read · Vector search, PostgreSQL, LLMs
  pgvector 0.5.0 adds an HNSW (Hierarchical Navigable Small Worlds) index for approximate nearest neighbor search in Postgres, replacing O(N) sequential exact scans with a multi-layer graph traversal that trades a little accuracy for much faster queries.
- [pgvector 0.6.0: 30x faster with parallel index builds](https://swe.quest/articles/pgvector-0-6-0-30x-faster-with-parallel-index-builds-e5dea50876a1e20f.md): Supabase · 2024-01-30 · Medium · 3 min read · Vector search, PostgreSQL, Performance engineering
  pgvector 0.6.0 adds parallel HNSW index builds, cutting build time for 1M 1536-dimension vectors (dbpedia OpenAI dataset, m=16, ef\_construction=200) from about 1h27m to 9.5 minutes.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
