Part 2/4 of Uplifted RAG systems
Published: 2025-01-01
URL: https://thehyperplane.substack.com/p/technical-backgroundwhy-graphs-and
Introduction Let’s take a step back from traditional Retrieval-Augmented Generation (RAG) and look at the bigger picture. Why are graphs so important for understanding how data connects? And what makes agent-based models so much more adaptable than standard query systems?
In this second post of our Uplifted RAG Systems series, we’ll explore how we’ve moved from basic data tables to knowledge graphs, dive into the power of agent-driven strategies, and show how CometML Opik’s observability turns a system from just “monitored” to truly understood. 🔗 This is a 4-part series.
The content is split as such: Part 1: The RAG Challenge: Exposing the Gaps in Modern Retrieval-Augmented Generation Part 2: Technical Background—Why Graphs and Agents Matter Part 3: Building the Agentic GraphRAG System—Data Pipeline, Monitoring, and Orchestration Part 4: Streamlit Integration and Conclusion—Delivering an Intuitive, Monitored User Experience, Wrapping everything up Table of contents: The Graph Paradigm: Beyond Tables and Documents From Graphs to Knowledge Graphs: Adding Semantic Understanding Why Agents Matter CometML Opik: Beyond Basic Monitoring Real-Time Experiment Tracking Performance Visualization Hyperparameter Optimization Model Versioning The Power of Integration Conclusion
- The Graph Paradigm: Beyond Tables and Documents
Traditional data structures — whether SQL tables or document stores — view data as isolated entities. Think about how companies stored customer data before graphs: This approach falls apart when trying to answer questions like “Who influences this customer’s purchases?” or “What’s the viral spread pattern of our products?” Companies like LinkedIn, Facebook, and Neo4j showed us there’s a better way — graph databases: Graphs solve real problems that companies face: Amazon uses graphs for product recommendations Twitter/X detects influence patterns through graph algorithms Financial institutions detect fraud through graph pattern matching 1.2 From Graphs to Knowledge Graphs: Adding Semantic Understanding Knowledge graphs take this concept further by adding semantic meaning to these relationships.
Google’s Knowledge Graph revolutionized search by understanding not just connections but their meaning: Real-world applications showcase their power: Uber’s knowledge graph connects drivers, riders, and locations to optimize operations Netflix uses knowledge graphs to understand the complex relationships between content, viewers, and viewing patterns Academic search engines like Semantic Scholar use knowledge graphs to understand research paper relationships 1.3 Why Agents Matter Traditional graph queries are static and predetermined: Agents, however, can dynamically adapt their exploration strategy: This is just an example on the agents work, right now we have multiple libraries that handle this way better then just doing an if statement with confidence score, we will not go into more detail about agents in this article.
Subscribe now
- CometML Opik: Beyond Basic Monitoring
Building a sophisticated Agentic GraphRAG system without proper observability is like navigating a ship without instruments. CometML Opik transforms our understanding of how our system behaves, adapts, and evolves in production. Let’s explore how each of its core capabilities enhances our system’s intelligence and reliability. 2.1 Real-Time Experiment Tracking Traditional logging approaches often leave us waiting hours or days to understand system behavior. Opik instead offers immediate visibility into our Agentic GraphRAG system’s operations.
As queries flow through the system, we gain instant insights into retrieval times, token usage, and response quality. This real-time visibility is crucial for maintaining system health and quickly addressing any performance degradation. 2.2 Performance Visualization Opik’s visualization capabilities transform raw metrics into intuitive, actionable insights. Rather than poring over log files or spreadsheets, teams can immediately spot trends, identify bottlenecks, and understand usage patterns through rich, interactive dashboards. 2.3 Hyperparameter Optimization Perhaps one of Opik’s most powerful features is its sophisticated approach to optimization.
Agentic GraphRAG systems have numerous tunable parameters — context window sizes, relevance thresholds, temperature settings — and finding the optimal combination manually is practically impossible. Opik’s optimization capabilities turn this from an art into a science. 2.4 Model Versioning As systems evolve, keeping track of changes and their impacts becomes crucial. Opik’s versioning system goes beyond simple version control — it maintains a complete lineage of your system’s evolution.
Each version carries not just the code changes, but comprehensive metadata about performance characteristics, training data, and dependencies. 2.5 The Power of Integration What makes Opik particularly powerful is how these capabilities work together. Real-time tracking feeds into visualizations, which inform optimization decisions, which are tracked through versioning, which is shared through collaboration features. It’s a complete feedback loop that transforms Agentic GraphRAG development from a series of isolated experiments into a systematic, data-driven process.
This integrated approach to observability has profound implications for how we build and maintain Agentic GraphRAG systems. Teams can move faster, make more informed decisions, and build more reliable systems. They can focus on innovation rather than debugging, on improvement rather than maintenance.
The end result is not just a better monitored system — it’s a better understood system
- Conclusion
Graphs and agentic capabilities go hand in hand, helping us see not just what our data shows, but how it’s connected and why it matters. When combined with real-time observability through CometML Opik, teams can break free from static, siloed methods and move toward dynamic, self-improving systems. Shifting from tabular data to knowledge graphs tackles the complexity of interconnected information, while agent-driven processes automatically adapt and optimize.
And with Opik, every step is not just tracked but truly understood—leading to a cycle of constant innovation and rock-solid reliability in production. 🫵🫵🫵 Enjoyed this breakdown of the core RAG challenges? Make sure you don’t miss the rest of our journey. We’ll explore how graphs and agentic models can revolutionize retrieval, ensuring you’re equipped with the latest advancements in AI-driven knowledge exploration. 🔗 Check out the code on GitHub and support us with a ⭐️ Thanks for reading ML Vanguards!
Subscribe for free to receive new posts and support our work.