Knowledge graphs & ontology design · 2 years

The semantic layer your AI is missing

I design taxonomies and ontologies, build the knowledge graph on top of them and link it to vector search, so AI systems reason over how your business fits together instead of guessing from similar-looking text.

2 yrs
taxonomy, ontology and knowledge-graph design
Live data
RAG over production systems, not static exports
Cited
grounded answers with sources
9+ yrs
in software engineering

What is ontology-grounded RAG?

Ontology-grounded RAG is retrieval-augmented generation in which retrieval is guided by an explicit model of the domain: the entities that exist, how they relate and the rules between them. Instead of fetching text chunks that merely resemble the question, the system follows relationships in a knowledge graph and combines them with vector search, which produces answers that are complete, consistent and traceable to a source.

The problem

Where teams get stuck.

  • Vector search returns passages that sound relevant but miss the related facts that make an answer correct.
  • The same product, customer or term means different things in different systems.
  • Questions that span several records, such as “which orders are affected by this supplier change”, cannot be answered.
  • Nobody can explain why the assistant gave a particular answer.
The approach

How I build it.

Neo4jPostgreSQLpgvectorGraphRAGWeaviatePineconeLlamaIndexLangChain
  1. Taxonomy first

    Agree the vocabulary with the people who run the business: categories, attributes and the terms that are really synonyms.

  2. Ontology

    Model entities, relationships and constraints explicitly, at the level of detail the questions actually need.

  3. Graph from live data

    Pipelines populate and refresh the graph from production systems, with entity resolution so one real thing is one node.

  4. Link graph and vectors

    Nodes carry embeddings, so a query can start with semantic search and continue by following relationships.

  5. Grounded, cited answers

    Responses reference the nodes and documents they came from, and quality is tracked on a fixed question set.

Proof

Where I have done it.

At Metis Labs I architected the AI knowledge layer: taxonomy and ontology design, a knowledge graph linked to vector search, and RAG over live production data with grounded, cited answers. At The Branding Club the SKU-generation layer was built on a product taxonomy.

Read the Metis Labs case study Article: Ontology-grounded RAG: why vector search alone stops improving
Questions

Asked often.

What is the difference between a taxonomy, an ontology and a knowledge graph?

A taxonomy is a hierarchy of categories. An ontology adds the types of things that exist, the relationships allowed between them and the rules they follow. A knowledge graph is that ontology filled with your actual data: real products, customers and orders connected by real relationships.

When does GraphRAG beat plain vector RAG?

When answers depend on relationships or on combining several records: multi-hop questions, questions about everything connected to an entity, and domains where precise terminology matters. For simple lookups in a small document set, plain hybrid search is cheaper and good enough.

How long does it take to see a result?

A focused sprint of two to three weeks is enough to model one domain, load a working graph and measure the change in answer quality against your current system.

Ways to engage

Start with one of these.

Reply within 24 hours

Need this on your product? Let’s talk.

The first call is free and takes 30 minutes. You leave with a scope outline and a price range, whether or not we work together.

Or build a project brief in one minute