Package com.langchainbeam.model
Class ModelPrompt
java.lang.Object
com.langchainbeam.model.ModelPrompt
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PROMPT
Template string for formatting the input element and instruction prompt. The template takes two parameters: - The inputPCollection
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()
-