Governed AI Feature Within an Existing Product

Proposed Architecture

Relevant needs: AI features within products; data readiness for AIRelated practices: AI-Led Engineering; Data Modernization

Problem Statement

A prototype using artificial intelligence (AI) may produce convincing responses from a fixed set of sample documents. In an existing product, the same feature must respect each user's permissions, handle incomplete and outdated information, respond appropriately when evidence is missing and operate within defined cost and latency constraints. Selecting a model does not resolve source ownership, access rules or the quality of retrieved information.

Proposed Solution

Build an AI feature around one supported user task and an approved data boundary. Before model integration, identify source owners, remove or flag outdated material, define permission rules and prepare evaluation questions. Introduce the model only through an application service that applies authorization, context selection and output checks.

Technical Architecture

An authenticated user requests a defined action in the product. The application verifies identity and entitlements. A retrieval service selects permitted content from a maintained index, filtering it according to access rules inherited from the source systems. A model interface sends only the authorized context. The application checks the response structure, handles unsupported answers and records operational metadata without treating the model output as an authoritative transaction. Sensitive operations require a separately approved workflow.

The request path

  1. Signed-in user and product task
  2. Identity and entitlement checks
  3. Permission-filtered retrieval
  4. Approved AI model interface
  5. Output validation and fallback
  6. Product response

The content path

  1. Approved data sources
  2. Source preparation and access classification
  3. Permission-aware index
  4. Permission-filtered retrieval
Proposed reference architecture.

Key Components

Data readiness register
Approved sources, owners, versions, refresh rules and access classifications.
Retrieval layer
Searchable content with source references and permission filtering.
Model interface
Controlled invocation, request boundaries, timeouts and usage measurement.
Evaluation suite
Representative user tasks with tests for relevance, missing evidence, permission isolation and failure behavior.

Engineering Decision Example

Consider a product assistant that summarizes contract terms. A user may have access to one customer's agreement but not another's. The application must apply entitlement checks before retrieving contract passages; filtering the final response is insufficient once restricted data has reached a model. Source ownership and document versions also matter when an amendment supersedes an earlier contract.

The evaluation set should include an authorized question, an unauthorized request, a missing contract, an outdated clause and a question requiring human interpretation. Responses are assessed for source support, not fluency alone. The interface declines unsupported conclusions and directs consequential decisions to the existing approval process. A model change triggers re-evaluation against the same protected scenarios.

Acceptance Evidence

An authorization test matrix, representative evaluation questions and expected outcomes, source version and refresh rules, timeout and fallback tests, and measured latency and usage cost for the defined task.

Implementation Approach

  1. Define the task. Agree on one product task and measurable acceptance criteria. Produces: a task definition and the evaluation questions that will judge it.
  2. Prepare the data. Inventory the sources the task requires and validate access rights. Produces: a data readiness register and a limited, approved knowledge set.
  3. Build the controlled path. Implement retrieval and the model interface behind the application's authorization. Produces: a working feature restricted to permitted content.
  4. Evaluate before expanding. Test ordinary, ambiguous, restricted and unanswerable requests, then review quality and usage. Produces: evaluation results and a decision on extending to more users or documents.

Technology Choices

Models from Anthropic, OpenAI or Google may be considered according to task requirements. A relational store, search index or vector retrieval service may support content access. The design does not require a specific model provider.

Expected Benefits and Tradeoffs

This structure creates explicit points for access enforcement, evaluation and failure handling. It also introduces index maintenance, operational monitoring and ongoing evaluation when source material or models change. Retrieval can improve grounding but cannot guarantee a correct answer. Human review or a controlled fallback may be required for consequential uses.

Relevant eProtons Capabilities

AI product features, data preparation, application integration, permission-aware retrieval, evaluation and quality engineering.

Related services: AI-Led Engineering; Data Modernization

Next step

Choose one user task and identify the information it is allowed to use.