You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we optimize prompts which are Dynamic i.e Prompts contains variables
An example Prompt can be
"""
You are an AI chatbot you must never answer/ respond to off-topic categories given here
{{off-topics-list}}
Description of each off-topic is also there in the list
{{off-topic-description}}.
Generate response based on given
{{query}}
"""
Can we optimize these kind of prompts. Are there any checks which will ensure that llm doesn't change any of these variables?
The text was updated successfully, but these errors were encountered:
Hi. I had this same use case and did it by replacing the variables with temporary place-holders and, in the fine-tuned prompt, put back the variables where they were appropriate.
Description
Can we optimize prompts which are Dynamic i.e Prompts contains variables
An example Prompt can be
"""
You are an AI chatbot you must never answer/ respond to off-topic categories given here
{{off-topics-list}}
Description of each off-topic is also there in the list
{{off-topic-description}}.
Generate response based on given
{{query}}
"""
Can we optimize these kind of prompts. Are there any checks which will ensure that llm doesn't change any of these variables?
The text was updated successfully, but these errors were encountered: