Uses of Class
com.hw.langchain.prompts.base.BasePromptTemplate
Package
Description
-
Uses of BasePromptTemplate in com.hw.langchain.agents.chat.base
Modifier and TypeMethodDescriptionstatic BasePromptTemplate
ChatAgent.createPrompt
(List<BaseTool> tools, String systemMessagePrefix, String systemMessageSuffix, String humanMessage, String formatInstructions, List<String> inputVariables) -
Uses of BasePromptTemplate in com.hw.langchain.chains.api.base
Modifier and TypeMethodDescriptionstatic ApiChain
ApiChain.fromLlmAndApiDocs
(BaseLanguageModel llm, String apiDocs, Map<String, String> headers, BasePromptTemplate apiUrlPrompt, BasePromptTemplate apiResponsePrompt) -
Uses of BasePromptTemplate in com.hw.langchain.chains.combine.documents.base
Modifier and TypeMethodDescriptionstatic String
BaseUtils.formatDocument
(Document doc, BasePromptTemplate prompt) Format a document into a string based on a prompt template. -
Uses of BasePromptTemplate in com.hw.langchain.chains.combine.documents.stuff
ModifierConstructorDescriptionStuffDocumentsChain
(LLMChain llmChain, BasePromptTemplate documentPrompt, String documentVariableName, String documentSeparator) -
Uses of BasePromptTemplate in com.hw.langchain.chains.conversation.base
ModifierConstructorDescriptionConversationChain
(BaseLanguageModel llm, BasePromptTemplate prompt, BaseMemory memory) -
Uses of BasePromptTemplate in com.hw.langchain.chains.llm
Modifier and TypeFieldDescriptionprotected BasePromptTemplate
LLMChain.prompt
Prompt object to use.ModifierConstructorDescriptionLLMChain
(BaseLanguageModel llm, BasePromptTemplate prompt) LLMChain
(BaseLanguageModel llm, BasePromptTemplate prompt, String outputKey) -
Uses of BasePromptTemplate in com.hw.langchain.chains.llm.math.base
Modifier and TypeMethodDescriptionstatic LLMMathChain
LLMMathChain.fromLLM
(BaseLanguageModel llm, BasePromptTemplate prompt) -
Uses of BasePromptTemplate in com.hw.langchain.chains.prompt.selector
Modifier and TypeMethodDescriptionabstract BasePromptTemplate
BasePromptSelector.getPrompt
(BaseLanguageModel llm) Get default prompt for a language model.ConditionalPromptSelector.getPrompt
(BaseLanguageModel llm) ModifierConstructorDescriptionConditionalPromptSelector
(BasePromptTemplate defaultPrompt, List<org.apache.commons.lang3.tuple.Pair<Predicate<BaseLanguageModel>, BasePromptTemplate>> conditionals) ModifierConstructorDescriptionConditionalPromptSelector
(BasePromptTemplate defaultPrompt, List<org.apache.commons.lang3.tuple.Pair<Predicate<BaseLanguageModel>, BasePromptTemplate>> conditionals) -
Uses of BasePromptTemplate in com.hw.langchain.chains.question.answering
Modifier and TypeMethodDescriptionstatic StuffDocumentsChain
Init.loadStuffChain
(BaseLanguageModel llm, BasePromptTemplate prompt, String documentVariableName) -
Uses of BasePromptTemplate in com.hw.langchain.chains.sql.database.base
Modifier and TypeMethodDescriptionstatic SQLDatabaseChain
SQLDatabaseChain.fromLLM
(BaseLanguageModel llm, SQLDatabase database, BasePromptTemplate prompt) static SQLDatabaseSequentialChain
SQLDatabaseSequentialChain.fromLLM
(BaseLanguageModel llm, SQLDatabase database, BasePromptTemplate queryPrompt, BasePromptTemplate deciderPrompt) Load the necessary chains. -
Uses of BasePromptTemplate in com.hw.langchain.chains.summarize
Modifier and TypeMethodDescriptionstatic StuffDocumentsChain
SummarizeUtils.loadStuffChain
(BaseLanguageModel llm, BasePromptTemplate prompt, String documentVariableName, String documentSeparator) -
Uses of BasePromptTemplate in com.hw.langchain.prompts.base
Modifier and TypeClassDescriptionclass
String prompt should expose the format method, returning a prompt. -
Uses of BasePromptTemplate in com.hw.langchain.prompts.chat
-
Uses of BasePromptTemplate in com.hw.langchain.prompts.few.shot
Modifier and TypeClassDescriptionclass
Prompt template that contains few shot examples. -
Uses of BasePromptTemplate in com.hw.langchain.prompts.prompt