Key takeaways
A capable language model is only one component of a dependable generative AI application.
Design around the business task, its authoritative information sources and the consequences of an incorrect output.
Use retrieval for changing knowledge, fine-tuning for validated behavioural needs and deterministic software for authoritative calculations or transactions.
Enforce identity, data permissions and action authorisation outside the model.
Measure task-level quality, response time, cost per accepted outcome and human intervention before scaling.
Start with the simplest architecture that meets business and risk requirements; add complexity only when evidence supports it.
The demonstration worked. Why is the business still hesitant?
Imagine an insurance company demonstrating an AI assistant that can answer questions about its products. The presentation goes smoothly, and the leadership team begins discussing a rollout to hundreds of service employees. During the pilot, however, an adviser asks whether a particular policy covers a customer's claim. The assistant gives a convincing answer based on the wrong edition of the policy.
The problem is not necessarily the choice of language model. The application may not know which policy applies to the customer, which version is authoritative or whether the adviser can access the relevant documents. It may also have no reliable way to detect an unsupported answer.
That is where generative AI architecture becomes important. It determines how information reaches the model, how business rules are enforced, how responses are checked and what happens when the system cannot complete a request safely.
For a business leader, these are investment decisions. For an engineering team, they are design decisions. Both affect whether a promising experiment becomes a useful, maintainable service.
What is generative AI architecture?
Generative AI architecture is the arrangement of application components, models, data services, workflows and controls that work together to deliver AI-generated outputs. In an enterprise, it includes the surrounding systems that determine what information the model receives, how its outputs are used and how the service is operated.
A large language model (LLM) generates text based on learned patterns and the input it receives. The model's internal architecture, often based on transformers in modern LLMs, is different from the application architecture. Most organisations building enterprise AI do not need to train a foundation model from scratch; they need to integrate an appropriate model into a dependable business system.
A simple writing assistant might need only a user interface, a secure model connection and basic controls. An assistant that interprets customer-specific contracts needs authorised data access, evidence retrieval, version-aware business rules, response validation and an escalation process.
Microsoft's Azure Well-Architected guidance presents application, data, model and supporting operational components as an adaptable architecture pattern rather than a single mandatory technology stack.[1] The same design principle applies across cloud providers and self-hosted environments: choose components according to the task.
The seven layers of an enterprise generative AI system
1. Experience layer — The interface could be an employee portal, customer-service application, document-processing tool or business application programming interface (API). It should communicate what AI can do, display relevant evidence and make human assistance accessible when required.
2. Identity and access layer — Authenticate the user, establish their permissions and determine which information and operations are allowed. A shared service account with unrestricted access is not a substitute for enforcing the actual user's entitlements.
3. Orchestration layer — Coordinate the request. This component selects the appropriate workflow, prepares instructions, calls retrieval services or authorised tools, manages deadlines and handles exceptions. A deterministic workflow may be sufficient; an autonomous agent is not automatically necessary.
4. Knowledge and integration layer — Connect to approved documents, databases, search indexes and operational APIs. Maintain document ownership, version history, effective dates and access metadata. This layer provides business context that may not exist in the model's training data.
5. Model layer — Select an approved language or multimodal model with suitable capabilities, deployment conditions and performance. A model gateway can centralise provider access, quotas, routing and usage controls when multiple applications share the infrastructure.
6. Validation and delivery layer — Check structured output, required fields, evidence references and relevant business constraints. Route uncertain or high-impact cases for human review. For factual answers, citations should point to actual retrieved evidence, not references invented by the model.
7. Operations and governance layer — Monitor quality, availability, latency, spending, incidents and changes to the application. Maintain evaluation datasets, approved configurations and clearly assigned ownership. Security and governance also apply across every preceding layer; they are not simply a final checkpoint.
Follow a customer question through the architecture
Return to the insurance example. An authenticated adviser asks whether a particular incident falls within a customer's policy. The application first identifies the relevant policy contract through an authorised operational service. It obtains the applicable product, jurisdiction and policy edition rather than relying on a model to guess them.
The knowledge service retrieves relevant clauses, endorsements and exclusions from the approved document collection. It respects the adviser's access permissions and the policy's effective dates. The orchestration service assembles those passages alongside instructions that restrict the response to supported statements.
The language model generates an explanation with references to the supplied clauses. The application verifies that the references exist and applies any deterministic eligibility checks. If the evidence is missing or conflicting, the system explains that the question requires further review.
Behind the scenes, an ingestion pipeline extracts text from approved documents, divides it into meaningful passages, attaches metadata and updates the search index. When a policy is superseded or permissions change, the index must reflect that change. Otherwise, even a carefully designed model prompt can receive the wrong evidence.
The assistant supports the adviser; it does not automatically authorise a claim payment or make a binding coverage determination. That decision remains within the organisation's approved process.
RAG, fine-tuning or conventional software?
Retrieval-augmented generation (RAG) supplies relevant information to a model at inference time. The original RAG research combined learned model knowledge with retrieval from an external collection.[2] Enterprise implementations frequently retrieve approved passages using keyword search, semantic similarity or a combination of both.
Semantic search uses embeddings, numerical representations that help find related text. Exact keyword matching remains useful for product codes, policy numbers and legal phrases. A reranking step can improve the ordering of candidate passages, but relevance scores do not establish truth or permission. Evaluate retrieval quality separately from answer quality.[3]
Fine-tuning updates a model's parameters using training examples. It may improve a recurring output style, specialised classification behaviour or task-specific formatting when evaluation demonstrates a need. It is not a dependable replacement for a live source of changing policy information, and training data must be authorised.
Conventional software remains appropriate when the required output is exact. A database query should supply an account balance, a validated calculation should produce a premium, and an approved rules engine should enforce eligibility. A language model can explain these results without being responsible for calculating or authorising them.
Consider the practical distinction: use RAG to answer questions from documents, fine-tuning when a validated behavioural improvement is needed, an API for current transaction data and ordinary code for rules that must be applied consistently. A well-designed application can combine these approaches without making every step generative.
Where security belongs in the design
An enterprise assistant may retrieve confidential information, process customer records or call tools. Security cannot depend solely on a prompt instructing the model to behave appropriately. Permissions should be enforced by the application and the systems that provide information or execute actions.
Prompt injection is one of the risks identified by the OWASP GenAI Security Project.[4] A user message or retrieved document can contain instructions intended to redirect the model. Treat retrieved content as untrusted input, even when it comes from an internal repository; a document must not gain authority to override application policy.
Restrict data retrieval to authorised records before passing content to the model. Apply the same access controls to caches, conversation history, citations and exported outputs. Limit tools to the operations actually needed, and require explicit authorisation for consequential actions.
Review provider contracts, processing locations, data retention, encryption, service identities and network access according to the organisation's requirements. Protect operational logs and avoid storing sensitive prompts or responses unnecessarily.
Human approval helps manage consequential decisions but does not replace technical access controls. Similarly, output filters and citations reduce particular risks without guaranteeing that every answer is correct. NIST's voluntary generative AI risk-management profile provides a useful reference for evaluating and managing these limitations.[5]
How much infrastructure does your business need?
A managed AI service can be a sensible starting point when its security, functionality, commercial terms and deployment conditions meet the organisation's needs. It reduces responsibility for serving the underlying model, although application security, evaluation and business integration remain essential.
Self-hosting may be appropriate when specific confidentiality, latency, deployment or model-control requirements justify the operational effort. It introduces responsibilities for compute capacity, model serving, patching, licensing, upgrades, security and availability. Hosting a model internally does not by itself make the entire application secure.
For a company with several AI initiatives, a shared platform can provide reusable model access, identity integration, approved knowledge connectors and monitoring. Individual teams can then focus on the business workflow. A smaller organisation may achieve better results with a narrowly scoped application and a managed model connection.
Compare architectures at expected usage levels. Include input and output token consumption, retrieval, storage, network traffic, infrastructure, engineering support, evaluation and human review. A cheap inference call is not necessarily a cheap completed task.
Design for service interruptions as well. Use bounded retries and timeouts, test any permitted alternative model against the same requirements and define how users receive help when the service is unavailable. Never bypass data restrictions simply to maintain uptime.
Testing the complete system, not just the language model
Testing a model on general questions is useful but insufficient. An enterprise system should be assessed on the work it will actually perform, including ambiguous requests, missing information, outdated documents and requests that users are not permitted to make.
Create a representative evaluation set with expected answers, acceptable evidence and situations that require refusal or escalation. Test retrieval coverage, factual support, correct handling of uncertainty, structured-output validity and business-rule adherence. Include different languages and document formats where relevant.
Set measurable release criteria. For a policy assistant, review accepted answers against the applicable source clauses and track critical mistakes separately from minor wording problems. Monitor unauthorised disclosure attempts and verify that access restrictions remain effective.
Operational measures should include end-to-end response time, accepted-task rate, escalation frequency and cost per accepted task. Version prompts, models, retrieval settings and document indexes. Reassess changes before deployment and monitor outcomes after release.
Business value needs its own baseline. Compare the time and resources needed to complete the original process with the AI-assisted process, including verification, exceptions and rework. An assistant that generates answers quickly but requires extensive checking may create less value than expected.
Start with one business problem, then earn the right to scale
Select a contained workload with identifiable users, an authoritative source of information and a meaningful baseline. A read-only employee policy assistant can be a more manageable first investment than a system that can amend customer records or initiate payments.
Agree on acceptance criteria and risk boundaries before building the prototype. Establish who owns the knowledge, who operates the application and who approves changes. Test the least complicated design that could meet those requirements.
Introduce additional retrieval services, model routing, fine-tuning or agent capabilities only where observed limitations justify them. Run a controlled pilot with feedback from intended users and a clear fallback process. Expand access when the evidence supports wider deployment, not simply because the demonstration was impressive.
If your organisation is exploring generative AI, a focused architecture assessment can help distinguish requirements that demand specialist engineering from those that can be addressed with existing technology. The objective is not to assemble the largest possible AI stack. It is to create a system whose outputs can be understood, evaluated and used responsibly.
References and further reading
[1] Microsoft Azure Well-Architected Framework. Architecture pattern for AI workloads on Azure. Source: https://learn.microsoft.com/en-us/azure/well-architected/ai/architecture-pattern
[2] Lewis, P., et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. Advances in Neural Information Processing Systems 33. Source: https://proceedings.neurips.cc/paper/2020/hash/6b493230-Abstract.html
[3] Microsoft Azure Architecture Center. Develop a RAG solution on Azure — Information-retrieval phase. Source: https://learn.microsoft.com/en-us/Azure/architecture/ai-ml/guide/rag/rag-information-retrieval
[4] OWASP GenAI Security Project (2026). Top 10 Critical Security Risks for LLM Applications. Source: https://genai.owasp.org/top-10-for-llm-applications-2026/
[5] National Institute of Standards and Technology (2024). Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile. NIST AI 600-1. Source: https://doi.org/10.6028/NIST.AI.600-1
Apply the approach
Illustrative pilot, not an actual client result: an employee knowledge assistant processes 100 eligible questions. Independent reviewers accept 80 answers without correction and escalate the other 20. Assume ₹600 in total attributable delivery costs for this evaluation window, including generation, retrieval, infrastructure and review performed so far. Subsequent resolution costs and outcomes for escalated requests have not yet been counted. These figures demonstrate measurement rather than forecast commercial performance.
Hypothetical evaluation workload, including requests that require escalation.
80 independently accepted answers divided by 100 eligible questions. Escalated questions are not counted as accepted.
₹600 of assumed costs divided by 80 accepted answers. Include later resolution costs and outcomes before comparing full-process economics.
Put the approach into practice
- 01Select a business workflow and document its authoritative data sources, user permissions, acceptance criteria and existing performance baseline.
- 02Map the application, orchestration, knowledge, model and validation components; prefer existing services when they meet requirements.
- 03Define data-handling controls, limited tool permissions, exception handling, escalation paths and operational ownership.
- 04Evaluate representative workloads and adversarial cases; measure quality, response times and end-to-end delivery costs before broadening access.
- 05Scale through controlled releases, with versioned configurations, monitoring and periodic reassessment of the business case.
Frequently asked questions
What are the main components of generative AI architecture?
A typical enterprise application includes a user interface, identity and permission controls, an orchestration service, knowledge and system integrations, a generative model, output validation and operational monitoring. The necessary components depend on the task and its risk.
Does a generative AI application always need a vector database?
No. Some tasks need no external knowledge, while others can use an existing search engine, database or API. A vector index becomes useful when meaning-based retrieval improves results. Evaluate it against exact search and hybrid retrieval rather than assuming it is mandatory.
What is the difference between generative AI architecture and agentic AI architecture?
Generative AI architecture supports model-generated outputs such as answers, drafts and summaries. Agentic AI architecture adds the ability to select and use tools or execute multiple steps towards a goal within defined limits. Not every generative AI use case requires that autonomy.
Can an enterprise use confidential documents with generative AI?
Yes, if the deployment and data-processing arrangements are authorised and the application enforces access controls, privacy requirements, retention rules and appropriate output safeguards. Retrieval, logging, conversation history and external tools must respect the same restrictions.
How should a business choose a generative AI model?
Evaluate approved models against representative tasks, required modalities, context needs, quality thresholds, latency, availability and total cost. Select a model that meets the business and control requirements rather than relying exclusively on public benchmarks.
What makes generative AI architecture production-ready?
Production readiness requires demonstrated task performance, controlled access, reliable integration, defined ownership, monitoring, tested failure handling and release criteria proportionate to the workload. There is no single architecture or checklist that guarantees reliability or compliance.