How does heyLevi decide the order in which variables from my custom prompts get rendered in the app?

Understanding Variable Ordering in heyLevi Custom Prompts

The variable ordering in heyLevi's custom-prompts processor is determined by the order in which they appear in the prompt. If a variable is utilized multiple times, the first instance's position is considered for determining the ordering.

Example:

Consider the following prompt: "I want you to act like {character} from {series}. I want you to respond and answer like {character} using the tone, manner, and vocabulary {character} would use. Do not write any explanations. Only answer like {character}. You must know all of the knowledge of {character}. My first sentence is ""Hi {character}."""

In this case, when the UI is rendered, the variables will appear in the following order:

  1. character
  2. series

Despite {character} being used multiple times, its first occurrence in the prompt determines its position on the UI.

While the current system does not provide a means to define a custom ordering for variables, the processing mechanism ensures that the variables are presented in a structured manner. Users are encouraged to adapt their prompt formulation to align with the desired variable ordering within the generated content.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us