Uses of Interface
com.hw.langchain.base.language.BaseLanguageModel
Packages that use BaseLanguageModel
Package
Description
-
Uses of BaseLanguageModel in com.hw.langchain.agents.agent
Methods in com.hw.langchain.agents.agent with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionstatic BaseSingleActionAgent
Agent.fromLLMAndTools
(BaseLanguageModel llm, List<BaseTool> tools, Map<String, Object> kwargs) static BaseSingleActionAgent
BaseSingleActionAgent.fromLLMAndTools
(BaseLanguageModel llm, List<BaseTool> tools, Map<String, Object> kwargs) -
Uses of BaseLanguageModel in com.hw.langchain.agents.chat.base
Methods in com.hw.langchain.agents.chat.base with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionstatic Agent
ChatAgent.fromLLMAndTools
(BaseLanguageModel llm, List<BaseTool> tools, AgentOutputParser outputParser, String systemMessagePrefix, String systemMessageSuffix, String humanMessage, String formatInstructions, List<String> inputVariables, Map<String, Object> kwargs) Construct an agent from an LLM and tools.static Agent
ChatAgent.fromLLMAndTools
(BaseLanguageModel llm, List<BaseTool> tools, Map<String, Object> kwargs) Construct an agent from an LLM and tools. -
Uses of BaseLanguageModel in com.hw.langchain.agents.initialize
Methods in com.hw.langchain.agents.initialize with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionstatic AgentExecutor
Initialize.initializeAgent
(List<BaseTool> tools, BaseLanguageModel llm, AgentType agent) static AgentExecutor
Initialize.initializeAgent
(List<BaseTool> tools, BaseLanguageModel llm, AgentType agent, String agentPath, Map<String, Object> agentKwargs, Map<String, Object> kwargs) Load an agent executor given tools and LLM. -
Uses of BaseLanguageModel in com.hw.langchain.agents.load.tools
Methods in com.hw.langchain.agents.load.tools with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionstatic BaseTool
LoadTools.getLLMMath
(BaseLanguageModel llm) LoadTools.loadTools
(List<String> toolNames, BaseLanguageModel llm) Load tools based on their name. -
Uses of BaseLanguageModel in com.hw.langchain.agents.mrkl.base
Methods in com.hw.langchain.agents.mrkl.base with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionstatic Agent
ZeroShotAgent.fromLLMAndTools
(BaseLanguageModel llm, List<BaseTool> tools, AgentOutputParser outputParser, String prefix, String suffix, String formatInstructions, List<String> inputVariables, Map<String, Object> kwargs) Construct an agent from an LLM and tools.static Agent
ZeroShotAgent.fromLLMAndTools
(BaseLanguageModel llm, List<BaseTool> tools, Map<String, Object> kwargs) Construct an agent from an LLM and tools. -
Uses of BaseLanguageModel in com.hw.langchain.chains.api.base
Methods in com.hw.langchain.chains.api.base with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionstatic ApiChain
ApiChain.fromLlmAndApiDocs
(BaseLanguageModel llm, String apiDocs) static ApiChain
ApiChain.fromLlmAndApiDocs
(BaseLanguageModel llm, String apiDocs, Map<String, String> headers, BasePromptTemplate apiUrlPrompt, BasePromptTemplate apiResponsePrompt) -
Uses of BaseLanguageModel in com.hw.langchain.chains.conversation.base
Constructors in com.hw.langchain.chains.conversation.base with parameters of type BaseLanguageModelModifierConstructorDescriptionConversationChain
(BaseLanguageModel llm, BasePromptTemplate prompt, BaseMemory memory) -
Uses of BaseLanguageModel in com.hw.langchain.chains.llm
Fields in com.hw.langchain.chains.llm declared as BaseLanguageModelConstructors in com.hw.langchain.chains.llm with parameters of type BaseLanguageModelModifierConstructorDescriptionLLMChain
(BaseLanguageModel llm, BasePromptTemplate prompt) LLMChain
(BaseLanguageModel llm, BasePromptTemplate prompt, String outputKey) -
Uses of BaseLanguageModel in com.hw.langchain.chains.llm.math.base
Methods in com.hw.langchain.chains.llm.math.base with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionstatic LLMMathChain
LLMMathChain.fromLLM
(BaseLanguageModel llm) static LLMMathChain
LLMMathChain.fromLLM
(BaseLanguageModel llm, BasePromptTemplate prompt) -
Uses of BaseLanguageModel in com.hw.langchain.chains.prompt.selector
Methods in com.hw.langchain.chains.prompt.selector with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionabstract BasePromptTemplate
BasePromptSelector.getPrompt
(BaseLanguageModel llm) Get default prompt for a language model.ConditionalPromptSelector.getPrompt
(BaseLanguageModel llm) static boolean
PromptSelectorUtils.isChatModel
(BaseLanguageModel llm) Check if the language model is a chat model.static boolean
PromptSelectorUtils.isLLM
(BaseLanguageModel llm) Check if the language model is a LLM.Constructor parameters in com.hw.langchain.chains.prompt.selector with type arguments of type BaseLanguageModelModifierConstructorDescriptionConditionalPromptSelector
(BasePromptTemplate defaultPrompt, List<org.apache.commons.lang3.tuple.Pair<Predicate<BaseLanguageModel>, BasePromptTemplate>> conditionals) -
Uses of BaseLanguageModel in com.hw.langchain.chains.query.constructor.base
Methods in com.hw.langchain.chains.query.constructor.base with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionstatic LLMChain
BaseUtils.loadQueryConstructorChain
(BaseLanguageModel llm, String documentContents, List<AttributeInfo> attributeInfo, List<Map<String, Object>> examples, List<Comparator> allowedComparators, List<Operator> allowedOperators, boolean enableLimit) Load a query constructor chain. -
Uses of BaseLanguageModel in com.hw.langchain.chains.question.answering
Methods in com.hw.langchain.chains.question.answering with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionstatic BaseCombineDocumentsChain
Init.loadQaChain
(BaseLanguageModel llm) static BaseCombineDocumentsChain
Init.loadQaChain
(BaseLanguageModel llm, ChainType chainType) static StuffDocumentsChain
Init.loadStuffChain
(BaseLanguageModel llm) static StuffDocumentsChain
Init.loadStuffChain
(BaseLanguageModel llm, BasePromptTemplate prompt, String documentVariableName) -
Uses of BaseLanguageModel in com.hw.langchain.chains.retrieval.qa.base
Methods in com.hw.langchain.chains.retrieval.qa.base with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionstatic BaseRetrievalQA
RetrievalQa.fromChainType
(BaseLanguageModel llm, ChainType chainType, BaseRetriever retriever) Load chain from chain type.static BaseRetrievalQA
RetrievalQa.fromChainType
(BaseLanguageModel llm, BaseRetriever retriever) Load chain from chain type. -
Uses of BaseLanguageModel in com.hw.langchain.chains.sql.database.base
Methods in com.hw.langchain.chains.sql.database.base with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionstatic SQLDatabaseChain
SQLDatabaseChain.fromLLM
(BaseLanguageModel llm, SQLDatabase database) static SQLDatabaseChain
SQLDatabaseChain.fromLLM
(BaseLanguageModel llm, SQLDatabase database, BasePromptTemplate prompt) static SQLDatabaseSequentialChain
SQLDatabaseSequentialChain.fromLLM
(BaseLanguageModel llm, SQLDatabase database) static SQLDatabaseSequentialChain
SQLDatabaseSequentialChain.fromLLM
(BaseLanguageModel llm, SQLDatabase database, BasePromptTemplate queryPrompt, BasePromptTemplate deciderPrompt) Load the necessary chains. -
Uses of BaseLanguageModel in com.hw.langchain.chains.summarize
Methods in com.hw.langchain.chains.summarize with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionstatic StuffDocumentsChain
SummarizeUtils.loadStuffChain
(BaseLanguageModel llm) static StuffDocumentsChain
SummarizeUtils.loadStuffChain
(BaseLanguageModel llm, BasePromptTemplate prompt, String documentVariableName, String documentSeparator) -
Uses of BaseLanguageModel in com.hw.langchain.chat.models.base
Classes in com.hw.langchain.chat.models.base that implement BaseLanguageModel -
Uses of BaseLanguageModel in com.hw.langchain.chat.models.openai
Classes in com.hw.langchain.chat.models.openai that implement BaseLanguageModelModifier and TypeClassDescriptionclass
Wrapper around OpenAI Chat large language models. -
Uses of BaseLanguageModel in com.hw.langchain.llms.base
Classes in com.hw.langchain.llms.base that implement BaseLanguageModelModifier and TypeClassDescriptionclass
LLM wrapper should take in a prompt and return a string. -
Uses of BaseLanguageModel in com.hw.langchain.llms.chatglm
Classes in com.hw.langchain.llms.chatglm that implement BaseLanguageModel -
Uses of BaseLanguageModel in com.hw.langchain.llms.ollama
Classes in com.hw.langchain.llms.ollama that implement BaseLanguageModel -
Uses of BaseLanguageModel in com.hw.langchain.llms.openai
Classes in com.hw.langchain.llms.openai that implement BaseLanguageModelModifier and TypeClassDescriptionclass
Wrapper around OpenAI large language models.class
OpenAIclass
Wrapper around OpenAI Chat large language models. -
Uses of BaseLanguageModel in com.hw.langchain.retrievers.self.query.base
Methods in com.hw.langchain.retrievers.self.query.base with parameters of type BaseLanguageModelModifier and TypeMethodDescriptionstatic SelfQueryRetriever
SelfQueryRetriever.fromLLM
(BaseLanguageModel llm, VectorStore vectorStore, String documentContents, List<AttributeInfo> metadataFieldInfo) static SelfQueryRetriever
SelfQueryRetriever.fromLLM
(BaseLanguageModel llm, VectorStore vectorStore, String documentContents, List<AttributeInfo> metadataFieldInfo, Visitor structuredQueryTranslator, boolean enableLimit, boolean useOriginalQuery)