Whats the best way to update a column entry after the fact.
For example , I have generated a summary for a topic using computed ai column. But now I want the user to be able to adjust the reading level of this i.e 5th grade level to be updated to 10th grade reading level.
User can select âtopic introductionâ to generate text. They can then choose the Student Level ie 6th Grade and this should update the original generated prompt.
Your prompt is still not using that Student level at all. The prompt is still static, so changing the student level is not modifying the prompt, so itâs not going to have any bearing on the AI response.
The template should be dynamically modifying the prompt. Instead you are trying to use a template to modify the AI response. That response most likely has nothing to replace so the template probably isnât doing much of anything right now.
Itâs the prompt that needs to become dynamic from a template column.
Sorry, I havenât used any of the AI stuff. But, whatâs the error?
To be clear, you are not trying to use the existing template created from the AI response as the prompt correct? That wouldnât make sense. The template should contain your original prompt, along with a replacement for the grade level.
Itâs cyclic because you are trying to use a response to build a prompt to build a response to build a prompt etc. etc. etc.
Build the correct prompt the first time and you will get the correct response. Donât mess with the response. Mess with the prompt, And the response will change accordingly.
To put it a different way with an analogyâŚIf I ask you a question and you give me an answer that Iâm not happy with, I respond by asking a better question. I donât take your answer and inject my own words into it. My question is the prompt and your answer is the response.
If Iâm following all this correctly, you should be setting the Grade selection in a user specific column, which feeds into the template, which in turn is used in the AI Prompt.