langgraph/tutorials/rag/langgraph_agentic_rag/ #722
Replies: 14 comments 18 replies
-
Hello, Is it only me that whenever the decision is to reformulate the question and the state goes back to the agent, it stops there. It is not going back to the retriever to get more and better context... |
Beta Was this translation helpful? Give feedback.
-
@andresucv96, I am facing the same issue, I see that Rewrite is setting the end condition, not able to figure out why. |
Beta Was this translation helpful? Give feedback.
-
Whenever I run this Agentic RAG I am getting this error bellow: "USER_AGENT environment variable not set, consider setting it to identify your requests." |
Beta Was this translation helpful? Give feedback.
-
when defining the state class, when would you use: |
Beta Was this translation helpful? Give feedback.
-
Hello! I want to build an agentic rag with other tools as well, but I dont know yet how to handle it. For example, If I have another tool(i.e web search), how can I ensure that it follows another path, instead of the rag path(grade, rewrite, generate) |
Beta Was this translation helpful? Give feedback.
-
I use my own deployed llm and db, meet error as follow:
|
Beta Was this translation helpful? Give feedback.
-
what benefits does this architecture have over adaptive rag? |
Beta Was this translation helpful? Give feedback.
-
For all the examples, the index had already been created and did not require updating. However, in a real chat assistant scenario, the index is only created after the user uploads files. It is only at this point that the retrieval tool can be instantiated. Do you have any idea to handle such situations? |
Beta Was this translation helpful? Give feedback.
-
The following two issues need to be addressed within the code: Handling Compound Questions:1 - When a user asks a compound question (for instance., What is an agent, and what is prompt engineering?), the Agent node splits the question into multiple (in this case two) sub-questions (e.g., What is an agent?, and What is prompt engineering?).
This content is then graded against the original compound question in the I believe the following modifications will address this problem for compound questions:
Issue with Memory Checkpoint:1 - When a memory checkpoint is added to the graph as below,
the question, i.e., This can be addressed by capturing the user's question and storing/calling it appropriately as below,
Calling the stored question in the
I would appreciate feedback from anyone who has addressed the first part. If so, please share the updated code. |
Beta Was this translation helpful? Give feedback.
-
Trying to implement this with Azure Search and Azure Hosted Open AI. My retrieval call is not being invoked at all and straight getting responses from Open AI vs sourcing from Vector Store. |
Beta Was this translation helpful? Give feedback.
-
I demonstrated an article, but the last message is a HumanMessage instead of an AIMessage. Is this the correct behavior? When I want to accumulate conversation history, this specification requires editing. |
Beta Was this translation helpful? Give feedback.
-
I used Bedrock with Claude. When retrieved docs are not relevant to question, it tries to reformulate the question. However, the response format from "rewrite" is not in correct format for "agent" to understand. Do I need to modify the response using regex etc or is there an elegant way? Below is the error, I am getting: EventStreamError('An error occurred (validationException) when calling the InvokeModelWithResponseStream operation: Your API request included an |
Beta Was this translation helpful? Give feedback.
-
I want to get the final output when am using print.
am getting this out:
when I use print:
how can I get only the message generated as the final answer ? |
Beta Was this translation helpful? Give feedback.
-
I might be missing something but : Post-processing
does not tie with:
I believe the StrOutputParser cal should have been StrOutputParser(format_docs). Otherwise, how does StrOutputParser know how to parse? The function has not been made into a runable. This would explain why people are getting errors as well. |
Beta Was this translation helpful? Give feedback.
-
langgraph/tutorials/rag/langgraph_agentic_rag/
Build language agents as graphs
https://langchain-ai.github.io/langgraph/tutorials/rag/langgraph_agentic_rag/
Beta Was this translation helpful? Give feedback.
All reactions