Uses of Class
com.hw.langchain.prompts.base.BasePromptTemplate
Packages that use BasePromptTemplate
Package
Description
-
Uses of BasePromptTemplate in com.hw.langchain.agents.chat.base
Methods in com.hw.langchain.agents.chat.base that return BasePromptTemplateModifier and TypeMethodDescriptionstatic BasePromptTemplateChatAgent.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
Methods in com.hw.langchain.chains.api.base with parameters of type BasePromptTemplateModifier and TypeMethodDescriptionstatic ApiChainApiChain.fromLlmAndApiDocs(BaseLanguageModel llm, String apiDocs, Map<String, String> headers, BasePromptTemplate apiUrlPrompt, BasePromptTemplate apiResponsePrompt) -
Uses of BasePromptTemplate in com.hw.langchain.chains.combine.documents.base
Methods in com.hw.langchain.chains.combine.documents.base with parameters of type BasePromptTemplateModifier and TypeMethodDescriptionstatic StringBaseUtils.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
Constructors in com.hw.langchain.chains.combine.documents.stuff with parameters of type BasePromptTemplateModifierConstructorDescriptionStuffDocumentsChain(LLMChain llmChain, BasePromptTemplate documentPrompt, String documentVariableName, String documentSeparator) -
Uses of BasePromptTemplate in com.hw.langchain.chains.conversation.base
Constructors in com.hw.langchain.chains.conversation.base with parameters of type BasePromptTemplateModifierConstructorDescriptionConversationChain(BaseLanguageModel llm, BasePromptTemplate prompt, BaseMemory memory) -
Uses of BasePromptTemplate in com.hw.langchain.chains.llm
Fields in com.hw.langchain.chains.llm declared as BasePromptTemplateModifier and TypeFieldDescriptionprotected BasePromptTemplateLLMChain.promptPrompt object to use.Constructors in com.hw.langchain.chains.llm with parameters of type BasePromptTemplateModifierConstructorDescriptionLLMChain(BaseLanguageModel llm, BasePromptTemplate prompt) LLMChain(BaseLanguageModel llm, BasePromptTemplate prompt, String outputKey) -
Uses of BasePromptTemplate in com.hw.langchain.chains.llm.math.base
Methods in com.hw.langchain.chains.llm.math.base with parameters of type BasePromptTemplateModifier and TypeMethodDescriptionstatic LLMMathChainLLMMathChain.fromLLM(BaseLanguageModel llm, BasePromptTemplate prompt) -
Uses of BasePromptTemplate in com.hw.langchain.chains.prompt.selector
Methods in com.hw.langchain.chains.prompt.selector that return BasePromptTemplateModifier and TypeMethodDescriptionabstract BasePromptTemplateBasePromptSelector.getPrompt(BaseLanguageModel llm) Get default prompt for a language model.ConditionalPromptSelector.getPrompt(BaseLanguageModel llm) Constructors in com.hw.langchain.chains.prompt.selector with parameters of type BasePromptTemplateModifierConstructorDescriptionConditionalPromptSelector(BasePromptTemplate defaultPrompt, List<org.apache.commons.lang3.tuple.Pair<Predicate<BaseLanguageModel>, BasePromptTemplate>> conditionals) Constructor parameters in com.hw.langchain.chains.prompt.selector with type arguments of type BasePromptTemplateModifierConstructorDescriptionConditionalPromptSelector(BasePromptTemplate defaultPrompt, List<org.apache.commons.lang3.tuple.Pair<Predicate<BaseLanguageModel>, BasePromptTemplate>> conditionals) -
Uses of BasePromptTemplate in com.hw.langchain.chains.question.answering
Methods in com.hw.langchain.chains.question.answering with parameters of type BasePromptTemplateModifier and TypeMethodDescriptionstatic StuffDocumentsChainInit.loadStuffChain(BaseLanguageModel llm, BasePromptTemplate prompt, String documentVariableName) -
Uses of BasePromptTemplate in com.hw.langchain.chains.sql.database.base
Methods in com.hw.langchain.chains.sql.database.base with parameters of type BasePromptTemplateModifier and TypeMethodDescriptionstatic SQLDatabaseChainSQLDatabaseChain.fromLLM(BaseLanguageModel llm, SQLDatabase database, BasePromptTemplate prompt) static SQLDatabaseSequentialChainSQLDatabaseSequentialChain.fromLLM(BaseLanguageModel llm, SQLDatabase database, BasePromptTemplate queryPrompt, BasePromptTemplate deciderPrompt) Load the necessary chains. -
Uses of BasePromptTemplate in com.hw.langchain.chains.summarize
Methods in com.hw.langchain.chains.summarize with parameters of type BasePromptTemplateModifier and TypeMethodDescriptionstatic StuffDocumentsChainSummarizeUtils.loadStuffChain(BaseLanguageModel llm, BasePromptTemplate prompt, String documentVariableName, String documentSeparator) -
Uses of BasePromptTemplate in com.hw.langchain.prompts.base
Subclasses of BasePromptTemplate in com.hw.langchain.prompts.baseModifier and TypeClassDescriptionclassString prompt should expose the format method, returning a prompt. -
Uses of BasePromptTemplate in com.hw.langchain.prompts.chat
Subclasses of BasePromptTemplate in com.hw.langchain.prompts.chat -
Uses of BasePromptTemplate in com.hw.langchain.prompts.few.shot
Subclasses of BasePromptTemplate in com.hw.langchain.prompts.few.shotModifier and TypeClassDescriptionclassPrompt template that contains few shot examples. -
Uses of BasePromptTemplate in com.hw.langchain.prompts.prompt
Subclasses of BasePromptTemplate in com.hw.langchain.prompts.prompt