Ler original em português

← All content

dooopSoftware · Product · 12 min

How to Structure Domain Knowledge for AI

Before connecting databases to AI, the product must define the meaning, source, validity, and owners of the knowledge that guides responses.

Published on September 6, 2026

CORE THESIS

AI makes mistakes when it treats outdated content as operational truth.

The domain requires a source, owner, and removal rule before guiding responses.

Domain knowledge for artificial intelligence is not just content stored somewhere. It is the part of the product that tells the AI what information means, where it came from, when it becomes invalid, and who is responsible for its maintenance. Before connecting documents, tickets, or internal databases to an intelligent feature, leadership needs to decide which information can guide responses, recommendations, or actions, which should be blocked, and how they will be reviewed.

Where Domain Knowledge Fits in the Product Experience

An AI-powered feature can use many types of information. Not all of them are domain knowledge.

Transactional data shows what happened: orders, accesses, statuses, movements, events, payments, deliveries. User preferences indicate individual choices. Interface rules define what appears, when it appears, and how the person interacts. Domain knowledge is something else: it is the set of definitions, criteria, exceptions, operational policies, and interpretations that give meaning to information within that product.

In a logistics SaaS product, for example, "late order" may seem like a simple expression. But the domain defines whether lateness starts after the promised time to the consumer, after the window agreed with the carrier, after the pickup attempt, or after the internal shipping deadline. If the AI responds to a user without knowing which of these definitions applies, it may sound confident yet still provide poor guidance.

Therefore, the first cut is not technical. It is product-related.

The question is: at which moments does AI need to interpret the business to help someone? It could be when answering a question, classifying a case, suggesting a next action, explaining a rule, or blocking an unsafe execution. This cut avoids treating all internal content as valid input.

This point connects to the pillar guide on product intelligence: intelligence only improves the experience when it enters a specific decision in the flow, not when it becomes a generic layer over everything.

Domain Knowledge for AI Needs to Separate Meaning, Origin, and Maintenance

Organizations often mix three questions that should remain separate.

The first is meaning: what does this information mean in the product domain? An acronym, a rule, or a status needs a definition understandable by product, engineering, support, and operations. If each area uses the same word for different things, the AI will inherit that ambiguity.

The second is the origin of the information: where did it come from and why should it be considered reliable? The source can be official documentation, an operational policy, an internal taxonomy, a help base, a service record, or expert guidance. Each has value but not the same weight.

The third is knowledge maintenance: who reviews it, when, and what happens when the information loses validity? A rule that was correct in the past may be risky today. For AI, abandoned content is not neutral. It can still appear as a response, recommendation, or justification.

Anthropic defines context engineering as the selection and maintenance of information available to the model during inference. This set includes instructions, tools, external data, and history within a limited window (Anthropic). This definition helps move the debate from "let's throw documents into the model" to a more operational question: what context should be available for which use case?

The point is to define what enters, with what authority, and for how long.

Which Sources Deserve to Enter the AI Repertoire

Not every internal source should guide an intelligent feature. Some are useful for discovering problems. Others are good for understanding user language. Few should serve as authority for response or action.

Official documentation tends to be a good source of definition, provided it is updated and has an owner. Help bases help translate technical language into understandable language but may contain simplifications that do not cover exceptions. Support tickets reveal real doubts, ambiguities, and recurring cases but should not be automatically treated as correct rules. Conversations with experts capture operational knowledge but need to become verifiable records. Internal policies can guide decisions, provided they have version, scope, and responsible party.

A simple criterion helps: a source should only guide AI if it is current, verifiable, interpretable, and useful for the product task.

  • Current means there is some sign of validity: version, date, change event, or active owner.
  • Verifiable means the team can point to where the information came from.
  • Interpretable means the information has definition, exceptions, and context sufficient to avoid informal reading.
  • Useful means it solves a specific response, recommendation, or action within the product.

With organized knowledge, it becomes clearer what the architecture will need to retrieve and verify. The architecture discussion comes later. Before that, leadership needs to know if the knowledge feeding the AI deserves to be used. For this broader prioritization decision, it is worth connecting with how to create an AI strategy connected to business.

How to Record Sufficient Context Without Turning Everything into a Prompt

Organizing domain knowledge does not mean copying entire documents into the prompt. Prompt here is the instruction sent to the model to guide a response or execution. It has a function but should not alone carry knowledge governance.

The starting point is to map context by use case.

For a task answering questions about delivery status, the necessary context may include status definitions, update rules, exceptions by operation type, limits of what the product can answer, and signals that information is incomplete. For a task suggesting ticket reclassification, the necessary context may include taxonomy, positive examples, negative examples, priorities among categories, and blocking rules when there is conflict.

The idea is to record smaller knowledge units with operational metadata. Metadata here means information about the information itself: source, owner, version, validity, scope, exceptions, and usage condition.

This matters because models operate within a limited context window, as Anthropic describes when addressing context engineering (Anthropic). In product design, selecting context well avoids treating information with different authority, scope, and validity as if they had the same weight.

A good knowledge record should answer:

  • What concept does this information define?
  • For which AI use case can it be applied?
  • In which situations should it not be used?
  • Which source has authority over it?
  • Who is responsible for changes, conflicts, or removal?
  • What signal indicates it is outdated?
  • What should the feature do when context is missing?

This record does not need to start as a complex platform. It can begin as a disciplined inventory, provided it has an owner and real use in development.

How to Define Owners and Review Cycles for Knowledge

Maintenance often fails when knowledge is treated as side documentation. Someone wrote it, someone uses it, no one knows who reviews it.

For AI in the product, this is fragile. If a feature starts responding or recommending based on a certain knowledge set, that set has entered product operation. Therefore, it needs an owner.

The owner does not need to be a single person. It can be an area, a role, or a decision forum. The point is to avoid knowledge lacking authority when there is conflict. If the help base says one thing, the expert says another, and the historical ticket suggests a third, which source wins?

A review cycle should include four elements:

  • Responsible for approving changes.
  • Frequency or trigger for review.
  • Removal rule when information is outdated, ambiguous, or contested.
  • Procedure to resolve conflicts between sources.

Triggers are especially useful. Changes in operational policy, nomenclature changes, new flow launches, increased blocked responses, or recurring conflicts between sources may require review before the next scheduled round.

The logic is similar to reliability discipline in engineering. Google SRE defines service level objectives as reliability goals that guide engineering decisions. The approach assumes agreement on goals, use of error budget for prioritization, and a review process (Google SRE). The analogy here is not to promise absolute AI accuracy. It is to treat reliability as an operational agreement, not a wish.

How to Measure Reliability Without Promising Absolute Accuracy

Organizing knowledge reduces ambiguity but does not eliminate error. This distinction needs to be clear.

The feature may use well-maintained sources and still respond insufficiently, retrieve an inadequate excerpt, or encounter a new situation. Therefore, measurement should observe the operational behavior of knowledge, not just the general perception of quality.

Some useful indicators are:

  • Rate of responses with an appropriate source for the task.
  • Volume of responses blocked due to insufficient knowledge.
  • Incidence of conflicts between sources.
  • Update time after rule changes.
  • Frequency of use of outdated or ownerless content.
  • Cases where AI requested more information instead of concluding without basis.

These indicators alone do not prove business value. They show whether the repertoire used by AI is governable. Product impact evaluation requires hypothesis, experiment, and specific measurement. Microsoft describes its ExP platform as a way to incorporate experimentation into the development cycle, validate hypotheses, measure impact, and iterate products (Microsoft Research). This does not mean user feedback automatically retrains a model. It means product changes need to be tested against explicit hypotheses.

A possible hypothesis could be: if the feature blocks responses when the rule is outdated or conflicting, users will receive fewer misguided directions. This hypothesis would need to be measured in the product context. It should not be assumed as a result.

Fictional Example: Domain Knowledge in a Logistics SaaS

Imagine a logistics SaaS that wants to include an AI feature to answer internal users’ questions about shipping rules and delivery status. The example is fictional and serves only to show the application of criteria.

The team identifies a recurring question: "why does this order appear as awaiting pickup?" It seems simple. But the status may depend on cutoff time, carrier integration, warehouse confirmation, pickup attempt, regional holiday, or system discrepancies.

Before connecting AI, the team records the necessary knowledge.

For the concept "awaiting pickup," the operational definition says: order released for transport, with label issued, still without pickup confirmation by the carrier in the system. The origin of the definition is the official shipping flow documentation. The owner is the logistics module product area. Validity depends on the current version of the shipping flow. The documented exception says orders in manual operation may remain in this status even after physical separation. The blocking condition says AI should not state the reason for delay when there is conflict between warehouse confirmation and carrier event.

For the "cutoff time" rule, the record includes scope: applies only to operations with same-day scheduled pickup. The source is the approved operational policy for that flow. The owner is operations. The review trigger is a change in pickup policy or operational contract with carriers. If the information lacks a current version, AI should explain there is insufficient basis to determine the reason and direct the user to the product-defined owner.

For support tickets, the team decides to use them as an auxiliary source of language, not as rule authority. They help identify how users ask about the problem but do not define the correct answer. This separation avoids historical support patterns becoming operational truth.

The expected result should not be presumed. The hypothesis to test could be that responses with explicit source and blocking in case of conflict reduce support rework. To evaluate, it would be necessary to monitor use cases, quality of retrieved sources, blocks, and corrections made by the responsible team.

Checklist to Qualify Domain Knowledge Before Using AI

This checklist is a practical way to decide if information can enter the AI repertoire. It does not validate model choice, replace user testing, or guarantee absence of error. It serves to qualify knowledge before implementation.

  • Meaning: does the information have a clear definition within the product domain? Accept only if product, support, or engineering can explain the same concept without relying on informal interpretation.
  • Use case: does the information serve a specific AI response, recommendation, or action? Accept only if there is a defined use and a situation where it should not be used.
  • Origin: is the source identifiable and verifiable? Accept only if the team can point to a document, system, policy, or owner.
  • Authority: does the source have priority in case of conflict? Accept only if there is an explicit rule to choose among official documentation, historical records, expert opinion, and support content.
  • Currency: does the information have a date, version, or event indicating validity? Accept only if the team knows when to review and when to block use.
  • Owner: is there someone responsible for maintaining this knowledge? Accept only if there is a role or area responsible for approving changes, removing incorrect content, and resolving conflicts.
  • Exceptions: are cases of non-application documented? Accept only if AI does not need to infer alone when the rule no longer applies.
  • Blocking: does the product know what to do when knowledge is insufficient, conflicting, or outdated? Accept only if there is a safe response planned, such as requesting more information, forwarding for human review, or not executing the action.

This checklist also helps with the AI roadmap because it turns a promising idea into visible dependencies: sources, owners, review, risk, and blocking criteria.

Without defined meaning, reliable origin, maintenance owner, and removal condition, knowledge is not ready to guide AI in the product. The feature may even seem intelligent, but the product will not know why it responded that way or when it should have remained silent.

If you want to discuss this decision in your company’s context, talk to dooop.

Further Reading

Sources

NEXT DECISION

Discussing Application in the Company

Conversation about the software company context

Content by dooop. Registration allows relating this topic to the reader’s journey and tracking interest in the subject.

Conversation about the software company context

We will use your details to deliver this content and contact you about related topics.