ChatCohere with Agentic RAG and Langgraph #28420
Unanswered
jimmyshah83
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I am building an Agentic RAG system with ChatCohere but when the agent tries to Transform a query, it keeps failing with the below error:
The last message is not an ToolMessage or HumanMessage
Looking at the class ChatCohere, it seems like it might be a design choice:
Does anyone know why is this the case? In terms of Agentic AI, the agent should have the ability to rewrite the question to generate a more optimal output but this code base does not allow rewrites.
Note that it works perfectly fine with AzureChatOpenAI
System Info
python-dotenv
pandas
langchain
langchainhub
langchain-cohere
azure-search-documents==11.6.0b7
azure-identity
langgraph
langchain_openai
cohere
Beta Was this translation helpful? Give feedback.
All reactions