Skip to navigation

RAG Sizing Guidelines

View as MarkdownOpen in Claude

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.

Peak Usage %Concurrent Requests (CR)Latency ThresholdRAG ScaleReranker ONGPUs and Nodes
Enterprise Size: Large, 5,000 Users. Peak 10% CR =500500Low Latency TTFT <3sScale 20XON23.75 GPUs, 3 Node

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%.

Peak Usage %Concurrent Requests (CR)Latency ThresholdRAG (LLM) ScaleGPUs
Enterprise Size: Small, 200 Users
Peak 10% CR =2020Balanced Perf. TTFT 3s-6sScale 1X2.75 GPUs, 1 Node
Peak 10% CR =2020Low Latency TTFT <3sScale 1X2.75 GPUs, 1 Node
Enterprise Size: Small, 500 Users
Peak 10% CR =5050Balanced Perf. TTFT 3s-5sScale 1X2.75 GPUs, 1 Node
Peak 10% CR =5050Low Latency TTFT <3sScale 2X3.75 GPUs, 1 Node
Enterprise Size: Medium, 1000 Users
Peak 10% CR =100100Balanced Perf. TTFT 3s-5sScale 2X3.75 GPUs, 1 Node
Peak 10% CR =100100Low Latency TTFT <3sScale 5X6.75 GPUs, 1 Node
Enterprise Size: Large, 5000 Users
Peak 10% CR = 500500Balanced Perf. TTFT 3s-5sScale 10X12.75 GPUs, 2 Nodes
Peak 10% CR = 500500Low Latency TTFT <3sScale 25X29.75 GPUs, 4 Nodes
Vary the Peak Usage Percentage
Peak 8% CR = 400400Balanced Perf. TTFT 3s-5sScale 8X9.75 GPUs, 2 Node
Peak 6% CR = 300300Low Latency TTFT <3sScale 15X17.75 GPUs, 3 Node
Peak 20% CR = 10001000Max Throughput TTFT <10sScale 13X15.75 GPUs, 3 Node
Enterprise Size: X-Large, 10,000 Users
Peak 20% CR = 20002000Balanced Perf. TTFT 3s-5sScale 40X46.75 GPUs, 6 Node
Peak 16% CR = 16001600Low Latency TTFT <3sScale 80X91.25 GPUs, 12 Node
Peak 20% CR = 20002000Max Throughput TTFT <10sScale 25X29.75 GPUs, 4 Node
Vary the Peak Usage Percentage
Peak 30% CR = 30003000Balanced Perf. TTFT 3s-5sScale 60X69.25 GPUs, 9 Node
Peak 18% CR = 18001800Low Latency TTFT <3sScale 90X103.25 GPUs, 14 Node

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%.

Peak Usage %Concurrent Requests (CR)Latency ThresholdRAG (LLM) ScaleReranker ON SU, Nodes, GPUs
Enterprise Size: Small, 200 Users
Peak 10% CR = 2020Balanced Perf. TTFT 9s-15sScale 1X2.75 GPUs, 1 Node
Peak 10% CR = 2020Low Latency TTFT <10sScale 1X2.75 GPUs, 1 Node
Enterprise Size: Small, 500 Users
Peak 10% CR = 5050Balanced Perf. TTFT 9s-15sScale 1X2.75 GPUs, 1 Node
Peak 10% CR = 5050Low Latency TTFT <10sScale 2X3.75 GPUs, 1 Node
Enterprise Size: Medium, 1,000 Users
Peak 10% CR = 100100Balanced Perf. TTFT 9s-15sScale 2X3.75 GPUs, 1 Node
Peak 10% CR = 100100Low Latency TTFT <10sScale 4X5.75 GPUs, 1 Node
Enterprise Size: Large, 5,000 Users
Peak 10% CR = 500500Balanced Perf. TTFT 10s-20sScale 10X12.75 GPUs, 2 Node
Vary the Peak Usage Percentage
Peak 8% CR = 400400Balanced Perf. TTFT 10s-20sScale 8X9.75 GPUs, 2 Node
Peak 5% CR = 250250Low Latency TTFT <10sScale 10X12.75 GPUs, 2 Node
Enterprise Size: X-Large, 10,000 Users
Peak 10% CR = 10001000Balanced Perf. TTFT 15s-30sScale 20X23.75 GPUs, 3 Node
Vary the Peak Usage Percentage
Peak 20% CR = 20002000Balanced Perf. TTFT 35s-60sScale 40X46.75 GPUs, 6 Node