Class ModelPrompt

java.lang.Object
com.langchainbeam.model.ModelPrompt

public class ModelPrompt extends Object
A template for constructing prompts to be sent to the model. This class provides a static prompt template, PROMPT, which formats each input element alongside an instruction prompt. The resulting string is used as input for the model to generate the desired output.
  • Field Details

    • PROMPT

      public static String PROMPT
      Template string for formatting the input element and instruction prompt. The template takes two parameters: - The input PCollection element, representing the data to process. - An instruction prompt that defines how the element should be processed. These values are substituted into the template to create a final prompt, which is then passed to the model.
  • Constructor Details

    • ModelPrompt

      public ModelPrompt()