We may earn an affiliate commission when you visit our partners.
Course image
Course image
Coursera logo

Knowledge Graphs for RAG

Andreas Kollegger

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.

Read more

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.

Enroll now

What's inside

Syllabus

Knowledge Graphs for RAG
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: - Understand the basics of how knowledge graphs store data by using nodes to represent entities and edges to represent relationships between nodes. - Use Neo4j’s query language, Cypher, to retrieve information from a fun graph of movie and actor data. - Add a vector index to a knowledge graph to represent unstructured text data and find relevant texts using vector similarity search. - Build a knowledge graph of text documents from scratch, using publicly available financial and investment documents as the demo use case. - Explore advanced techniques for connecting multiple knowledge graphs and using complex queries for comprehensive data retrieval. - 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.

Good to know

Know what's good
, what to watch for
, and possible dealbreakers
Teachers data structure and retrieval methods used to build powerful AI applications
Students start with a thorough overview of data structure fundamentals, including nodes, edges, and graphs
Demonstrates how to create a knowledge graph by pulling data from various sources such as websites and databases
Guides students in building a knowledge graph to enhance the performance of large language models (LLMs) through structured, relevant context
Emphasizes hands-on projects, providing practical experience in knowledge graph construction and utilization
Required software Neo4j is free and open source, making it accessible to all students

Save this course

Save Knowledge Graphs for RAG to your list so you can find it easily later:
Save

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in Knowledge Graphs for RAG with these activities:
Review the basics of graph databases
Refresh your understanding of the fundamental concepts of graph databases to prepare for this course.
Browse courses on Graph Databases
Show steps
  • Review the resources on graph databases provided by Neo4j
  • Complete the Neo4j Beginner's Guide
Join a study group or online forum dedicated to knowledge graphs
Join a study group or online forum dedicated to knowledge graphs.
Show steps
  • Find a study group or online forum dedicated to knowledge graphs.
  • Introduce yourself and share your interests.
  • Participate in discussions and ask questions.
Cypher language practice
Practice writing Cypher queries to become more comfortable with retrieving data from knowledge graphs.
Browse courses on Cypher
Show steps
  • Find sample Cypher queries online or in the Neo4j documentation.
  • Set up a Neo4j database and import a sample dataset.
  • Practice writing Cypher queries to retrieve different types of data from the graph.
Eight other activities
Expand to see all activities and additional details
Show all 11 activities
Follow a tutorial on using knowledge graphs with LLMs
Follow a tutorial to gain hands-on experience using knowledge graphs with LLMs.
Show steps
  • Search for a tutorial on using knowledge graphs with LLMs.
  • Follow the steps in the tutorial.
  • Experiment with different knowledge graphs and LLMs.
Practice Cypher queries
Strengthen your Cypher skills by practicing various query types.
Browse courses on Cypher
Show steps
  • Solve the Cypher exercises provided in the course materials
  • Create your own Cypher queries to retrieve data from a sample knowledge graph
Attend a knowledge graph meetup or conference
Attend a knowledge graph meetup or conference to learn from experts and meet other people in the field.
Show steps
  • Find a knowledge graph meetup or conference in your area.
  • Register for the event.
  • Attend the event and participate in the discussions.
Build a knowledge graph for a specific domain
Build a knowledge graph for a specific domain to practice the principles of knowledge graph construction.
Show steps
  • Identify a specific domain that you are interested in.
  • Gather data from various sources in that domain.
  • Design the schema for your knowledge graph.
  • Use a knowledge graph tool to create your graph.
  • Publish your knowledge graph online.
Start a personal project involving knowledge graphs
Start a personal project involving knowledge graphs to practice your skills and build a portfolio.
Show steps
  • Identify a project idea that you are interested in.
  • Create a project plan.
  • Develop your project.
  • Publish your project online.
Build a knowledge graph from scratch using Neo4j
Gain practical experience in building knowledge graphs from raw data.
Browse courses on Neo4j
Show steps
  • Follow the tutorial on building a knowledge graph with Neo4j
  • Create your own knowledge graph based on a specific domain or topic of interest
Develop a prototype application that uses knowledge graphs
Develop a prototype application to put your knowledge of knowledge graphs into practice.
Show steps
  • Identify a problem that can be solved using a knowledge graph.
  • Design the architecture of your application.
  • Develop the application.
  • Test and evaluate your application.
Create a project that demonstrates the use of knowledge graphs in a real-world application
Apply your knowledge of knowledge graphs to solve a real-world problem and showcase your skills.
Browse courses on Project-Based Learning
Show steps
  • Identify a problem or use case where knowledge graphs can provide value
  • Design and implement a solution using knowledge graphs and appropriate technologies
  • Present your project and demonstrate its impact

Career center

Learners who complete Knowledge Graphs for RAG will develop knowledge and skills that may be useful to these careers:

Reading list

We haven't picked any books for this reading list yet.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Here are nine courses similar to Knowledge Graphs for RAG.
Introduction to Graph Databases, Cypher, and Neo4j 4
Most relevant
Executing Graph Algorithms with GraphFrames on Databricks
Most relevant
Data Structures & Algorithms IV: Pattern Matching,...
Most relevant
Building Multimodal Search and RAG
Most relevant
Unordered Data Structures
Most relevant
Build a Knowledge Based System with Vertex AI Vector...
Most relevant
Knowledge Graph for Beginners
Most relevant
Graph Theory Algorithms
Most relevant
Discrete Math and Analyzing Social Graphs
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2024 OpenCourser