Docs for adaptive RAG have incorrect examples #135

Closed
opened 2026-02-15 17:16:07 -05:00 by yindo · 2 comments
Owner

Originally created by @kenchambers on GitHub (Nov 15, 2024).

Greetings!

Thank you so much for your contribution on implementing adaptive Rag in langgraph.

I noticed in this document: https://langchain-ai.github.io/langgraphjs/tutorials/rag/langgraph_adaptive_rag_local/

The first example of invoking the graph, is supposed to reroute to the actual documents loaded, which is expected behavior but in the example terminal response, it says it's routing to WEB_SEARCH, which is actually incorrect.

I ran through this entire tutorial and actually this was the same behavior i got using gemini as well so i was hoping the team could shed light on why it is actually rerouting to websearch, instead of routing to the documents correctly.

I can include my code if necessary. thanks again.

Screenshot 2024-11-15 at 10 02 38 PM

I'm obviously still very new to this, so if my expectations are incorrect please enlighten me!

Originally created by @kenchambers on GitHub (Nov 15, 2024). Greetings! Thank you so much for your contribution on implementing adaptive Rag in langgraph. I noticed in this document: https://langchain-ai.github.io/langgraphjs/tutorials/rag/langgraph_adaptive_rag_local/ The first example of invoking the graph, is supposed to reroute to the actual documents loaded, which is expected behavior but in the example terminal response, it says it's routing to WEB_SEARCH, which is actually incorrect. I ran through this entire tutorial and actually this was the same behavior i got using gemini as well so i was hoping the team could shed light on why it is actually rerouting to websearch, instead of routing to the documents correctly. I can include my code if necessary. thanks again. <img width="732" alt="Screenshot 2024-11-15 at 10 02 38 PM" src="https://github.com/user-attachments/assets/d3435a53-68ab-42a0-8b32-4e8d809c7af9"> I'm obviously still very new to this, so if my expectations are incorrect please enlighten me!
yindo added the documentation label 2026-02-15 17:16:07 -05:00
yindo closed this issue 2026-02-15 17:16:07 -05:00
Author
Owner

@kenchambers commented on GitHub (Nov 15, 2024):

I was able to pass: llm agent memory, an example given earlier in the document during the route question code, and this seemed to properly route it to the vector store memory.

@kenchambers commented on GitHub (Nov 15, 2024): I was able to pass: `llm agent memory`, an example given earlier in the document during the route question code, and this seemed to properly route it to the vector store memory.
Author
Owner

@lnhsingh commented on GitHub (Sep 9, 2025):

Closing, as we deprecated this tutorial

@lnhsingh commented on GitHub (Sep 9, 2025): Closing, as we deprecated this tutorial
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#135