primedefence
Private inferenceDeep-dive

Private inference architecture example for internal documents

An illustrative walkthrough from scope to a production decision. This is not a customer deployment or a claim of Primedefence results.

By Daute Delgado Updated 2026-09-09 5 min read

State the example’s assumptions

Consider a team preparing summaries of internal Spanish and English documents. It wants a draft containing main points and references to source passages, reviewed by a person before use. The system does not send messages, approve decisions or modify other systems. This is an illustrative proposal for reasoning about controls, not a description of a Primedefence deployment or customer success story.

Assume thirty authorised users and six hundred documents per week for the exercise. These are invented planning figures, not promised capacity. Input lengths, arrival patterns and review effort remain to be measured. The business requirement is to preserve existing permissions and retain the manual process if the service stops. The private AI guide covers decisions that should precede this design.

Components and responsibilities

ComponentResponsibilityVerification
Interface and identityIdentify users and bound requestsA removed user cannot start work
Document accessCheck permissions before reading contentAnother team’s document is excluded
Preparation and queueValidate format, length and pending workRejected inputs receive a clear error
Inference engineGenerate with pinned version and limitsReproducible configuration and measured load
Validation and reviewCheck structure and present sourcesReviewer can check each material claim
OperationsMeasure, alert and recover with limited accessRehearsed incident without content exposure

Components may share infrastructure. This table describes functions and responsibilities rather than requiring six separate services. The illustration is conceptual and does not certify network isolation. A final deployment diagram must show actual paths and dependencies.

Follow one request from start to finish

The application receives a user identity and document identifier. It checks authorisation before fetching content. For an authorised document, it validates format and size, prepares instructions and assigns a job identifier. The queue controls admission and deadlines. The engine receives only the context needed for the draft, without credentials that could extend access to other documents.

Output passes through structural validation and is presented with references the reviewer can open while still authorised. Format validation does not establish truth: the person checks material claims. The draft is not automatically distributed. This first version does not add search across the document estate. Adding retrieval later would require permission-preserving retrieval and new quality tests rather than merely connecting an index.

Draw the complete data boundary

The deployment diagram must identify where inputs, outputs, temporary files and logs are processed, who administers each system and how support gains access. Selecting private cloud or customer premises does not answer these questions by itself. The deployment comparison helps assess responsibilities before selecting location or infrastructure.

For this exercise, propose ordinary telemetry containing identifiers, versions and timings, avoiding complete text when unnecessary. Agree draft retention with the process owner rather than assuming a universal policy. Examine temporary files, backups and evaluation samples through the data inventory. Trace the system using synthetic markers before introducing sensitive information so unexpected copies can be identified safely.

Use tests capable of disproving the design

Prepare a user without document permission, an expired session and a document containing instructions to reveal other information. Check that access control prevents the unauthorised read and that the model has no tool capable of bypassing that boundary. Treat document text as untrusted content even when it comes from the internal repository. Internal origin does not make every embedded instruction appropriate to execute.

The security guide develops these checks. OWASP’s prompt-injection guidance describes threats involving content processed by a model. In this example, omitting action tools reduces the reach of an induced response, but does not eliminate misleading-summary risk. Keep review and provenance visible, and do not treat the model’s refusal message as proof that the application boundary worked.

Define what the pilot must demonstrate

Build a set covering both languages, short and long documents, contradictions and absent information. Assess coverage, correct references, unsupported claims and review time. Reserve cases that are not used to tune instructions. Agree criteria before execution. This article assigns no scores and does not assert that any configuration has passed those criteria; the purpose is to make the required evidence explicit.

Six hundred weekly documents do not size the engine. Measure tokens and arrival patterns, then test simultaneous requests using the capacity protocol. Calculate cost per accepted task, including review and operations. If work concentrates within one hour, that concentration must be tested even when the weekly average appears modest. Include rejected and retried work in the results.

Prepare recovery and an exit decision

Simulate an engine outage and an unavailable document dependency. Users should see that a draft is unfinished and be able to continue manually. Bound retries so they do not create multiple indistinguishable jobs. After restoration, verify versions, permissions and pending-work handling. Do not send documents to an alternative endpoint unless that route has already been approved and tested.

The final decision can be limited progression, revision or stopping. Record evidence and unresolved issues through the pilot plan, and responsibilities through the procurement checklist. Turning this example into a real proposal requires private inference services to establish the organisation’s data, workload, controls and delivery scope. The example supplies questions and testable boundaries, not a ready-made claim of production suitability.

Frequently asked questions

Is this a Primedefence customer case?

No. It is an illustrative example with planning assumptions. It does not establish customer results, deployed capacity or achieved savings.

Does this example need RAG?

The first version uses one authorised document per request. Adding search and retrieval across a corpus is an extension requiring its own permission controls and evaluation.

Can this architecture be reused unchanged?

It is a starting point. Data, identity, dependencies, workload, retention and ownership must be specified and tested before production.

Daute Delgado

Written by

Daute Delgado

CEO & Co-founder, Primedefence

Daute Delgado is CEO and co-founder of Primedefence. He spent more than a decade defending airlines, managed SOCs and international organizations, first as an operator and later leading security teams.

View full profile

Is private inference right for your business?

Define your use case, data requirements and pilot acceptance criteria.

Explore private inference services

Related articles