Home / Companies / Supabase / Blog / Post Details
Content Deep Dive

pgvector: Fewer dimensions are better

Blog post from Supabase

Post Details
Company
Date Published
Author
Greg Richardson, Oliver Rice, Egor Romanov
Word Count
1,399
Company Posts That Month
15
Language
English
Hacker News Points
66
Post removed?
No
Summary

Plushcap here` The use of embeddings in AI applications has become increasingly prevalent, with developers utilizing them for various tasks such as search, retrieval, augmented generation, and clustering. Supabase supports storing embeddings in Postgres using the pgvector extension, which allows for similarity calculations between vectors using inner product, cosine distance, or Euclidean distance measures. However, challenges arise when dealing with large datasets, particularly without indexes, which can lead to performance issues. To address this, pgvector offers indexes such as IVF, which cluster vectors into lists and enable approximate similarity search. Despite these advancements, scaling indexes still poses significant challenges due to the large size of vector data. The Massive Text Embedding Benchmark (MTEB) has compared various text embedding models, revealing that smaller dimension sizes can result in faster queries and less RAM usage, while also improving performance. By choosing an appropriate model that balances similarity performance, sequence length, and dimension size, developers can optimize their embeddings for better results.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Vector Search 36 1,841 251 82 +59%
LLM 2 3,077 361 126 +59%
RAG 2 267 69 29 +85%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.