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 BaseSingleActionAgentAgent.fromLLMAndTools(BaseLanguageModel llm, List<BaseTool> tools, Map<String, Object> kwargs) static BaseSingleActionAgentBaseSingleActionAgent.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 AgentChatAgent.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 AgentChatAgent.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 AgentExecutorInitialize.initializeAgent(List<BaseTool> tools, BaseLanguageModel llm, AgentType agent) static AgentExecutorInitialize.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 BaseToolLoadTools.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 AgentZeroShotAgent.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 AgentZeroShotAgent.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 ApiChainApiChain.fromLlmAndApiDocs(BaseLanguageModel llm, String apiDocs) static ApiChainApiChain.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 LLMMathChainLLMMathChain.fromLLM(BaseLanguageModel llm) static LLMMathChainLLMMathChain.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 BasePromptTemplateBasePromptSelector.getPrompt(BaseLanguageModel llm) Get default prompt for a language model.ConditionalPromptSelector.getPrompt(BaseLanguageModel llm) static booleanPromptSelectorUtils.isChatModel(BaseLanguageModel llm) Check if the language model is a chat model.static booleanPromptSelectorUtils.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 LLMChainBaseUtils.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 BaseCombineDocumentsChainInit.loadQaChain(BaseLanguageModel llm) static BaseCombineDocumentsChainInit.loadQaChain(BaseLanguageModel llm, ChainType chainType) static StuffDocumentsChainInit.loadStuffChain(BaseLanguageModel llm) static StuffDocumentsChainInit.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 BaseRetrievalQARetrievalQa.fromChainType(BaseLanguageModel llm, ChainType chainType, BaseRetriever retriever) Load chain from chain type.static BaseRetrievalQARetrievalQa.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 SQLDatabaseChainSQLDatabaseChain.fromLLM(BaseLanguageModel llm, SQLDatabase database) static SQLDatabaseChainSQLDatabaseChain.fromLLM(BaseLanguageModel llm, SQLDatabase database, BasePromptTemplate prompt) static SQLDatabaseSequentialChainSQLDatabaseSequentialChain.fromLLM(BaseLanguageModel llm, SQLDatabase database) static SQLDatabaseSequentialChainSQLDatabaseSequentialChain.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 StuffDocumentsChainSummarizeUtils.loadStuffChain(BaseLanguageModel llm) static StuffDocumentsChainSummarizeUtils.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 TypeClassDescriptionclassWrapper 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 TypeClassDescriptionclassLLM 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 TypeClassDescriptionclassWrapper around OpenAI large language models.classOpenAIclassWrapper 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 SelfQueryRetrieverSelfQueryRetriever.fromLLM(BaseLanguageModel llm, VectorStore vectorStore, String documentContents, List<AttributeInfo> metadataFieldInfo) static SelfQueryRetrieverSelfQueryRetriever.fromLLM(BaseLanguageModel llm, VectorStore vectorStore, String documentContents, List<AttributeInfo> metadataFieldInfo, Visitor structuredQueryTranslator, boolean enableLimit, boolean useOriginalQuery)