AI Agents & Knowledge Graphs
Kingsley Uyi Idehen
Founder & CEO at OpenLink Software | Driving GenAI-Based AI Agents | Harmonizing Disparate Data Spaces (Databases, Knowledge Bases/Graphs, and File System Documents)
AI Agents
A genre of software applications operated through multimodal conversational interactions and equipped with varying degrees of autonomy. Today, conversational interactions are increasingly handled by Large Language Models (LLMs), while autonomy is managed through external function integration.
Knowledge Graphs
What are they?
A collection of Entities, Entity Types, and Entity Relationship Types that enable reasoning and inference.
Knowledge Graph Types?
Why are they important?
They provide a powerful foundation for creating a System of Intelligence derived from existing Systems of Record and Systems of Engagement.
How are they created?
By describing entity and entity relationship types using a variety of open standards-based notations and associated serialization formats. For example, we could represent “New York is a city in the USA” as:
(:Country {name: "USA"})
|
|
[IS_IN]
|
|
(:City {name: "New York"})
Meaning:
Nodes:
(:Country {name: "USA"}): Represents the country with a attribute name set to “USA”.
(:City {name: "New York"}): Represents the city with a attribute name set to “New York”.
Relationship:
[IS_IN]: A directed relationship from the city “New York” to the country “USA”, indicating that “New York is in the USA”.
Labeled Property Graphs (LPGs)
Representation is modeled on a node, relationship (vertex), and node structure basis, oriented toward software interaction by programmers. Entity denotation is literal, i.e., label-based, leaving the software programmer to handle relationship type semantics in his or her code.
New York & USA Representation Example
Using the new Graph Query Language (GQL), this would be represented as:
CREATE (:Country {name: "USA"}) AS usa;
CREATE (:City {name: "New York"}) AS nyc;
CREATE (nyc)-[:IS_IN]->(usa);
RDF-based Knowledge Graphs
Representation is modeled using a subject, predicate, object (or entity, attribute, value) structure aligned with controlled natural language. Notations and serialization formats are typically dual-purpose (e.g., JSON-LD, RDF-Turtle, RDF-XML).
Entity denotation is based on structured identifiers, which can include hyperlinks, providing web-like navigability for interactions by human operators and software agents.
New York & USA Representation Example
Using RDF-Turtle Notation, this would be represented as:
领英推荐
@prefix : <#> .
:New_York a :City ;
:isPartOf :USA ;
:label "New York" .
:USA a dbo:Country ;
rdfs:label "USA" .
Using RDF-Turtle Notation, and leveraging hyperlinks for denotation of subjects and predicates, and a hyperlink or literal for objects:
@prefix : <#> .
@prefix rdfs: <https://www.w3.org/2000/01/rdf-schema#> .
@prefix dbo: <https://dbpedia.org/ontology/> .
@prefix dbpedia: <https://dbpedia.org/resource/>
dbpedia:New_York a dbo:City ;
dbo:isPartOf dbpedia:USA ;
rdfs:label "New York" .
dbpedia:USA a dbo:Country ;
rdfs:label "USA" .
How Do AI Agents and Knowledge Graphs Work Together?
The statistical nature of LLMs renders them suboptimal as the sole technology for effectively interacting with the fluid nature of knowledge. Knowledge Graphs complement LLMs as reliable sources of knowledge curated by domain experts. Achieving this synergy requires LLMs that support external function integration with Knowledge Graphs using Retrieval-Augmented Generation (RAG) or Graph Retrieval-Augmented Generation (GraphRAG) processing pipelines.
RAG
This approach typically uses external function integration primarily focused on vector-indexing of knowledge documents, providing richer context for prompt-response generation pipelines. Its coarse-grained nature, however, can lead to factual-sounding inaccuracies (a.k.a. hallucinations).
GraphRAG
This approach also relies on interactions with Knowledge Graphs via external functions. These functions may provide an entire Knowledge Graph or query results (e.g., SQL, SPARQL, GraphQL, or GQL) to offer rich context, reducing hallucinations through prompt-query templates.
How are AI Agents with Knowledge Graph bindings packaged?
In various ways:
Use Case Example
Here are three simple use case examples showcasing AI Agent interactions enhanced by loosely coupled Knowledge Graph interactions:
Each of these examples is based on the following:
Conclusion
The relationship between AI Agents and Knowledge Graphs is symbiotic, delivering a best-of-both-worlds approach that evolves software interaction into a much more productive form. This is achieved through multimodal natural language interfacing and loose coupling with Knowledge Graphs, enabling direct functionality interaction without the lossiness of command lines or basic Graphical User Interface (GUI) widgets.
Founder & CEO at OpenLink Software | Driving GenAI-Based AI Agents | Harmonizing Disparate Data Spaces (Databases, Knowledge Bases/Graphs, and File System Documents)
4 个月Here’s a quick look at pages generated by the AI Agent for processing feeds (#RSS, #Atom) and blogrolls (#OPML) featured earlier in this newsletter series. The example below lists #NotebookLM-generated podcasts, including one based on this week’s article. 1. Standard page listing podcast links: https://linkeddata.uriburner.com/assist-metal/?share_id=sh-3ukbuMt5fqvwMiXje4j8HSvyGiNs#msg_nQhsSoJu3g4hR3rTlC0tbcBH 2. Animated listing: https://linkeddata.uriburner.com/assist-metal/?share_id=sh-3ukbuMt5fqvwMiXje4j8HSvyGiNs&t=120#msg_nQhsSoJu3g4hR3rTlC0tbcBH Feel free to scroll through the static page for a history of my interactions with the #OPAL-generated AI Agent. Accessing KnowledgeGraph Content All posts from these feeds are ingested into a #KnowledgeGraph, explorable through: 1. Data Twingler AI Assistant — for natural language queries. 2. SPARQL query service endpoint. 3. Faceted Search & Exploration service. Let me know if you’d like to see demonstrations of any of these approaches!
I Designed Logo That Helped Increase Brand Recognition 30% ?? Logo & Brand Designer ???? || ?? Head of Design at Orchid IT ?? Mail: [email protected] || Whatsapp: 08801740945074
4 个月Fascinating perspective on the convergence of LLM-powered AI and Knowledge Graphs! Animated demos showing these in action sound like an incredible way to illustrate real-world impact—looking forward to exploring the possibilities!
Exciting insights! The integration of LLM-powered AI Agents with Knowledge Graphs is a game changer for productivity. Can't wait to see the demos! ??