Skip to main content

What should your AI know, and how should it find it?

An enterprise guide to how Open Knowledge Format, ontologies, taxonomies and vector databases help AI assistants find relevant evidence and determine which policies apply.

Written by Alex TjahjanaPublished

A stack of documents, a branching brass network and clusters of teal dots on glass.

Open Knowledge Format, ontologies and vector databases solve different problems. Knowing which problem you have can save you from building a more expensive assistant that still gives the wrong answer.

A procurement assistant receives a deceptively simple question. “Can this contractor access customer records before their security review is complete?” It finds a passage about temporary access and produces a confident answer. The passage applies to employees in another jurisdiction. The contractor’s review status sits in a separate system. The current policy has an exception, but only for a different class of data.

The assistant found relevant language. The business needed applicable policy, a current fact and a defensible decision. Each requires a different capability.

The first two articles in this series looked at how explicit meaning can improve AI systems and how to model and integrate that meaning. The next decision is where to place three responsibilities in an enterprise architecture: publishing context, defining meaning and finding evidence.

Capability What it provides Question it helps answer Main trade-off
Open Knowledge Format (OKF) A portable way to package and link readable knowledge Where is the maintained explanation, and what sources does it cite? Lightweight conventions leave governance and serving to the organisation.
Ontology An explicit model of domain concepts and relationships, with formal axioms where needed What counts as a contractor, and how does a contractor relate to an engagement or review? Shared meaning takes agreement, mapping and ongoing stewardship.
Vector database Storage and similarity search for numerical representations of content Which passages resemble this question, even when they use different words? Search performance and relevance depend on the embedding, index and filters.

OKF makes knowledge easier to publish and reuse

Open Knowledge Format is an open specification introduced by Google Cloud for packaging knowledge as a directory of Markdown files. A concept document combines a Markdown body with YAML front matter, a small block of structured metadata. A non-empty type is the only universally required concept field. Documents can link to one another, and the v0.2 specification defines optional conventions for sources, verification and lifecycle information. Teams can use these to publish policy explanations, metric definitions, runbooks or data catalogue entries. OKF v0.2 specification

For a small, curated corpus, a chatbot can use an authorised document service to read an index, fetch relevant pages and follow selected links. At larger scale, an ingestion pipeline can index headings and sections while preserving source links and revision identifiers for citations. The same bundle remains readable by a policy owner reviewing a change and by a search service rebuilding its index.

The benefit is portability and reviewability. The cost is agreeing on local conventions and owning the publication process. Two valid bundles may give the same concept different type labels or use different identifiers. A source field records attribution, while your publication workflow determines who can approve it and when it expires. Access control, identity resolution and synchronisation with the policy system belong to the surrounding architecture. Treat conformance and interoperability as separate acceptance tests when evaluating tooling.

An ontology gives systems a shared interpretation

An ontology describes the kinds of things in a domain and how they relate. In procurement it might distinguish a supplier organisation, a person, an engagement and a review. It can express that a review applies to an engagement, so a chatbot can distinguish the contractor’s current assignment from a previous one. With a formal language such as OWL 2, a reasoner can also infer facts entailed by the model and data. A graph of actual engagements supplies instance data, and a query service can expose it to the assistant through approved operations. RDF-based implementations can use SPARQL for graph queries and SHACL to validate required data shapes. W3C OWL 2 · W3C SPARQL · W3C SHACL

The benefit is consistency across use cases. Procurement, security and a chatbot can resolve the same engagement and interpret its relationships in the same way. The work is agreeing on definitions, mapping legacy identifiers and updating consumers as the model changes. Explicitly test missing facts. In OWL’s open-world semantics, a missing approval assertion does not establish that approval was denied. A governed service can return “approval status unknown” and apply the organisation’s decision rule. Reserve binding decisions for the service that owns the rule and has current inputs. W3C OWL 2

Where taxonomy fits. A taxonomy organises concepts for tagging, navigation and retrieval, often through broader and narrower categories. A taxonomy of access topics could group “Temporary access” under “Identity and access management” and supply stable concept identifiers for indexing. An ontology can reuse or map that vocabulary, then model how an engagement is covered by a policy and which review applies. A SKOS broader link expresses a relationship between concepts in a classification scheme. Asserting an OWL subclass relationship is a separate modelling decision with formal consequences. If the business needs consistent labels and filters, the taxonomy may be sufficient. W3C SKOS Reference

Vector search finds evidence across differences in wording

An embedding model represents text as a numerical vector. A vector database or a vector-capable search platform stores these representations and finds nearby vectors under a chosen distance measure. In a retrieval-augmented generation (RAG) workflow, the system embeds the question, retrieves candidate passages and supplies selected evidence to a large language model (LLM) for drafting. “Can a vendor start pending clearance?” may surface a relevant passage headed “Third-party onboarding before review.” Lewis et al., original RAG paper · pgvector documentation

The benefit is discovery across a large or inconsistently worded corpus. Similarity scores rank candidates and can elevate passages with the wrong applicability, dates or audience. Exact terms such as policy IDs often benefit from keyword search. Structured filters can enforce jurisdiction or effective date, with user authorisation enforced before evidence reaches the model. Approximate indexes can reduce query latency at the cost of missing some neighbours. Filtering behaviour varies by implementation, so test recall and latency under realistic access and metadata filters. Budget for index refreshes and re-embedding when models change. An existing database or search platform with vector support may already meet these requirements. pgvector indexing and filtering documentation

Three architecture patterns worth comparing

Pattern When it earns its place What to test
Curated documents with direct retrieval. Publish approved explanations in OKF. A document service fetches scoped pages and follows relevant links for the assistant. Small corpora with named owners and predictable questions, such as an internal runbook assistant. Whether users can find the right page, links resolve after changes and context stays within budget.
Search-led RAG. Index approved documents, including OKF where useful. Combine keyword and vector retrieval with metadata filters, then rank evidence for the LLM. Large document collections and varied phrasing, such as a service desk knowledge base. Whether retrieval finds the applicable passage, preserves citations and honours permissions under load.
Structured queries plus evidence retrieval. Resolve entities and relationships through a governed data service. Use those results to scope document search and call authoritative services for live facts or decisions. Questions spanning multiple systems where eligibility, exceptions or auditability matter. Whether identifiers map correctly, the source is current and the assistant handles conflicting or incomplete evidence.

In the procurement example, the third pattern resolves the engagement and data category before searching. It then reads the review status from the authoritative system and retrieves the policy version that applies to the engagement. If the user needs a binding access decision, the assistant sends the verified inputs to the access decision service and explains its result with citations. If the review status cannot be verified, it reports the missing fact and routes the request to the owner. OKF can carry the approved explanation. The ontology can give the systems a common meaning for engagement and review. Vector retrieval can help locate the supporting policy passage.

What to prove before expanding

Keep authority visible. Decide which system owns the policy text, the live fact and the decision. Use stable identifiers to connect documents, structured records and indexed passages. Carry source revisions, effective dates and entitlements into retrieval, and test that changes to permissions and deleted or superseded documents propagate. Treat retrieved content as evidence and enforce tool permissions separately.

Measure each failure where it occurs. Use representative questions with expected evidence and outcomes. Check retrieval recall, entity resolution, citation accuracy, correct answers and appropriate abstentions. Include superseded policies, near-identical clauses from different jurisdictions and evidence the user cannot access. Compare latency and ongoing publishing and modelling effort alongside answer quality.

Build for the constraint you can show. If the assistant finds stale guidance, improve publication and version handling first. If approved evidence is hard to discover, test hybrid search against the current baseline. If systems disagree about what an engagement or approval means, model the few concepts and relationships that drive the decision. The architecture earns its complexity when the assistant can explain which policy applies, which facts it verified and where the evidence ends.

    open-knowledge-formatontologyenterprise-aiknowledge-taxonomyvector-databaseenterprise-architectureretrieval-augmented-generationragai-architecture