Slide 7
Slide 7 text
During user prompt processing, a RAG system follows a clear two-step pipeline:
1. Retrieval. The user’s query is encoded and matched against the vector database. Relevant chunks, such as
requirements, code snippets, test reports, or design documents, are retrieved based on semantic similarity.
2. Generation. The retrieved chunks are appended as context to the prompt and sent to the LLM. The model then
generates a response that combines the retrieved enterprise-specific data, and the model’s own general
knowledge.
This approach produces more accurate, evidence-based, and contextually appropriate output, because RAG allows the
system to access enterprise data sources such as requirement repositories, test management systems, codebases,
release notes, defect databases, API documentation, architectural diagrams. With real-time retrieval, GenAI can
perform test tasks, such as test analysis, test design, or coverage evaluation, based on the latest project information.
This helps ensure alignment with the most current specifications, avoids outdated assumptions, and significantly
improves the reliability of AI-generated test artefacts.
4.1.3 The Role of LLM-Powered Agents in Automating Test Processes (K2)
LLM-powered agents are specialised GenAI systems designed to carry out semi-autonomous or autonomous tasks.
Unlike simple AI chatbots, which focus mainly on conversational question-and-answer flows, LLM-powered agents can
reason, retrieve context, follow multi-step instructions, and take actions by interacting with external tools or systems.
At their foundation, these agents combine LLM capabilities (language understanding, reasoning, and generation),
context retrieval (from RAG, databases, or APIs), and function execution (tools the agent can call to perform tasks). This
makes them significantly more powerful and flexible than traditional conversational interfaces.
ISTQB® CT-GenAI Training Course | Chapter 4. LLM-Powered Test Infrastructure for Software Testing Page 7 of 17