An AI feature is judged by how it behaves in a real application, not by a successful answer to a carefully selected demonstration prompt. Users have different permissions, source information becomes outdated and some requests cannot be answered with the evidence available. Cost, response time and failure behavior are product requirements.
We define a specific user task and the data that task is authorized to use. For intelligent search and document assistance, retrieval-augmented generation (RAG) can ground responses in approved documents, but the application must enforce access rights before retrieval and must not expose material a user is not entitled to see. A model prompt is not a substitute for authorization.
Define the failure path before release. We test missing evidence, conflicting source versions, restricted information, ambiguous questions, model timeouts and responses that do not satisfy the required format. Depending on the task, the correct behavior may be to ask for clarification, provide a traceable partial answer, transfer to a person or stop without taking action.
Make evaluation repeatable. A representative test set includes expected answers, prohibited disclosures and examples where the correct answer is that the information is unavailable. Reviews consider relevance, correctness and latency. For agentic workflows, external actions require separately defined permissions, approval gates and an audit trail consistent with the customer's policy.
An example decision. Summarizing a long document on every request may cost more than the task is worth and respond too slowly for the user. The design may narrow retrieval to the relevant passages, cache summaries of documents that rarely change, or use a smaller model to classify requests before a larger model is called. Each option is measured against response quality and the cost of each useful completed task.