Knowledge Graphs for RAG

External: Coursera Courses ↗ · Coursera

Open Course on External: Coursera

Free to audit · Opens on External: Coursera

Knowledge Graphs for RAG

Coursera · Intermediate ·🧠 Large Language Models ·3mo ago

Key Takeaways

Constructs knowledge graphs for RAG to structure complex data relationships

Original Description

Knowledge graphs are used in development to structure complex data relationships, drive intelligent search functionality, and build powerful AI applications that can reason over different data types. Knowledge graphs can connect data from both structured and unstructured sources (databases, documents, etc.), providing an intuitive and flexible way to model complex, real-world scenarios. Unlike tables or simple lists, knowledge graphs can capture the meaning and context behind the data, allowing you to uncover insights and connections that would be difficult to find with conventional databases. This rich, structured context is ideal for improving the output of large language models (LLMs), because you can build more relevant context for the model than with semantic search alone. This course will teach you how to leverage knowledge graphs within retrieval augmented generation (RAG) applications. You’ll learn to: 1. Understand the basics of how knowledge graphs store data by using nodes to represent entities and edges to represent relationships between nodes. 2. Use Neo4j’s query language, Cypher, to retrieve information from a fun graph of movie and actor data. 3. Add a vector index to a knowledge graph to represent unstructured text data and find relevant texts using vector similarity search. 4. Build a knowledge graph of text documents from scratch, using publicly available financial and investment documents as the demo use case 5. Explore advanced techniques for connecting multiple knowledge graphs and using complex queries for comprehensive data retrieval. 6. Write advanced Cypher queries to retrieve relevant information from the graph and format it for inclusion in your prompt to an LLM. After course completion, you’ll be well-equipped to use knowledge graphs to uncover deeper insights in your data, and enhance the performance of LLMs with structured, relevant context.
Watch on External: Coursera ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

📰
Running Hugging Face Inference with Kiro: From Prompt to Working Summarizer
Learn to build a text summarizer using Hugging Face and Kiro, streamlining NLP workflows
Dev.to AI
📰
BizNode's semantic memory (Qdrant) makes your bot smarter over time — it remembers past conversations and answers...
Learn how BizNode's semantic memory (Qdrant) enhances bot intelligence by remembering past conversations and answers, and how to apply this technology to improve your own chatbots
Dev.to AI
📰
Emily Bender Sets the Record Straight on "Stochastic Parrots"
Emily Bender clarifies the meaning of 'Stochastic Parrots' in AI, emphasizing the importance of understanding language models' limitations and potential biases.
Hacker News (AI)
📰
PagedAttention: Navigating VRAM Fragmentation
Learn how PagedAttention navigates VRAM fragmentation for high-performance LLM deployment frameworks
Dev.to AI
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →