Replies: 3 comments 4 replies
-
You could try adding negative words as well right this tool prompt like
|
Beta Was this translation helpful? Give feedback.
-
I had not thought about this use case ie. "negative prompt" : thanks a lot for sharing this inspiring pattern 🙏 |
Beta Was this translation helpful? Give feedback.
-
Maybe make a structured tool and make it clear that the input string is a callsign? Or maybe your description of the tool should be clearer about inputs and outputs: Or if the mapping is 1:1, maybe create the opposite tool as well and describe as above, so the AI has a clearer way to solve the inverse mapping, i.e from name to call sign. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I wrote a simple tool to look up ham radio users by their call sign. It works really well. However, the llm wants to use it in the inverse case as well (looking up the call sign of a ham radio user). I could enhance the tool to do both, but I am interested in how to prevent a tool from being used except in the case where it can be used as intended.
My tool's current description is
"Use this tool when you need to look up the name of ham radio operator by their call sign."
I have tried variations to try to tell it when not to use the tool, or to only use it when it has a call sign, etc. But none seem to be doing the trick.
Do you have any suggestions around how to craft the description to get what I want here?
Alternatively, do you think langchain needs to be enhanced to better handle the negative case?
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions