-
This is what I'm trying to achieve but I'm not sure which part of langchain solves my problem:
At the moment I'm able to achieve my goals somewhat with the conversation retrieval chain, but this has the side effect of making a retrieval call for every input the user sends, even if it's something like “ok”, “I need help”. Are agents the way? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I have a similar scenario and solved it like this:
I don't know if that's a good solution, I'm not exactly an expert... so I'm also curious about how others are handling this situations |
Beta Was this translation helpful? Give feedback.
-
Have you tried routing approaches? https://python.langchain.com/docs/expression_language/how_to/routing |
Beta Was this translation helpful? Give feedback.
-
Hi, I don't know if my answer is much relevant to your scenario or not, but I would like to share something. I tried many things but couldn't. Finally, I ended up creating a custom langchain agent with access to 4 tools.
The good thing is that, the agent first ask all three attributes from user and then move to call self-query retrieval tool. One more thing, I learned form this, we can have any langchain function etc inside a custom tool, and tool is not only for using external apis etc. |
Beta Was this translation helpful? Give feedback.
Have you tried routing approaches? https://python.langchain.com/docs/expression_language/how_to/routing