diff --git a/examples/rag/langgraph_agentic_rag.ipynb b/examples/rag/langgraph_agentic_rag.ipynb index 07ca74be3..b45d6b469 100644 --- a/examples/rag/langgraph_agentic_rag.ipynb +++ b/examples/rag/langgraph_agentic_rag.ipynb @@ -267,7 +267,7 @@ "\n", " else:\n", " print(\"---DECISION: DOCS NOT RELEVANT---\")\n", - " print(score.binary_score)\n", + " print(grade)\n", " return \"no\"\n", "\n", "\n", @@ -338,7 +338,7 @@ " messages = state[\"messages\"]\n", " question = messages[0].content\n", "\n", - " msg = HumanMessage(\n", + " msg = [HumanMessage(\n", " content=f\"\"\" \\n \n", " Look at the input and try to reason about the underlying semantic intent / meaning. \\n \n", " Here is the initial question:\n", @@ -346,7 +346,7 @@ " {question} \n", " \\n ------- \\n\n", " Formulate an improved question: \"\"\",\n", - " )\n", + " )]\n", "\n", " # Grader\n", " model = ChatOpenAI(temperature=0, model=\"gpt-4-0125-preview\", streaming=True)\n",