Enterprise RAG Retrieval - Accuracy, Performance and Cost Efficiency
Retrieval-Augmented Generation (RAG) has emerged as a critical technology for enterprises looking to integrate their business data with AI inference capabilities. As organizations move from experimental AI chatbots to production-scale deployments, the complexity of building and scaling a robust, scalable AI factory for RAG becomes apparent. This document highlights best practices for scaling and sizing enterprise-ready RAG inference solutions.
RAG Enterprise Challenge
Enterprises need AI inference with RAG to scale to thousands of concurrent users, ingest millions of documents, while generating accurate and context-relevant responses to queries.
To build an AI factory for RAG, enterprises must be able to size and scale their infrastructure for the inference use cases they are looking to deploy.
An enterprise is deploying RAG AI inference solutions and needs answers to these questions:
- An IT customer service chatbot for 25 concurrent users; what is the minimum deployment needed? How many nodes and GPUs are required?
- A large scale RAG deployment for 200 concurrent users servicing multiple RAG use cases; IT service chatbot, code generation, meeting recap, deep research; what is the recommended initial deployment size? How does it scale to include more use cases and more users?
Build a scalable AI factory for RAG
To effectively scale the AI factory for RAG, it must have a pluggable microservice architecture with predictable linear scaling.
For sizing an AI Factory for RAG; there needs to be clearly defined use cases and benchmarking methodology with tools to evaluate the accuracy and performance to meet the required SLAs for data ingestion rate and user request rate.
The focus for this guide is to provide best practices for achieving high RAG retrieval performance and accuracy. It also provides scaling guidelines for individual RAG services while maintaining latency thresholds for RAG use cases Chat vs Summarization. At the same time the guide looks to maintain cost efficiencies with predictable linear scaling and provide high performance per $ (TCO cost).
RAG Retrieval workflow
The RAG server is the data orchestrator sending requests and processing responses to and from other services in the retrieval pipeline.
It is responsible for receiving user queries and then initiating calls to Nemotron embed model, Milvus Vector database (VDB), Nemotron rerank model, NIM LLM and NeMo Evaluator (AI Agent) or other third party microservices in the retrieval pipeline. Finally, the RAG server is responsible for sending the final response to the user query.
- User sends the request Query (ISL) to RAG Server
- RAG server sends tokenized Query to Embedding NIM to create an embedding vector
- Next the embedding vector is sent to Milvus VDB to perform an Approximate Nearest Neighbor (ANN) search to return the VDB top-k (say 10) data chunks that are relevant to the Query embedding vector.
- Then Nemotron reranking model ranks and filters chunks to return Reranker TopK (say 4) data chunks that are most relevant as context for the Query.
- The RAG server then sends the original User Query + Context (4 data chunks received from the Reranker) + System Prompt to the NIM LLM as context for response generation.
- Finally the RAG server forwards the NIM LLM Response (OSL) to the user.

Key Metrics for RAG Retrieval
Metrics are crucial and required to measure success when deploying and scaling RAG; to validate the performance and accuracy. For a RAG AI inference use case the key parameters and metrics are defined in the table below.
Table 1. RAG metrics and parameters

Let’s review some RAG specific parameters:
Table 2. RAG specific parameters
Target Use cases
The first step to benchmarking AI Inference use cases is to define load/performance requirements and metrics to measure. Let’s look at RAG Chat use case for Enterprise and flush out the requirements; ISL/OSL, peak usage (concurrent requests CR), Latency SLAs and data ingestion as shown below.
Table 3. Enterprise RAG use case requirements
RAG Balanced Performance
Scaling RAG inference requires balancing Concurrency and Latency; driving high output throughput while still maintaining user responsiveness.
For the RAG pipeline, Optimal or Balanced Performance occurs when optimizing both Output Throughput and User responsiveness (Per User Throughput). This typically occurs at the knee of the graph when plotting Output Throughput against Per User Throughput (highlighted in green); in this region Output Throughput(TPS) X User Throughput(TPS) is the maximum.
Most RAG use cases that don’t require very strict latency constraints but still require reasonable user responsiveness and can operate in the Balanced Performance or green region.
Balanced Performance balances output throughput, user responsiveness and performance per $ (TCO cost) and drives overall revenue of the AI inference application.

Understanding Balanced performance
For AI Inference performance, balance application performance against per user performance measured as Output Throughput (TPS) vs Per User Throughput(TPS), where output throughput drives revenue (Cost($) per Million tokens) and User Throughput defines User responsiveness or User experience (per user latency). When the RAG service throughput is increased by increasing the number of Peak users or Concurrent Requests; the latency for each individual user also increases resulting in reduced per user throughput (TPS) and worse user experience (poor user responsiveness). Per User throughput is output tokens per second for one user. The right balance between Output Throughput (TPS) and Per User Throughput (TPS) is found by plotting the graph below for different Concurrent Requests (increment CR from 1 to 100).
Balanced Performance occurs when optimizing both Output Throughput and User responsiveness (Per User Throughput). This typically occurs at the knee of the graph when plotting Output Throughput against Per User Throughput (highlighted in green); in this region Output Throughput X User Throughput is the maximum.
In the sample chart below, Balanced Performance occurs at Concurrency = 40, and the range (green region) selected for Balanced Performance is with Peak Users CR=30-50. Select a smaller or wider range around this point CR=40 to be the Balanced Performance range for the Enterprise RAG service.
It is recommended to operate the Enterprise RAG service so that performance remains in the Balanced Performance or green region. Balanced Performance ensures best performance per $ (cost) and drives overall revenue of the AI inference application. Taking the sample chart above, for Balanced Performance, operate the RAG service with Peak Users or Active users between 30 and 50.
Moving to the left on the X-axis of the graph (highlighted in blue), the Output Throughput increases until it saturates, Max. Throughput region. In this region the User responsiveness decreases significantly. This region supports more Peak users or Concurrent Requests (CR) but per user latency is high. Each user needs to wait much longer to get a response.
Moving to the right on the X-axis of the graph (highlighted in yellow and orange) these are the Low Latency (and Very Low Latency) regions. In these regions User responsiveness or Per User Throughput increases, however the Output Throughput drops and Cost ($) per Million tokens decreases. This region is recommended for use cases where low latency is critical e.g. Customer Service AI chatbot. This region supports fewer Peak users or Concurrent Requests (CR) but User responsiveness is increased significantly.
Key Benchmarks for RAG Retrieval
Define the State of Art (SOTA) or Speed of Light (SOL) benchmark to compare against to validate the Enterprise RAG performance.
For Enterprise RAG Retrieval, there are 3 benchmarks that will be tracked for each use case:
- RAG-ON - RAG Retrieval pipeline with overhead from all components (Embedding NIM, Retrieval from Milvus VDB, Reranking NIM)
- RAG-OFF - standard inference with original User Query ISL sent directly to LLM.
- RAG-OFF with RAG ISL (SOL) - Simulated RAG inference with RAG ISL (User Query
- Context + System Prompt) sent directly to LLM.
Benchmark overview
Consider an example for First Token Latency or Time to first Token chart for Chat 128/128 use case with VDB TopK=4 (4 chunks being retrieved from VDB and sent to LLM) and Chunk Size 256 tokens (average Chunk Size 243 tokens) with all 3 benchmarks as shown below.

The RAG-OFF (yellow) latency line has the least overhead. It shows the impact of the User Query ISL. This impact can be reduced by scaling the LLM or changing the Model (Size, precision, profile) or using next generation GPU.
The SOL benchmark RAG-OFF with RAG-ISL (blue) latency line best simulates RAG (without the actual components). It shows significant overhead on top of the RAG-OFF (yellow) line. This indicates the impact of the added Context (4 Chunks X 243 Avg.Chunk Size). The larger the chunk size selected and the more the number of VDB chunks sent to the LLM the larger the latency overhead. To reduce this impact, it is crucial to select the Chunk size and the TopK appropriately to ensure good performance and accuracy.
The RAG-ON (red) latency line shows additional overhead on top of the RAG-OFF with RAG-ISL (blue) line. This shows the impact of the latency from RAG retrieval components(RAG server, Embedding NIM, Retriever, Milvus VDB, Reranker). This overhead can only be reduced by adding more resources or scaling the individual components as the users or concurrent requests increase.
Deep Dive on Benchmark measurement



Key Factors affecting Accuracy and Performance
Both Accuracy and Performance are critical for RAG Inference. The primary driver for Enterprise RAG is Accuracy; responses need to be accurate, grounded and relevant to context. There is a constant struggle between Accuracy and Performance, where some metrics that improve accuracy may adversely impact performance. In addition consider the Performance per $ (Cost); this is a measure of cost or revenue generated by the RAG solution. Decisions need to be made on how much accuracy is good enough for each use case in order to not sacrifice performance or increase cost.

Performance: LLM Model, GPU, Vector DB scale and GPU acceleration, VDB TopK and Chunk Size, Input Query Length (ISL), Output Response Length (OSL), Reranker TopK.
Accuracy: LLM Model, Chunk Size, Reranker ON/OFF, TopK.
Summary for Key Factors
High level summary of the Enterprise RAG deployment options for Balanced Performance, Accuracy and Performance per GPU ($ Cost).
Table 2. Summary RAG Factors affecting Accuracy and Performance
Deep Dive into Key Factors affecting Accuracy, Performance and Cost Efficiency
Let’s dive into these parameters and determine what to use with Enterprise RA RAG solution.
Table 1. Details RAG Factors affecting Accuracy and Performance




Chunk Size Impact on Latency
Chunk Size can have a significant impact on performance; for the chart below Chunk Size is varied: 256 tokens vs 512 tokens vs 1024 tokens.
For Concurrent Requests (users) CR=30, the First Token Latency increase by ~2X as the Chunk Size increases by 2X (256 to 512 and 512 to 1024):
- Chunk Size 256, TTFT=~2s
- Chunk Size 512, TTFT=~3.8s
- Chunk Size 1024, TTFT=~7.1s
And for TTFT=2s, the Concurrent Requests decrease by ~50%:
- Chunk Size 256, CR=~30
- Chunk Size 512, CR=~15
- Chunk Size 1024, CR=~8
Model and Chunk Size Impact on Throughput (RPS)
Here the Output Throughput performance is being compared for different models (Llama-3.1-8b, Llama3.1-70b and Llama-Nemotron-49b) along with different chunk sizes.
For Chat use case LLM Scale 1X, the smallest model Llama-3.1-8b (precision FP8 TP1 with 1 GPU) and smallest chunk size=128 tokens shows maximum throughput = ~15 RPS (Requests per second). Even with LLM Scale 50X the best case maximum throughput for RAG Retrieval will not exceed 50 X 15 = 750 RPS.
Llama-Nemotron-70b with ChunkSize=256, has a maximum throughput=~5 RPS, at LLM Scale 50X the best case maximum throughput for RAG Retrieval will not exceed 50 X 5 = 250 RPS.
The output throughout (RPS) drops significantly from 15 RPS to 5 RPS (by 1/3) when using larger models Llama-3.1-70b and Llama-Nemotron-70b.
Llama-3.1-70b with Chunk Size=128 (Blue line) has throughput ~6 RPS which is 2 times higher throughput than Llama-3.1-70b with Chunk Size=512 (Red line) ~3 RPS.
Increasing the Chunk Size from 128 tokens to 512 tokens with TopK=4 causes the ISL to increase by ~1500 tokens which will result in substantial (>50%) drop in output throughput at the Maximum Throughput region on the graph.
TopK and Reranker ON/OFF Impact
Reranker Impact on Throughput
From the chart below, enabling the reranker impacts both the raw Output throughput (Tokens per second) as well as the Per User Throughput (TPS) especially at the lower concurrencies Concurrency CR<30. At higher concurrencies the throughput impact is not as prominent (red and blue lines merge).
Latency sensitivity Chat applications requiring TTFT <3s run at lower concurrencies CR <=20 and are more likely to have performance impacted by the addition of the Reranker.
Reranker Impact on Latency
For Latency sensitive use cases, Low Latency TTFT <3s or Very Low Latency TTFT<1s constraints, the Latency impact from the Reranker may be more prominent.

VDB TopK Impact on Latency
Usecase - RAG Scale 1X, Chat 128/128, Reranker OFF:
- VDB TopK = 4
- VDB TopK = 10
This use case depicts the impact of Vector DB TopK selection on Latency; VDB TopK can improve Accuracy but also has a significant impact on First Token Latency (TTFT). Increasing the VDB TopK from 4 to 10 increases the context (data chunks) that is sent to LLM (RAG ISL) by 2.5 times. The ISL increases by ~1450 tokens for Chunk Size 256.
Let’s look at some data points on the Latency chart below comparing different VDB TopK.
At Concurrent Requests CR=40, the First Token Latency is more than 2 times for VDB TopK=10 vs VDB TopK=4:
- RAG-ON Reranker OFF, VDB TopK=4, TTFT = ~3.6s
- RAG-ON Reranker OFF, VDB TopK=10, TTFT = ~7.9s
At Time to First Token TTFT =5s, the Concurrent Requests is more than double times for VDB TopK=4 vs VDB TopK=10:
- RAG-ON Reranker OFF, VDB TopK=10, CR = 25
- RAG-ON Reranker OFF, VDB TopK=4, CR = 56

VDB TopK Impact on Output Throughput
Usecase - RAG Scale 1X, Chat 128/128, Reranker OFF.
For the Output Throughput chart below comparing different TopK with Reranker ON and OFF:
At Concurrent Requests CR=20, the Output Throughput for VDB TopK=10 vs VDB TopK=4 drops by more than 1/3:
- RAG-ON, Reranker OFF, VDB TopK=4, Output Throughput = 379 TPS
- RAG-ON, Reranker OFF, VDB TopK=10, Output Throughput = 241 TPS (36.33% decrease)
At Concurrent Requests CR=50, the Output Throughput for VDB TopK=10 vs VDB TopK=4 drops by more than 45%:
- RAG-ON Reranker OFF, VDB TopK=4, Output Throughput = 533 TPS
- RAG-ON Reranker OFF, VDB TopK=10, Output Throughput = 285 TPS (46.61% decrease)


Latency Benchmark - Usecase Chat 128/128, Reranker ON, Vary TopK
- RAG ON, Reranker ON, VDB TopK = 10, Reranker TopK=4
- RAG ON, Reranker ON, VDB TopK = 20, Reranker TopK=4
This use case depicts the impact of enabling the Reranker on Latency. The Reranker can improve Accuracy especially when querying multiple collections with multi-modal data to filter out less relevant context. But it has an impact on performance per $ (cost); scale the Reranker along with the LLM.


Adding the Reranking NIM adds a small <10% latency overhead to Time to First Token (TTFT). However the Reranker needs to be scaled in sync with the LLM (1:8 ratio for Chat) in order to maintain <10% overhead on TTFT, this decreases the performance per $ (TCO cost).
Increasing the VDB TopK from 10 to 20 adds a very small overhead (<1% of TTFT) to Retriever Milvus VDB.
In summary:
Reranker should only be enabled when context from multiple collections need to be filtered to reduce overhead on the LLM.
Increasing ISL by ~1400 tokens results in the RAG Throughput drops by 36%-46%.
In Summary for every 1000 tokens additional overhead to ISL, the RAG Output Throughput drops by:
- up to 25% for Low Latency range TTFT <3s
- up to 33% for Balanced Performance range; 3s < TTFT <5s
- close to 50% for Max. Throughput range TTFT >5s
Additional ISL overhead can come from increasing ChunkSize from 256 to 512 or from increasing TopK from 4 to 10.
