Class BasePromptSelector

java.lang.Object
com.hw.langchain.chains.prompt.selector.BasePromptSelector
Direct Known Subclasses:
ConditionalPromptSelector

public abstract class BasePromptSelector extends Object
Author:
HamaWhite
  • Constructor Details

    • BasePromptSelector

      public BasePromptSelector()
  • Method Details

    • getPrompt

      public abstract BasePromptTemplate getPrompt(BaseLanguageModel llm)
      Get default prompt for a language model.
      Parameters:
      llm - The BaseLanguageModel object.
      Returns:
      The BasePromptTemplate object representing the default prompt.