1. Learn
  2. /
  3. Courses
  4. /
  5. Graph RAG with LangChain and Neo4j

Connected

Exercise

Using extracted conversation facts

Now to apply your LLM with structured outputs! The llm_with_output you created in the previous exercise is still available, and the prompt template for this LLM has already been provided.

Instructions

100 XP
  • Pipe the chat prompt template provided into the LLM with structured output (llm_with_output).
  • Invoke the chain on the user and session ID provided, passing it the messages from the history (history).