Engineering, AI & Security

AI Features Need a Data Map

An innocent question can cross several services and leave unexpected copies. A data map begins before model selection, with the information each operation actually needs.

By Josué Trindade Engineering & AI ~7 min

Someone asks an assistant which contracts need review. The application retrieves documents, sends excerpts to a model and returns a list. It sounds like a simple lookup. Those excerpts may contain names, negotiated prices and notes available only to one team.

In this hypothetical scenario, the answer is only one concern. Earlier transfers matter too: the connector reading a folder, the service building an index, the context supplied to inference and the error record saved when a call fails. The interface shows a conversation while the infrastructure runs a data pipeline.

I would map that pipeline for the specific feature. Before selecting the most capable model, I would establish which information it receives and which other components receive the same information along the way.

Start with the question the application promises to answer

Mapping an entire company’s data can become an excessively broad project. For an initial integration, I would choose a useful bounded question: find contracts approaching their review date for people authorised to inspect those contracts.

That promise separates necessary information from convenient information. A date, identifier and responsible role might suffice for selection. Sending the entire document to a model can increase exposure without improving that particular decision.

In an enterprise AI integration, I would explicitly identify the information each stage needs. The map should inform design choices rather than document a completed system after its important decisions have already been made.

One source can produce several datasets

A document does not necessarily remain one file. Software can extract text, divide it into passages and create numerical representations used for similarity retrieval. It can also retain titles, classification, company scope and source revisions.

OWASP’s RAG security guidance treats ingestion, representations, retrieval and generation as distinct parts of the pipeline. My design consequence is to track derived information as well as original files.

I would preserve a relationship between every passage and its source. If a contract is withdrawn from the feature, that relationship helps locate material that should no longer be used. Without it, deleting the original can leave its information accessible through the index.

The same reasoning applies to an extracted spreadsheet cell or a short generated summary. Being smaller than the source does not remove the need to know where it originated and which restrictions should accompany its use.

The first reader can have broader access than the person asking

A service connector might read a whole library to prepare an index. The person using the assistant may be entitled to only one part of it. Those are different authorities, even if the connector is operated by a trusted internal team.

If the index combines everything and filtering happens only after generation, restricted material may already have entered the model’s context. I would apply relevant access rules before supplying passages, preserving source classification and scope through the earlier transformations.

The discussion of MCP security boundaries helps distinguish communication with a tool from permission to use its resources. The data map should identify where that resource-level decision actually occurs.

Record the transfer, recipient and purpose

For each connection, I would note what travels, who receives it, why it is needed and where it remains. Saying it goes to AI is too vague to distinguish retrieval, inference and a support diagnostic service.

An initial representation can be simple: authorised source, field extraction, retrieval storage, passage selection, generation and answer. Add actual side paths such as caching, failure investigation and export rather than drawing an idealised pipeline that omits them.

The NIST generative AI profile includes privacy risks across the lifecycle. I would not treat the document as certification of an integration. It supports investigating stages the person using the application never sees.

For every additional destination, I would seek a practical reason. If a diagnostic service needs a request identifier and error class, it may not need the complete text used during generation.

Failure paths carry information too

Imagine a request rejected because its context is too large. Diagnostic software saves the complete payload to help engineering. The feature may have correctly limited the visible answer while creating a sensitive copy in an error store.

I would inspect authentication failures, repeated requests, support messages and diagnostic exports. Necessity and access should guide those routes too. A test environment can receive unexpected copies when the reproduction process is undefined.

This does not require removing observability. It requires choosing information that supports investigation without copying everything by default. Identifiers, versions and error categories can answer many operational questions without preserving the contract’s entire text.

Model hosting is one boundary among several

Running inference on company-controlled infrastructure can change the pipeline and its suppliers. It does not automatically solve internal permissions, exports, administrator access or retained conversations.

I would compare alternatives against the same map. An external option might receive only necessary fields, while a local option has access to an overly broad folder. Actual information and controls should drive the decision rather than assuming a privacy outcome from server location.

For enterprise software serving several customers, I would include company separation at every store. A company identifier in the conversation does not establish that a cache or retrieval layer enforces the same boundary.

Define how changes reach the pipeline

A person changes roles, a contract’s classification changes or a document is withdrawn. The system needs a way to propagate those changes to indexes and prepared answers.

I would distinguish updating a source from updating every derivative. Where delays exist, make them known and choose acceptable behaviour during the interval. An access change may require checking current authority before reusing an old retrieval result.

I would assign responsibility for each connection too. Knowing who maintains the connector, approves the source and repairs failed updates reduces the chance that each team assumes another team guarantees freshness.

A useful map lets you exercise a restriction

Before extending the feature, I would choose a test document containing fictional information and limited access. Follow its fields through retrieval, context assembly and logs. Then withdraw access and check the behaviour of retained results.

These are proposed checks rather than results from a real deployment. They seek a point where design promises a restriction while implementation has already lost the context required to enforce it.

A new platform is unnecessary for the first map. A maintained table next to the integration can suffice when it records concrete sources, derivatives, recipients, rules and owners. Its value comes from matching execution rather than visual complexity.

Growth towards 2030 should make the route more understandable

If assistants combine more sources and tools between 2026 and 2030, each capability can add recipients and copies. A launch-day map becomes incomplete unless the team updates it as those connections change.

I would connect the introduction of a source or tool to review of the affected route. Ask which new data now travel, through whom and under which rule. That supports controlled growth without turning every change into a company-wide audit.

In a business application, begin with a bounded question and follow one field to its final recipient. If the team cannot explain where it remains after the answer, an architectural decision is still missing.

[+] On this page 16 topics ▼
FAQ · Common Questions

Frequently Asked Questions

Does the data map cover only the model provider?

No. Include sources, connectors, retrieval, derived storage, the model, logs, exports and recipients. Each transfer can change access and retention.

Does local inference remove the need for a data map?

No. Model hosting matters, but indexes, copies, permissions, logs and internal users still exist within the infrastructure.

Must the whole company be mapped before starting?

A bounded feature is a practical starting point. Its map should cover the actual data path, including failure and support routes.

Start your project

Need a website that earns trust, ranks in search, and gives your business a stronger digital presence? Start the conversation here.

Official sources used on this page