Skip to main content
Win Tun Lin avatar

Win Tun Lin has completed

Graph RAG with LangChain and Neo4j

Start course For Free
3 hr
3,100 XP
Statement of Accomplishment Badge

Loved by learners at thousands of companies


Course Description

Level-Up Your RAG Applications with Graphs

Are you bored of vectors, embeddings, and vector RAG applications yet? Look no further! In this course, you'll discover how Graph RAG can greatly improve the accuracy and reliability of RAG applications by storing and querying information in the form of nodes and relationships. Combine Neo4j graph databases with LangChain and you get a truly awesome way of retrieving and integrating external data with LLMs.

Create Neo4j Graph Databases from Unstructured Text

What if my dataset is messy unstructured text rather than a graph? Don't panic—you'll learn how to use LLMs with structured outputs to extract entities and relationships from text, and create new nodes and relationships for your graph database. You'll utilize the Pydantic library to define strict data structures for your LLM to populate with extracted text data.

Combine Vectors and Graphs for Hybrid RAG

You don't have to choose between vectors vs. graphs—you can have the best of both worlds! Discover how you can retrieve from both data sources in a single workflow and carefully construct prompts to integrate them into a hybrid RAG application.

Integrate Long-Term Chatbot Memory

Graph databases like Neo4j aren't only useful as knowledge bases for retrieval, you can also store long-term information like user facts and preferences as graphs! This long-term memory can then be queried just like any other graph database to integrate these preferences and personalize your applications.
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp for BusinessFor a bespoke solution book a demo.
  1. 1

    Getting Started with Graph RAG and Neo4j

    Free

    Learn how Graph RAG can improve the accuracy and reliability of RAG applications! Store information as nodes and edges in a Neo4j database, and give your LLM the ability to query it so it can retrieve entity and relational information to provide informed answers.

    Play Chapter Now
    Graphs and RAG
    50 xp
    Creating nodes
    100 xp
    Creating relationships
    100 xp
    Saving graph documents
    100 xp
    Querying a knowledge graph
    50 xp
    Writing Cypher statements
    100 xp
    Running Cypher statements
    100 xp
    The MERGE clause
    100 xp
    Text-to-Cypher Graph RAG with Neo4j
    50 xp
    Building a text-to-Cypher chain
    100 xp
    Text-to-Cypher retrieval chain
    100 xp
  2. 2

    Graph Models and Hybrid RAG

    Text-to-Cypher applications work well in many circumstances, but we can do better than that! Discover how to construct graph databases using different graph models including lexical and domain graphs. Create Neo4j vector indexes so that you can have the best of both worlds and run graph and vector retrieval simultaneously!

    Play Chapter Now
  3. 3

    Improving Retrieval Quality

    Although Graph RAG applications are generally more reliable than vector RAG, they aren't totally infallible. In this chapter, you'll learn to evaluate your Graph RAG applications, spot incorrect or duplicate graph nodes, and integrate long-term memory so user preferences can be learned over time.

    Play Chapter Now
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

collaborators

Collaborator's avatar
James Chapman

prerequisites

Retrieval Augmented Generation (RAG) with LangChain
Adam  Cowley HeadshotAdam Cowley

Manager, Developer Education at Neo4j

Adam Cowley is a dedicated developer with a keen interest in data and graph databases. Serving as a Manager of Developer Education at Neo4j, Adam produces educational content for GraphAcademy, Neo4j's free, self-paced, online learning platform. His technical experience spans two decades, developing websites, mobile apps and mixed reality experiences for budding startups to the world's biggest companies.
See More

Join over 18 million learners and start Graph RAG with LangChain and Neo4j today!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.