World's Fair 2025
Why Your Agent’s Brain Needs a Playbook: Practical Wins from Using Ontologies - Jesús Barrasa, Neo4j
Overview
This talk explores the integration of knowledge graphs and Large Language Models (LLMs) for building robust AI applications, specifically focusing on the Graph RAG architecture. It highlights how ontologies, as formal, implementation-agnostic schemas, can significantly enhance knowledge graph creation and retrieval strategies, leading to more grounded and accurate AI responses. The core thesis is that a model-driven approach using ontologies provides practical wins by improving data quality and enabling dynamic retriever behavior.
Who should watch
- AI Engineers
- Product Managers
- Builders working with LLMs and knowledge bases
- Those seeking to improve the accuracy and relevance of AI-generated responses
- Developers interested in Graph RAG architectures
Key takeaways
- Graph RAG replaces traditional vector databases with knowledge graphs, enabling richer retrieval strategies beyond simple semantic search.
- Knowledge graphs capture connections between data points, allowing for contextualization, structured query generation, and more complete, precise results.
- Ontologies serve as formal, implementation-agnostic schemas that standardize the description of a domain, facilitating consistent knowledge graph creation from both structured and unstructured data.
- Using ontologies as a data artifact within the graph allows for dynamic retriever behavior, where changes to the ontology can alter retrieval logic on the fly.
- Storing ontologies in the graph enables dynamic navigation of relationships, such as prioritizing actor relationships over producer relationships when retrieving movie information.
- A model-driven approach to knowledge graph creation, guided by ontologies, leads to better graph construction and pays dividends in retrieval accuracy and LLM response quality.
- Vectors can be stored as properties within graph nodes, allowing for combined vector storage and connected graph representations within the same platform.
- Ontologies can define classes and relationships, mirroring graph primitives and providing a structured way to represent domain knowledge.
Notable quotes
*Ontologies for knowledge graph creation as an implementation agnostic data model.*
*Storing ontology can help us drive dynamic behavior in our retrievers.*
Unofficial community note. Prefer the recording for nuance.