Skip to content
Hexwave Lab
Product design

When a knowledge graph belongs in an AI application

Hexwave Lab  ·  Field note

Model an explicit relationship when the answer depends on how two records connect.

A question about the current owner of a contract depends on a relationship and a date. A passage search may find several historical owners. A graph can represent the relationship explicitly if the application also maintains its effective period.

A worked scenario

A support application needs to answer which team owns a component used by an affected product.

Review stageExample
Source recordsThe product-component relationship and current owner
ExceptionOwnership changed after the product description was written
Acceptance conditionThe answer follows the current relationship and cites its source

Give relationships a place in the data

A graph treats a connection as an explicit record. In a service catalogue, a product can depend on a component, a team can own the component and a customer can use the product. Moving ownership changes a specific relationship without requiring every downstream description to be edited.

Write a question that requires two or more connections to answer. List which links must be current for the answer to be safe to use. This is a better starting point for the schema than collecting every available entity.

Retrieve the evidence before drafting

A retrieval step selects relevant passages from a controlled collection. A language model can then draft an answer with those passages in view. A strong test deliberately includes a superseded policy alongside the active one to see whether the application can choose the right source.

Keep the version, permission check and passage location next to the answer. Give the reader a direct way to open the original in context and report a stale result.

Inspect how the collection is divided

A retrieved passage should contain enough context to answer a question without smuggling in unrelated material. Preserve section boundaries, document identities and version dates. A table header separated from its values is a poor retrieval unit.

Choose an example that depends on an exception in the next paragraph. Test whether the retrieved context includes the exception and whether the answer cites it.

Putting it into practice

Transfer a contract between two teams in the sample. Query both the present owner and the owner last quarter, then inspect the records supporting each answer.

Explore Hexwave Lab’s approach to digital product development.

Hexwave Lab

Plan a discovery call

Scheduling will open once a booking calendar is connected. You can prepare your project brief on the contact page.

Prepare a brief