Explaining Ontology, Knowledge Graphs, and LLMs to Clients: A Fund-Verification Walkthrough
How to Explain Ontology, Knowledge Graphs, and Large Language Models to Clients
Author: Moment Tags: Frontend, Backend, Interview
Recently I have been working on DocFlow, a full-stack hands-on project combining Agent, RAG, and knowledge graphs, tested to support real-time collaboration for a hundred people, supporting Word (DOCX) and PDF import. The Agent can retrieve materials, rewrite documents, and operate spreadsheets. Under the hood, it implements a main Agent orchestrating, sub-Agents doing parallel verification and result review, as well as automatic context compression, long-term and short-term memory, and task recovery. RAG covers parent-child chunking, BM25 + vector hybrid retrieval, RRF fusion, reranking, and source citation tracing, suitable for developers who want to dig into the source code and build AI applications hands-on.
At the same time, I have organized 80 articles on Agent development, 72 on RAG, and 70 on knowledge graphs, totaling 222 learning resources, from basic principles to engineering practice. You can learn by doing alongside the source code. If interested, add me on WeChat yunmz777 to learn about the project and supporting materials and to exchange ideas on AI development.
When presenting a solution to clients, it's easy to start from concepts: ontology handles semantic modeling, knowledge graphs organize entity relationships, and multimodal large language models process different forms of information. After explaining all the concepts, the client still doesn't know which step of their work this system can replace.
The client might have a stack of bank statements, several business systems, and a to-be-verified checklist. They care more about: which information doesn't need to be entered repeatedly, which relationships can be looked up directly, whether analysis results can be traced back when problems arise, and whether the system will write unsupported guesses into reports.
So we need to first pick a specific business task and explain clearly how materials enter the system, how questions are processed, and how results are subject to inspection, and then explain what each of the three technologies is responsible for. Below, we use an example of authorized fund verification; accounts and transactions are illustrative objects and do not correspond to real cases.
First Help the Client Understand What Each of the Three Does
If I only had one minute, this is how I would introduce the solution.
Ontology unifies the meaning of objects and relationships in the business, the knowledge graph associates specific records with their sources, and the large language model understands questions, coordinates tools for search and analysis, and organizes results into explanations that are easy to verify.
Here, ontology refers to the ontology model in knowledge engineering, i.e., Ontology. Think of it as a business dictionary plus conventions between concepts, but it needs to be more explicit than a regular dictionary, for example, what an account, an account-opening entity, and a transaction are, and how the transfer-out account and the receiving account participate in the same transaction.
| Component | Responsibility in fund verification | What it cannot guarantee by itself |
|---|---|---|
| Ontology model | Unifies the meaning of accounts, institutions, transactions, amounts, time, and their relationships | Cannot intercept all erroneous data based on a single definition |
| Knowledge graph | Organizes specific objects and their related records, preserving source, time, and verification status | Cannot guarantee that imported records are naturally true and complete |
| Large language model and its applications | Understands questions, proposes query or analysis steps, coordinates tools to organize results | Cannot guarantee computational correctness, evidence sufficiency, or operational permissions based on language generation alone |
This is a division that is easy for clients to understand; a concrete system can combine these capabilities or adopt only part of them. Hogan et al.'s 'Knowledge Graphs' discusses graph schemas, queries, rules, and graph analytics, among other capabilities; graphs do not depend on large language models to be useful, nor do they require designing a massive ontology up front. arxiv.org
The transaction relationships between accounts should be supported by specific records. The ontology defines the meaning of such relationships, and applications organize query and analysis tools. Clients need to know how a conclusion gets its basis and where to go to verify when problems arise.
Ontology Unifies Meaning; Validation and Permissions Need System Execution
In fund verification, first distinguish the account-opening entity, actual controller, and counterparty to avoid many misunderstandings. They may point to the same object or be completely different; do not merge them into one field just because names are similar.
Business experts need to participate in defining these meanings. The technical team can help sort out fields and relationships, but whether fund concentration is calculated by total inflow or net inflow, and whether transaction time uses occurrence time or posting time, all require confirmation with the business. Otherwise, even if fields between systems are successfully integrated, they might be answering different questions.
After defining, rules that need to be enforced must be implemented in code. For example, if the amount field mistakenly contains a bank name or lacks a required currency, type and completeness validation can catch it. Whether the current user can read an account requires backend permission checks.
These checks cannot be written only into prompts. When expressing ontology with OWL, the domain and range of relationships mainly have logical inference semantics and cannot be directly used as database write constraints. The W3C OWL 2 Primer clearly explains this difference. In RDF solutions, SHACL can check whether data conforms to specified conditions and generate validation reports; whether to block writes next is still executed by the business process.
Type checking only shows that data satisfies the corresponding rules. A correctly formatted amount might still have a misplaced decimal point, and a correctly typed account might still be linked to the wrong account-opening entity. Therefore, rule validation, source verification, and permission control must be implemented separately, not merged into one vague ontology constraint.
Palantir's case should be presented this way too. Its Ontology system organizes business objects, relationships, logic, actions, and security mechanisms together, supported by an execution engine and toolchain for actual operations. AIP also provides access control, audit, and evaluation capabilities. We can refer to this organizational style, but an ontology definition does not mean the full product capability is present.
The Graph Connects Records, but Must Preserve Sources and Uncertainty
The ontology stipulates that accounts can participate in transactions, while specific records might state: account A is the transfer-out party of transaction T1, account B is the receiving party, and the transaction includes amount, currency, time, and source location. Storing transactions as traceable records is more practical than drawing a simple line from A to B, making it easier to handle duplicate transactions, reversals, and later verification.
Objects with the same name also cannot be merged directly. When account holder names or company names are similar, stable identifiers and original materials still need to be cross-checked to confirm identity.
Every important relationship should be able to answer where it comes from, what time range it describes, and whether it has been verified. Unconfirmed associations can be kept as candidates; being drawn into a network does not upgrade them to established facts.
When demonstrating to clients, distinguish three different types of results.
- Queried path: The record shows a transfer from A to B and from B to C, so this path can be queried, but you cannot conclude that the same funds flowed through both transactions in full based on the path alone.
- Conclusion derived from rules: If the company is agreed to be a type of organization, and Company A is confirmed as a company, then by this rule the type of Company A can be classified as an organization.
- Lead requiring verification: An account with many connections and frequent outgoing transfers in a short period can be an entry point for further analysis, but cannot directly be used to determine its actual controller or illegal nature.
These three rely respectively on recorded data, explicit rules, and hypotheses still to be tested; the output should preserve this distinction.
A knowledge graph does not mean you must switch to a graph database. Relational databases can handle multi-level relationships through joins and recursive queries; the PostgreSQL documentation provides examples of recursive queries, graph path searches, and cycle detection. postgresql.org
Whether to adopt a graph database should be evaluated based on the complexity of relationship queries, data scale, update patterns, and maintenance costs. Queries that the client's existing systems can already handle can continue to be used; whether to add new components depends on actual business needs, not on how many relationship hops the database supports.
Multimodal Helps Process Materials, but Extraction Results Still Need Verification
When a client brings a 200-page PDF of transactions, first explain how the system reduces line-by-line data entry, then discuss multimodal models. Different models support different inputs; text, scanned images, voice, and video must be integrated according to actual capabilities. Multimodal does not mean any file can be processed correctly directly.
For this sample material, first extract usable text, perform OCR on scanned pages, restore table rows and columns, associate records across pages, and retain the page number and location for each piece of information. After the model assists in field recognition, first form candidate transaction records, then check accounts, amounts, currencies, time, and their relationships.
Two types of errors especially need to be prevented. One is splitting a single transaction into two or missing records across pages; the other is filling unreadable amounts with plausible-looking numbers. Content that cannot be confirmed should go into a to-be-verified area, and missing values should not be treated as zero.
For clients, the value of material processing translates into fewer fields entered, which anomalies are caught early, and whether a reviewer can directly locate the original page during review. Get these things stable first, then expand to more input forms.
If the business only handles well-structured spreadsheets and text, conventional parsing, querying, and text models might be sufficient. Whether to add vision or voice capabilities should be decided by material characteristics and actual interaction needs.
A Business Question Goes Through Query, Computation, and Verification
Suppose a business person wants to know, during the verification period, which accounts had large inflows and from which counterparties those funds came. This question can be broken into an executable, checkable process.
The system first confirms the statistics period, account scope, currency, and how refunds and reversals are handled, then queries relevant materials based on the current account's permissions. The model can propose tools to call, but the actual data reading, computation, and writing should be executed by the application's tools and backend services.
Materials can come from multiple entry points. Structured amounts can be queried from a database, original text explanations from documents, and cross-object relationships from a graph. The system selects entry points based on the question and combines them when necessary; it does not require running all retrieval methods sequentially every time.
Summarizing amounts, calculating proportions, and sorting should be handed to recomputable programs or database queries. Especially for fund proportion, the numerator, denominator, and deduplication rules need to be stated first. Amounts from multiple transfers cannot be summed without explanation and then called the scale of the same funds.
Finally, the large language model organizes the explanation based on query and computation results, retaining the statistical scope, source locations, and unconfirmed items. If materials are incomplete, the system should supplement with accessible sources or clearly state what cannot currently be confirmed.
After integrating a graph or document retrieval, this verification step is still necessary. The RAGTruth study found that retrieval-augmented generation responses can still contain content not supported by the materials, or even contradictory to them. Having a citation does not eliminate the need to check whether the citation supports the corresponding claim. ACL Anthology
Therefore, the commitment to clients should fall on verifiable behaviors: can return to original records, can recompute statistical results, can distinguish confirmed content from pending leads, and can leave gaps when evidence is insufficient. Do not present the system as hallucination-free after integrating a graph.
System Improvement Comes from Verification, Revision, and Regression Testing
If two previously unlinked accounts appear during analysis, keep them as pending leads, explain the basis for discovery, and let subsequent verification confirm whether a relationship should be established. Based on similar transaction patterns alone, you cannot automatically write that they are controlled by the same entity, nor overwrite original records.
Confirmed results must be saved with their basis. When revisions occur, preserve the original record, the reason for modification, and the version so that later staff can know which conclusions have changed. If statistics or reports are affected, recalculate or re-check the related results.
Ontology rules also change. For example, if the business redefines fund concentration criteria, evaluate whether existing queries, statistics, and interpretations are affected. Only changing concept names without checking downstream behavior can make the same question yield incomparable results at different times.
This kind of improvement happens first on data, rules, and workflows. A graph gaining nodes does not mean model parameters have been updated, nor does it guarantee the next answer will be more accurate.
Use a fixed set of business questions for regression checks to confirm that after fixing errors, related queries, statistics, and source location still hold. Only verified changes are suitable as the basis for the next round of work.
Pick a Pilot First, Then Decide Which Components Are Needed
When a client asks which to build first, return to the business task. If the current problem is just clarifying amounts in a few tables, focus on data definitions and database queries. If you need to find basis from regulations or reports, start with document retrieval and citations. When problems frequently involve tracing relationships across multiple objects and sources, then evaluate the value of a knowledge graph.
The ontology can also start with the objects and relationships needed in the current scenario and be refined gradually. Whether to use OWL, deploy a reasoner, or adopt a dedicated graph database are all later technical choices; they don't have to be the starting point for every project.
Before the pilot begins, record the client's current processing methods and agree on what constitutes a usable result. Don't just compare how long a demo takes; also include material preparation, exception handling, and manual review time.
| Aspect to verify | How to check |
|---|---|
| Is extraction complete and accurate? | Compare against manually verified samples, count missed, wrong, duplicate records, and key field errors |
| Are entity relationships correct? | Check whether same-name objects are mistakenly merged and whether already-evidenced relationships are missed |
| Are queries and computations trustworthy? | Fix data scope and statistical criteria, check if results can be recomputed and sources located |
| Are answers evidence-based? | Check whether every important judgment is supported by materials and whether missing information is explicitly retained |
| Are permissions actually effective? | Use test accounts with different permissions to check queries, original text reading, export, and writing |
| Does it reduce manual burden? | Under the same quality requirements, compare total task time, review hours, and rework counts |
Agree on the criteria and acceptance conditions for these metrics in advance, then compare before and after using representative materials, only then can you discuss how much time and cost are saved.
Different audiences can be shown different priorities, but the technical conclusions don't have to change.
| Audience | Priority content |
|---|---|
| Executive | Business problem the pilot solves, how failures are handled, which results have been verified |
| Business manager | Flow from receiving materials to completing verification, which definition confirmations the department needs to participate in |
| Frontline staff | Less data entry and searching, how errors are corrected, how conclusions tie back to original text |
| Technical department | Data interfaces, identity and permissions, deployment, update mechanisms, and operational records |
| Finance and procurement | Pilot-measured work-hour changes, total cost, maintenance investment, and expansion conditions |
Business people define meanings and acceptance criteria, data people handle sources and quality, developers implement queries, validation, and permissions, and the model handles the understanding and generation it can take on. Once responsibilities are clear, clients can judge what the solution requires in investment and who maintains it after delivery.
Summary
To explain ontology, knowledge graphs, and large language models to clients, put them back into a concrete business task that can be completed and checked. Ontology gives business meanings a common convention, the knowledge graph makes related records traceable, and the large language model helps understand questions, organize tool calls, and explain results. Data validation, computation verification, and permission execution are handled by the corresponding system mechanisms.
Clients should eventually see which repetitive work they can skip, which judgments still need human confirmation, and how to locate and revise when results are wrong. Only by verifying these things in a pilot can you show whether the combination is worth doing in the current business.