AI Agents & Knowledge Graphs

AI Agents & Knowledge Graphs

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.

Generic Architecture Depicting Loose Coupling AI Agents and Data Spaces (Databases, Knowledge Graphs, and Document Collections) -- click to see animated version

Knowledge Graphs

What are they?

A collection of Entities, Entity Types, and Entity Relationship Types that enable reasoning and inference.

Knowledge Graph Types?

  • Implicit: Relationship types are denoted by labels, leaving their semantics out-of-band (e.g., labeled property graphs).
  • Explicit: Relationship types are denoted by identifiers, and their semantics are intrinsic and informed by an Ontology that is both human- and machine-computable (e.g., RDF-based Knowledge Graphs).

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:

  1. As custom AI Agents (or Assistants) associated with an LLM platform provider (e.g., OpenAI) that offers a store (e.g., the OpenAI Custom GPT Store).
  2. Via Chatbot widgets integrated into webpages.
  3. Via OpenAI-compliant APIs described by YAML or JSON documents.

Use Case Example

Here are three simple use case examples showcasing AI Agent interactions enhanced by loosely coupled Knowledge Graph interactions:

  • Obtaining a Free Evaluation Virtuoso License

Click on Image to watch demonstration of the Virtuoso Support Agent from the OpenAI Custom GPT Store

  • Virtuoso Product Support Agent for a Chief Data Officer

Click to watch the Virtuoso Support Agent interact with a Chief Data Officer (CDO) oriented FAQ Knowledge Graph

  • Finding the Cheapest Virtuoso Online Offer

Click to watch the Virtuoso Support Agent interact with a Product Knowledge Graph

Each of these examples is based on the following:

  1. Virtuoso Platform -- provides loosely coupled SQL, SPARQL, and GraphQL access to Data Spaces (databases, knowledge graphs, and document collections).
  2. OpenLink AI Layer -- which provides a conversational interface into Virtuoso.

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.

  1. Create AI Agents declaratively (rather than imperatively) by describing their desired functionality.
  2. Create and enrich Knowledge Graphs for use by AI Agents.
  3. Loosely couple AI Agents and Knowledge Graphs leveraging RAG, GraphRAG, or a combination of both pipelines, as needed.

Related

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)

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!

  • 该图片无替代文字
回复
Nayan Saha

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! ??

回复

要查看或添加评论,请登录

Kingsley Uyi Idehen的更多文章

社区洞察

其他会员也浏览了