1. Learn
  2. /
  3. Courses
  4. /
  5. Retrieval Augmented Generation (RAG) with LangChain

Connected

Exercise

Creating graph documents

You've been provided with a document called famous_scientists containing a paragraph of text about famous scientists from the 20th century. In this exercise, you'll transform this unstructured text data into structured graph documents using LLMs!

Instructions

100 XP
  • Define an OpenAI chat LLM that will produce maximally deterministic responses.
  • Instantiate an LLM graph transformer for converting LangChain documents into graph documents.
  • Convert the text documents (docs) to graph documents using llm_transformer.