I am new to langchain.
I have a prompt written that gives one question along with options based on differences between 3 sentences.
For example, suppose the 3 sentences are:
- Product made of plastic.
- Product made of wood.
- Product made of steel.
Then my prompt will ask a question like this:
“Is the product made up of:
A) plastic B) wood C) steel”
I extract this information in my python script, and ask user to select one option. Based on the option selected some new 3 sentences are fetched.
But the problem is that I don’t want my prompt to ask the same question or present similar type of options for the next sentence(keep in mind that the sentences are very diverse so variety of questions can be asked).
How can I make sure this does not happen?
I tried updating my prompt after every question asked, stating it to “not ask these questions” and then appending the questions that were asked before, but it’s still not following my instructions.
Please help a brother out.
Rodent Destroyer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.