AI Cloud Architect

A scalable, elastic database and search solution for 1B+ vectors built on LanceDB and Amazon S3

AWSHow-to by Audra Devoto, Christopher Brown, Patrick O'Connor, Owen Janson and Pavel NovichkovAWS Architecture Blog

In this post, we explore how Metagenomi built a scalable database and search solution for over 1 billion protein vectors using LanceDB and Amazon S3. The solution enables rapid enzyme discovery by transforming proteins into vector embeddings and implementing a serverless architecture that combines AWS Lambda, AWS Step Functions, and Amazon S3 for efficient nearest neighbor searches.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Metagenomi stores 960-dimension protein embeddings in LanceDB on Amazon S3 and queries them with Lambda, splitting data into 200M-vector buckets searched in parallel.

Who it is for

Teams building large vector search on S3 and Lambda that need low-cost storage for billions of embeddings.

Key points

  • Indexed database of 3.5B vectors is about 12.9 TB on S3; the post gives no price figures.
  • Indexing 3.5B vectors on i4i.8xlarge took 108 compute hours, per Metagenomi.
  • Lambda handles single queries up to 50,000 neighbors; larger query batches are suggested for AWS Batch.