pprint import issue in doc #512

Closed
opened 2026-02-20 17:40:30 -05:00 by yindo · 1 comment
Owner

Originally created by @rahulsamant37 on GitHub (Mar 14, 2025).

Originally assigned to: @sydney-runkle on GitHub.

Issue with current documentation:

It's just an small error in this -
https://langchain-ai.github.io/langgraph/tutorials/rag/langgraph_adaptive_rag/#define-graph-flow

at Construct the Graph inside Define Graph Flow at the second last line -

else:
        pprint("---DECISION: GENERATION IS NOT GROUNDED IN DOCUMENTS, RE-TRY---")
        return "not supported"

you have written pprint

Idea or request for content:

correct it to pprint to print

Originally created by @rahulsamant37 on GitHub (Mar 14, 2025). Originally assigned to: @sydney-runkle on GitHub. ### Issue with current documentation: It's just an small error in this - https://langchain-ai.github.io/langgraph/tutorials/rag/langgraph_adaptive_rag/#define-graph-flow at Construct the Graph inside Define Graph Flow at the second last line - ``` else: pprint("---DECISION: GENERATION IS NOT GROUNDED IN DOCUMENTS, RE-TRY---") return "not supported" ``` you have written pprint ### Idea or request for content: correct it to pprint to print
yindo closed this issue 2026-02-20 17:40:30 -05:00
Author
Owner

@hinthornw commented on GitHub (Mar 14, 2025):

We should move import up rather than changing th print.

I don't thiink it's technically an error, as we import before "using the graph", but it would raise if the function is called before the next cell(s) are executed

@hinthornw commented on GitHub (Mar 14, 2025): We should move import up rather than changing th print. I don't thiink it's technically an error, as we import before "using the graph", but it would raise if the function is called before the next cell(s) are executed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#512