AI and Deep Learning Community Question

Best practices for scaling Vector Databases for Generative AI and RAG applications?

Posted on 2025-11-11 • In AI and Deep Learning • By Christopher Lee

As we move our LLM projects into production, we are seeing performance degradation in our vector search. We are currently using Pinecone but are considering migrating to a self-hosted Milvus or Weaviate instance. How do you design a data architecture that handles millions of embeddings while keeping latency under 100ms for Retrieval-Augmented Generation?

3 Answers 12,136 Views

All answers to this question 3 Answers

Margaret Robinson Answered on 2025-01-20
Answered

Scaling vector search is all about indexing strategy. For millions of embeddings, you should look into HNSW (Hierarchical Navigable Small World) graphs or IVF (Inverted File Indexing). If you’re seeing latency issues on Pinecone, check your "namespace" strategy; sometimes over-partitioning causes overhead. Self-hosting Milvus on Kubernetes gives you more control over the hardware (especially memory-optimized nodes), but don't underestimate the "DevOps tax" of managing a distributed vector DB yourself. We stayed on Pinecone but optimized our chunking strategy instead.

Joseph Allen Answered on 2025-01-24
Answered
  • Are you using a dedicated vector database, or have you explored adding vector extensions to your existing PostgreSQL (pgvector) or Redis setup to simplify the architecture?

Charles King Commented on 2025-01-26
Commented

Joseph, we tried pgvector but for our scale, the search speed wasn't quite there yet compared to a purpose-built engine. We need that sub-100ms latency because our RAG pipeline has to generate a response in real-time during a customer service chat.

Nancy Scott Answered on 2025-01-30
Answered

Cache your most frequent queries! Using something like GPTCache in front of your vector database can reduce your API costs and latency by up to 80% for common questions.

Christopher Lee Commented on 2025-01-31
Commented

Semantic caching is brilliant. It’s a simple addition to the architecture that provides massive performance gains almost instantly.

Write a Comment

Your email address will not be published. Required fields are marked (*)

Join the LearnersEra Community

Ask questions, share knowledge and learn from professionals across technology, project management and certification topics.

Change Country and Nearest City

Select your country and nearest city to see courses available in your region.