RAG Sizing Guidelines
In order to size the Enterprise RAG service, define the Peak Usage or maximum Concurrency or Concurrent Requests (CRs) that need to be supported for the use case (Chat, Summarization, Generation or Analysis/Research).
Concurrent Requests (CR): It indicates the maximum number of in-flight user requests for a given First Token Latency that can be supported by the Enterprise RAG service. It is a measure of Peak Usage at given Latency.
To size the workload first estimate what will be the peak number of active users that will use the RAG AI Chat service at any given time. And then size the RAG service to support that number of concurrent requests. Start conservatively and then refine the estimate; scale up with more users, add more servers and GPUs over time.
Next select the SLA response time or Latency constraint for the use case, e.g.
- Customer Service AI Chatbot: Low Latency, TTFT: <3s
- Meeting Summarization: Balanced Performance; TTFT: 10-20s
- Code Generation: Balanced Performance; TTFT: 10s-20s
- Research Analysis, Report Generation: Max. Throughput; TTFT: 30s-60s
For example; for a Large Enterprise with 5K engineers if IT creates a new AI chatbot for Engineering bug management; a good estimate of peak usage for the Chat service is 10% of total users; then size the RAG for AI Chat(128/128) service for 500 concurrent requests.
Next pick the SLA response time or Latency constraint; for an internal service tool for engineering, select Low Latency bucket with response within 3s (TTFT <3s).
To support RAG Chat(128/128), with Low Latency (TTFT <3s) and Peak Users CR=500, what is RAG or LLM Scale, number of nodes and GPU count that is needed. Assuming near linear scaling with RAG Scaling Efficiency E > 80%, this can be determined from the RAG Sizing for Chat table below.
Use the RAG Linear Scaling Table provided above to determine the number of GPUs and nodes needed to build the Sizing table below for each RAG Scale nX.
RAG Scale implies LLM Scale + scaling other components (Milvus Vector DB nodes, Reranker, Embedder) based on component Latency thresholds.
RAG Sizing for Chat 128/128
Assuming near linear scaling with RAG Scaling Efficiency E > 80%.
RAG Sizing for Summarization (1024/512)
Now let’s look at Summarization use cases.
For example: Summarizing meeting transcripts or financial reports or research papers. Latency is not as critical a requirement but the goal is supporting a large number of Peak users and providing response within reasonable time. For Summarization, pursuing Balanced Performance by optimizing Output Throughput (TPS) and Per User Throughput (TPS) is the most cost efficient solution.
Assuming near linear scaling with RAG Scaling Efficiency E > 80%.