Home icon

How Amplitude implemented natural language-powered analytics using Amazon OpenSearch Service as a vector database

Big Data Blog



This article details how Amplitude built Ask Amplitude, an AI-powered natural language analytics assistant, using Amazon OpenSearch Service as a vector database for semantic search and retrieval-augmented generation (RAG).

  • Ask Amplitude converts natural language questions into JSON queries using LLMs and custom query engines
  • Initial architecture used PostgreSQL for data and separate third-party search index for keyword search
  • Evolved through four iterations: brute force cosine similarity, pgvector ANN search, dual sync to OpenSearch, and final hybrid search
  • OpenSearch Service unified keyword and semantic search, eliminating need for multiple synchronization pipelines
  • Final architecture reduced latency, compute requirements, and complexity by consolidating all search operations
  • Extended system to index 20 million user-generated charts and dashboards for richer analytical context
  • Uses HNSW product quantization and byte quantization for efficient multi-tenant vector search at scale

Amplitude's iterative journey demonstrates how combining LLMs, RAG, and unified vector search capabilities enables scalable natural language analytics while reducing architectural complexity.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Sep 2
2025
Natural language-based database analytics with Amazon Nova
Jul 9
2024
Amazon OpenSearch Service announces Natural Language Query Generation for log analysis
Feb 27
2025
Data-Driven E-Commerce: Modernize Retail Experiences with Amplitude
Aug 22
2025
Unlock the power of Amazon OpenSearch Service: Your learning guide for search, analytics, and generative AI solutions

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.