Index

A B C D E F G H I J K L M N O P R S T U V W Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

accept(Visitor) - Method in class com.hw.langchain.chains.query.constructor.ir.Comparison
 
accept(Visitor) - Method in interface com.hw.langchain.chains.query.constructor.ir.Expr
Accepts a visitor and performs operations on this expression.
accept(Visitor) - Method in class com.hw.langchain.chains.query.constructor.ir.Operation
 
accept(Visitor) - Method in class com.hw.langchain.chains.query.constructor.ir.StructuredQuery
 
add(GenerationChunk) - Method in class com.hw.langchain.schema.GenerationChunk
 
addAIMessage(String) - Method in class com.hw.langchain.schema.BaseChatMessageHistory
Add an AI message to the store
addDocuments(List<Document>, Map<String, Object>) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Run more documents through the embeddings and add to the vectorStore.
addDocuments(List<Document>, Map<String, Object>) - Method in class com.hw.langchain.vectorstores.base.VectorStoreRetriever
Add documents to vectorStore.
additionalKwargs - Variable in class com.hw.langchain.schema.BaseMessage
 
addMessage(BaseMessage) - Method in class com.hw.langchain.memory.chat.message.histories.database.DataBaseChatMessageHistory
 
addMessage(BaseMessage) - Method in class com.hw.langchain.memory.chat.message.histories.database.redis.RedisChatMessageHistory
 
addMessage(BaseMessage) - Method in class com.hw.langchain.memory.chat.message.histories.in.memory.ChatMessageHistory
 
addMessage(BaseMessage) - Method in class com.hw.langchain.schema.BaseChatMessageHistory
Add a self-created message to the store
addStartIndex - Variable in class com.hw.langchain.text.splitter.TextSplitter
If `true`, includes chunk's start index in metadata
addTexts(List<String>, List<Map<String, Object>>) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Run more texts through the embeddings and add to the vectorStore.
addTexts(List<String>, List<Map<String, Object>>) - Method in class com.hw.langchain.vectorstores.milvus.Milvus
 
addTexts(List<String>, List<Map<String, Object>>) - Method in class com.hw.langchain.vectorstores.pinecone.Pinecone
 
addUserMessage(String) - Method in class com.hw.langchain.schema.BaseChatMessageHistory
Add a user message to the store
Agent - Class in com.hw.langchain.agents.agent
Class responsible for calling the language model and deciding the action.
Agent(LLMChain, List<String>, AgentOutputParser) - Constructor for class com.hw.langchain.agents.agent.Agent
 
AGENT_TO_CLASS - Static variable in class com.hw.langchain.agents.types.Types
 
AgentAction - Class in com.hw.langchain.schema
Agent's action to take.
AgentAction(String, Object, String) - Constructor for class com.hw.langchain.schema.AgentAction
 
AgentExecutor - Class in com.hw.langchain.agents.agent
Consists of an agent using tools.
AgentExecutor() - Constructor for class com.hw.langchain.agents.agent.AgentExecutor
 
AgentFinish - Class in com.hw.langchain.schema
Agent's return value.
AgentFinish(Map<String, String>, String) - Constructor for class com.hw.langchain.schema.AgentFinish
 
AgentOutputParser - Class in com.hw.langchain.agents.agent
Parse text into agent action/finish.
AgentOutputParser() - Constructor for class com.hw.langchain.agents.agent.AgentOutputParser
 
AgentResult - Class in com.hw.langchain.schema
 
AgentResult() - Constructor for class com.hw.langchain.schema.AgentResult
 
AgentType - Enum Class in com.hw.langchain.agents.agent.types
 
aggregateLinesToChunks(List<LineType>) - Method in class com.hw.langchain.text.splitter.MarkdownHeaderTextSplitter
Combine lines with common metadata into chunks.
AIMessage - Class in com.hw.langchain.schema
Type of message that is spoken by the AI.
AIMessage(String) - Constructor for class com.hw.langchain.schema.AIMessage
 
AIMessagePromptTemplate - Class in com.hw.langchain.prompts.chat
 
AIMessagePromptTemplate() - Constructor for class com.hw.langchain.prompts.chat.AIMessagePromptTemplate
 
allowedComparators - Variable in class com.hw.langchain.chains.query.constructor.ir.Visitor
 
allowedOperators - Variable in class com.hw.langchain.chains.query.constructor.ir.Visitor
 
allowedSpecial - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Set of special tokens that are allowed.
AND - Enum constant in enum class com.hw.langchain.chains.query.constructor.ir.Operator
Enumerator of the operations.
API_RESPONSE_PROMPT - Static variable in class com.hw.langchain.chains.api.prompt.Prompt
 
API_URL_PROMPT - Static variable in class com.hw.langchain.chains.api.prompt.Prompt
 
ApiChain - Class in com.hw.langchain.chains.api.base
Chain that makes API calls and summarizes the responses to answer a question.
ApiChain(LLMChain, LLMChain, TextRequestsWrapper, String) - Constructor for class com.hw.langchain.chains.api.base.ApiChain
 
args() - Method in class com.hw.langchain.tools.base.BaseTool
 
args() - Method in class com.hw.langchain.tools.base.Tool
The tool's input arguments.
arrayToList(T[][]) - Static method in class com.hw.langchain.vectorstores.utils.ArrayUtils
 
ArrayUtils - Class in com.hw.langchain.vectorstores.utils
 
asRetriever() - Method in class com.hw.langchain.vectorstores.base.VectorStore
 
asRetriever(SearchType) - Method in class com.hw.langchain.vectorstores.base.VectorStore
 
astParse(String) - Method in class com.hw.langchain.chains.query.constructor.base.StructuredQueryOutputParser
I couldn't find a direct Java equivalent of Lark, which is available in Python.
asyncCall(Object, boolean) - Method in class com.hw.langchain.chains.base.Chain
 
asyncCall(Map<String, Object>, boolean) - Method in class com.hw.langchain.chains.base.Chain
 
asyncCombineDocs(List<Document>, Map<String, Object>) - Method in class com.hw.langchain.chains.combine.documents.base.BaseCombineDocumentsChain
Combine documents into a single string async.
asyncCombineDocs(List<Document>, Map<String, Object>) - Method in class com.hw.langchain.chains.combine.documents.stuff.StuffDocumentsChain
 
asyncGeneratePrompt(List<PromptValue>) - Method in interface com.hw.langchain.base.language.BaseLanguageModel
Take in a list of prompt values and return an Flux for every PromptValue.
asyncGeneratePrompt(List<PromptValue>, List<String>) - Method in interface com.hw.langchain.base.language.BaseLanguageModel
Take in a list of prompt values and return an Flux for every PromptValue.
asyncGeneratePrompt(List<PromptValue>, List<String>) - Method in class com.hw.langchain.llms.base.BaseLLM
 
asyncInnerCall(Map<String, Object>) - Method in class com.hw.langchain.chains.base.Chain
Runs the logic of this chain and returns the async output.
asyncInnerCall(Map<String, Object>) - Method in class com.hw.langchain.chains.combine.documents.base.BaseCombineDocumentsChain
 
asyncInnerCall(Map<String, Object>) - Method in class com.hw.langchain.chains.llm.LLMChain
 
asyncInnerCall(Map<String, Object>) - Method in class com.hw.langchain.chains.retrieval.qa.base.BaseRetrievalQA
 
asyncInnerGenerate(List<String>, List<String>) - Method in class com.hw.langchain.chat.models.base.LLM
 
asyncInnerGenerate(List<String>, List<String>) - Method in class com.hw.langchain.llms.base.BaseLLM
Run the LLM on the given prompts async.
asyncInnerGenerate(List<String>, List<String>) - Method in class com.hw.langchain.llms.ollama.Ollama
 
asyncInnerGenerate(List<String>, List<String>) - Method in class com.hw.langchain.llms.openai.BaseOpenAI
 
asyncInnerGenerate(List<String>, List<String>) - Method in class com.hw.langchain.llms.openai.OpenAIChat
 
AsyncLLMResult - Class in com.hw.langchain.schema
 
AsyncLLMResult(List<? extends Generation>, Map<String, Object>) - Constructor for class com.hw.langchain.schema.AsyncLLMResult
 
asyncPredict(String) - Method in interface com.hw.langchain.base.language.BaseLanguageModel
Predict text from text async.
asyncPredict(String, List<String>) - Method in interface com.hw.langchain.base.language.BaseLanguageModel
Predict text from text async.
asyncPredict(String, List<String>) - Method in class com.hw.langchain.llms.base.BaseLLM
 
asyncPredict(Map<String, Object>) - Method in class com.hw.langchain.chains.llm.LLMChain
Format prompt with kwargs and pass to LLM async.
asyncPredictMessages(List<BaseMessage>, List<String>) - Method in interface com.hw.langchain.base.language.BaseLanguageModel
Predict message from messages async.
asyncRun(Object) - Method in class com.hw.langchain.chains.base.Chain
Run the chain as text in, text out async
asyncRun(Map<String, Object>) - Method in class com.hw.langchain.chains.base.Chain
Run the chain as multiple variables, text out async.
AttributeInfo - Class in com.hw.langchain.chains.query.constructor.schema
Information about a data source attribute.
AttributeInfo() - Constructor for class com.hw.langchain.chains.query.constructor.schema.AttributeInfo
 

B

BaseChatMemory - Class in com.hw.langchain.memory.chat.memory
 
BaseChatMemory() - Constructor for class com.hw.langchain.memory.chat.memory.BaseChatMemory
 
BaseChatMemory(BaseChatMessageHistory) - Constructor for class com.hw.langchain.memory.chat.memory.BaseChatMemory
 
BaseChatMessageHistory - Class in com.hw.langchain.schema
Base interface for chat message history, See `ChatMessageHistory` for default implementation.
BaseChatMessageHistory() - Constructor for class com.hw.langchain.schema.BaseChatMessageHistory
 
BaseChatModel - Class in com.hw.langchain.chat.models.base
 
BaseChatModel() - Constructor for class com.hw.langchain.chat.models.base.BaseChatModel
 
BaseChatPromptTemplate - Class in com.hw.langchain.prompts.chat
 
BaseChatPromptTemplate(List<String>) - Constructor for class com.hw.langchain.prompts.chat.BaseChatPromptTemplate
 
BaseChatPromptTemplate(List<String>, Map<String, Object>) - Constructor for class com.hw.langchain.prompts.chat.BaseChatPromptTemplate
 
BaseCombineDocumentsChain - Class in com.hw.langchain.chains.combine.documents.base
Base interface for chains combining documents.
BaseCombineDocumentsChain() - Constructor for class com.hw.langchain.chains.combine.documents.base.BaseCombineDocumentsChain
 
BaseDocumentTransformer - Interface in com.hw.langchain.schema
Base interface for transforming documents.
BaseLanguageModel - Interface in com.hw.langchain.base.language
BaseLanguageModel is an interface for interacting with a language model.
BaseLLM - Class in com.hw.langchain.llms.base
LLM wrapper should take in a prompt and return a string.
BaseLLM() - Constructor for class com.hw.langchain.llms.base.BaseLLM
 
BaseLLMOutputParser<T> - Class in com.hw.langchain.schema
 
BaseLLMOutputParser() - Constructor for class com.hw.langchain.schema.BaseLLMOutputParser
 
BaseLoader - Class in com.hw.langchain.document.loaders.base
Interface for loading documents.
BaseLoader() - Constructor for class com.hw.langchain.document.loaders.base.BaseLoader
 
BaseMemory - Interface in com.hw.langchain.schema
Base interface for memory in chains.
BaseMessage - Class in com.hw.langchain.schema
Message object.
BaseMessage(String) - Constructor for class com.hw.langchain.schema.BaseMessage
 
BaseMessagePromptTemplate - Class in com.hw.langchain.prompts.chat
 
BaseMessagePromptTemplate() - Constructor for class com.hw.langchain.prompts.chat.BaseMessagePromptTemplate
 
BaseOpenAI - Class in com.hw.langchain.llms.openai
Wrapper around OpenAI large language models.
BaseOpenAI() - Constructor for class com.hw.langchain.llms.openai.BaseOpenAI
 
BaseOutputParser<T> - Class in com.hw.langchain.schema
Class to parse the output of an LLM call.
BaseOutputParser() - Constructor for class com.hw.langchain.schema.BaseOutputParser
 
BasePromptSelector - Class in com.hw.langchain.chains.prompt.selector
 
BasePromptSelector() - Constructor for class com.hw.langchain.chains.prompt.selector.BasePromptSelector
 
BasePromptTemplate - Class in com.hw.langchain.prompts.base
Base class for all prompt templates, returning a prompt.
BasePromptTemplate(List<String>) - Constructor for class com.hw.langchain.prompts.base.BasePromptTemplate
 
BasePromptTemplate(List<String>, BaseOutputParser<?>) - Constructor for class com.hw.langchain.prompts.base.BasePromptTemplate
 
BasePromptTemplate(List<String>, Map<String, Object>) - Constructor for class com.hw.langchain.prompts.base.BasePromptTemplate
 
BaseRetrievalQA - Class in com.hw.langchain.chains.retrieval.qa.base
 
BaseRetrievalQA(BaseCombineDocumentsChain) - Constructor for class com.hw.langchain.chains.retrieval.qa.base.BaseRetrievalQA
 
BaseRetriever - Interface in com.hw.langchain.schema
Base interface for retrievers.
BaseSingleActionAgent - Class in com.hw.langchain.agents.agent
Base Agent class.
BaseSingleActionAgent() - Constructor for class com.hw.langchain.agents.agent.BaseSingleActionAgent
 
BaseStringMessagePromptTemplate - Class in com.hw.langchain.prompts.chat
 
BaseStringMessagePromptTemplate() - Constructor for class com.hw.langchain.prompts.chat.BaseStringMessagePromptTemplate
 
BaseTool - Class in com.hw.langchain.tools.base
Interface LangChain tools must implement.
BaseTool(String, String) - Constructor for class com.hw.langchain.tools.base.BaseTool
 
BaseTool(String, String, boolean) - Constructor for class com.hw.langchain.tools.base.BaseTool
 
BaseToolkit - Interface in com.hw.langchain.agents.toolkits.base
Base Toolkit representing a collection of related tools.
BaseUtils - Class in com.hw.langchain.chains.combine.documents.base
 
BaseUtils - Class in com.hw.langchain.chains.query.constructor.base
 
BaseUtils - Class in com.hw.langchain.retrievers.self.query.base
 
batchSize - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Batch size to use when passing multiple documents to generate.
bestOf - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Generates best_of completions server-side and returns the "best".
buffer() - Method in class com.hw.langchain.memory.buffer.ConversationBufferMemory
String buffer of memory.
BufferWindowMemoryMessagePicker - Class in com.hw.langchain.memory.buffer
 
BufferWindowMemoryMessagePicker(int) - Constructor for class com.hw.langchain.memory.buffer.BufferWindowMemoryMessagePicker
 
build() - Method in class com.hw.langchain.utilities.GoogleSearchAPIWrapper.Builder
 
builder() - Static method in class com.hw.langchain.utilities.GoogleSearchAPIWrapper
 

C

call(Object, boolean) - Method in class com.hw.langchain.chains.base.Chain
Run the logic of this chain and add to output if desired.
call(String) - Method in class com.hw.langchain.llms.base.BaseLLM
 
call(String, List<String>) - Method in class com.hw.langchain.llms.base.BaseLLM
Check Cache and run the LLM on the given prompt and input.
call(List<BaseMessage>) - Method in class com.hw.langchain.chat.models.base.BaseChatModel
 
call(List<BaseMessage>, List<String>) - Method in class com.hw.langchain.chat.models.base.BaseChatModel
 
call(Map<String, Object>, boolean) - Method in class com.hw.langchain.chains.base.Chain
Run the logic of this chain and add to output if desired.
Callbacks - Class in com.hw.langchain.callbacks.manager
Callbacks
Callbacks() - Constructor for class com.hw.langchain.callbacks.manager.Callbacks
 
Chain - Class in com.hw.langchain.chains.base
Base interface that all chains should implement.
Chain() - Constructor for class com.hw.langchain.chains.base.Chain
 
chainType() - Method in class com.hw.langchain.agents.agent.AgentExecutor
 
chainType() - Method in class com.hw.langchain.chains.api.base.ApiChain
 
chainType() - Method in class com.hw.langchain.chains.base.Chain
 
chainType() - Method in class com.hw.langchain.chains.combine.documents.stuff.StuffDocumentsChain
 
chainType() - Method in class com.hw.langchain.chains.llm.LLMChain
 
chainType() - Method in class com.hw.langchain.chains.llm.math.base.LLMMathChain
 
chainType() - Method in class com.hw.langchain.chains.retrieval.qa.base.RetrievalQa
 
chainType() - Method in class com.hw.langchain.chains.sql.database.base.SQLDatabaseChain
 
chainType() - Method in class com.hw.langchain.chains.sql.database.base.SQLDatabaseSequentialChain
 
ChainType - Enum Class in com.hw.langchain.chains
 
CharacterTextSplitter - Class in com.hw.langchain.text.splitter
Implementation of splitting text that looks at characters.
CharacterTextSplitter() - Constructor for class com.hw.langchain.text.splitter.CharacterTextSplitter
 
CHAT_CONVERSATIONAL_REACT_DESCRIPTION - Enum constant in enum class com.hw.langchain.agents.agent.types.AgentType
 
CHAT_ZERO_SHOT_REACT_DESCRIPTION - Enum constant in enum class com.hw.langchain.agents.agent.types.AgentType
 
ChatAgent - Class in com.hw.langchain.agents.chat.base
 
ChatAgent(LLMChain, List<String>, AgentOutputParser) - Constructor for class com.hw.langchain.agents.chat.base.ChatAgent
 
ChatGeneration - Class in com.hw.langchain.schema
Output of a single generation.
ChatGeneration(BaseMessage) - Constructor for class com.hw.langchain.schema.ChatGeneration
 
ChatGLM - Class in com.hw.langchain.llms.chatglm
ChatGLM LLM service.
ChatGLM() - Constructor for class com.hw.langchain.llms.chatglm.ChatGLM
 
chatMemory - Variable in class com.hw.langchain.memory.chat.memory.BaseChatMemory
 
ChatMessage - Class in com.hw.langchain.schema
Type of message with arbitrary speaker.
ChatMessage(String, String) - Constructor for class com.hw.langchain.schema.ChatMessage
 
ChatMessageHistory - Class in com.hw.langchain.memory.chat.message.histories.in.memory
 
ChatMessageHistory() - Constructor for class com.hw.langchain.memory.chat.message.histories.in.memory.ChatMessageHistory
 
ChatMessagePromptTemplate - Class in com.hw.langchain.prompts.chat
 
ChatMessagePromptTemplate() - Constructor for class com.hw.langchain.prompts.chat.ChatMessagePromptTemplate
 
ChatMessageRepository - Interface in com.hw.langchain.memory.chat.message.histories.database
interface for database supported chat message repository;
ChatOpenAI - Class in com.hw.langchain.chat.models.openai
Wrapper around OpenAI Chat large language models.
ChatOpenAI() - Constructor for class com.hw.langchain.chat.models.openai.ChatOpenAI
 
ChatOutputParser - Class in com.hw.langchain.agents.chat.output.parser
 
ChatOutputParser() - Constructor for class com.hw.langchain.agents.chat.output.parser.ChatOutputParser
 
ChatPromptTemplate - Class in com.hw.langchain.prompts.chat
 
ChatPromptTemplate(List<String>, List<?>) - Constructor for class com.hw.langchain.prompts.chat.ChatPromptTemplate
 
ChatPromptTemplate(List<String>, List<?>, Map<String, Object>) - Constructor for class com.hw.langchain.prompts.chat.ChatPromptTemplate
 
ChatPromptValue - Class in com.hw.langchain.prompts.chat
 
ChatPromptValue(List<BaseMessage>) - Constructor for class com.hw.langchain.prompts.chat.ChatPromptValue
 
ChatResult - Class in com.hw.langchain.schema
Class that contains all relevant information for a Chat Result.
ChatResult() - Constructor for class com.hw.langchain.schema.ChatResult
 
chunkOverlap - Variable in class com.hw.langchain.text.splitter.TextSplitter
Overlap in characters between chunks.
chunkSize - Variable in class com.hw.langchain.text.splitter.TextSplitter
Maximum size of chunks to return.
clear() - Method in class com.hw.langchain.memory.chat.memory.BaseChatMemory
 
clear() - Method in class com.hw.langchain.memory.chat.message.histories.database.DataBaseChatMessageHistory
 
clear() - Method in class com.hw.langchain.memory.chat.message.histories.database.redis.RedisChatMessageHistory
 
clear() - Method in class com.hw.langchain.memory.chat.message.histories.in.memory.ChatMessageHistory
 
clear() - Method in class com.hw.langchain.schema.BaseChatMessageHistory
Remove all messages from the store
clear() - Method in interface com.hw.langchain.schema.BaseMemory
Clear memory contents.
clearSessionChatMessage(String) - Method in interface com.hw.langchain.memory.chat.message.histories.database.ChatMessageRepository
Clears all chat messages for the specified sessionId.
clearSessionChatMessage(String) - Method in class com.hw.langchain.memory.chat.message.histories.database.redis.RedisChatMessageRepository
 
client - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
 
client - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
 
client - Variable in class com.hw.langchain.llms.openai.OpenAIChat
 
close() - Method in class com.hw.langchain.sql.database.SQLDatabase
 
com.hw.langchain.agents.agent - package com.hw.langchain.agents.agent
 
com.hw.langchain.agents.agent.types - package com.hw.langchain.agents.agent.types
 
com.hw.langchain.agents.chat.base - package com.hw.langchain.agents.chat.base
 
com.hw.langchain.agents.chat.output.parser - package com.hw.langchain.agents.chat.output.parser
 
com.hw.langchain.agents.chat.prompt - package com.hw.langchain.agents.chat.prompt
 
com.hw.langchain.agents.initialize - package com.hw.langchain.agents.initialize
 
com.hw.langchain.agents.load.tools - package com.hw.langchain.agents.load.tools
 
com.hw.langchain.agents.loading - package com.hw.langchain.agents.loading
 
com.hw.langchain.agents.mrkl.base - package com.hw.langchain.agents.mrkl.base
 
com.hw.langchain.agents.mrkl.output.parser - package com.hw.langchain.agents.mrkl.output.parser
 
com.hw.langchain.agents.mrkl.prompt - package com.hw.langchain.agents.mrkl.prompt
 
com.hw.langchain.agents.toolkits.base - package com.hw.langchain.agents.toolkits.base
 
com.hw.langchain.agents.tools - package com.hw.langchain.agents.tools
 
com.hw.langchain.agents.types - package com.hw.langchain.agents.types
 
com.hw.langchain.agents.utils - package com.hw.langchain.agents.utils
 
com.hw.langchain.base.language - package com.hw.langchain.base.language
 
com.hw.langchain.callbacks.manager - package com.hw.langchain.callbacks.manager
 
com.hw.langchain.chains - package com.hw.langchain.chains
 
com.hw.langchain.chains.api.base - package com.hw.langchain.chains.api.base
 
com.hw.langchain.chains.api.meteo - package com.hw.langchain.chains.api.meteo
 
com.hw.langchain.chains.api.prompt - package com.hw.langchain.chains.api.prompt
 
com.hw.langchain.chains.base - package com.hw.langchain.chains.base
 
com.hw.langchain.chains.combine.documents.base - package com.hw.langchain.chains.combine.documents.base
 
com.hw.langchain.chains.combine.documents.stuff - package com.hw.langchain.chains.combine.documents.stuff
 
com.hw.langchain.chains.conversation.base - package com.hw.langchain.chains.conversation.base
 
com.hw.langchain.chains.conversation.prompt - package com.hw.langchain.chains.conversation.prompt
 
com.hw.langchain.chains.llm - package com.hw.langchain.chains.llm
 
com.hw.langchain.chains.llm.math.base - package com.hw.langchain.chains.llm.math.base
 
com.hw.langchain.chains.llm.math.prompt - package com.hw.langchain.chains.llm.math.prompt
 
com.hw.langchain.chains.prompt.selector - package com.hw.langchain.chains.prompt.selector
 
com.hw.langchain.chains.query.constructor - package com.hw.langchain.chains.query.constructor
 
com.hw.langchain.chains.query.constructor.base - package com.hw.langchain.chains.query.constructor.base
 
com.hw.langchain.chains.query.constructor.ir - package com.hw.langchain.chains.query.constructor.ir
 
com.hw.langchain.chains.query.constructor.prompt - package com.hw.langchain.chains.query.constructor.prompt
 
com.hw.langchain.chains.query.constructor.schema - package com.hw.langchain.chains.query.constructor.schema
 
com.hw.langchain.chains.question.answering - package com.hw.langchain.chains.question.answering
 
com.hw.langchain.chains.retrieval.qa.base - package com.hw.langchain.chains.retrieval.qa.base
 
com.hw.langchain.chains.retrieval.qa.promt - package com.hw.langchain.chains.retrieval.qa.promt
 
com.hw.langchain.chains.sql.database.base - package com.hw.langchain.chains.sql.database.base
 
com.hw.langchain.chains.sql.database.prompt - package com.hw.langchain.chains.sql.database.prompt
 
com.hw.langchain.chains.summarize - package com.hw.langchain.chains.summarize
 
com.hw.langchain.chat.models.base - package com.hw.langchain.chat.models.base
 
com.hw.langchain.chat.models.openai - package com.hw.langchain.chat.models.openai
 
com.hw.langchain.document.loaders - package com.hw.langchain.document.loaders
 
com.hw.langchain.document.loaders.base - package com.hw.langchain.document.loaders.base
 
com.hw.langchain.document.loaders.directory - package com.hw.langchain.document.loaders.directory
 
com.hw.langchain.document.loaders.helpers - package com.hw.langchain.document.loaders.helpers
 
com.hw.langchain.document.loaders.notion - package com.hw.langchain.document.loaders.notion
 
com.hw.langchain.document.loaders.text - package com.hw.langchain.document.loaders.text
 
com.hw.langchain.embeddings.base - package com.hw.langchain.embeddings.base
 
com.hw.langchain.embeddings.ollama - package com.hw.langchain.embeddings.ollama
 
com.hw.langchain.embeddings.openai - package com.hw.langchain.embeddings.openai
 
com.hw.langchain.exception - package com.hw.langchain.exception
 
com.hw.langchain.llms - package com.hw.langchain.llms
 
com.hw.langchain.llms.base - package com.hw.langchain.llms.base
 
com.hw.langchain.llms.chatglm - package com.hw.langchain.llms.chatglm
 
com.hw.langchain.llms.ollama - package com.hw.langchain.llms.ollama
 
com.hw.langchain.llms.openai - package com.hw.langchain.llms.openai
 
com.hw.langchain.math.utils - package com.hw.langchain.math.utils
 
com.hw.langchain.memory.buffer - package com.hw.langchain.memory.buffer
 
com.hw.langchain.memory.chat.memory - package com.hw.langchain.memory.chat.memory
 
com.hw.langchain.memory.chat.message.histories.database - package com.hw.langchain.memory.chat.message.histories.database
 
com.hw.langchain.memory.chat.message.histories.database.redis - package com.hw.langchain.memory.chat.message.histories.database.redis
 
com.hw.langchain.memory.chat.message.histories.in.memory - package com.hw.langchain.memory.chat.message.histories.in.memory
 
com.hw.langchain.output.parsers - package com.hw.langchain.output.parsers
 
com.hw.langchain.output.parsers.json - package com.hw.langchain.output.parsers.json
 
com.hw.langchain.output.parsers.list - package com.hw.langchain.output.parsers.list
 
com.hw.langchain.output.parsers.structured - package com.hw.langchain.output.parsers.structured
 
com.hw.langchain.prompts.base - package com.hw.langchain.prompts.base
 
com.hw.langchain.prompts.chat - package com.hw.langchain.prompts.chat
 
com.hw.langchain.prompts.few.shot - package com.hw.langchain.prompts.few.shot
 
com.hw.langchain.prompts.prompt - package com.hw.langchain.prompts.prompt
 
com.hw.langchain.prompts.utils - package com.hw.langchain.prompts.utils
 
com.hw.langchain.requests - package com.hw.langchain.requests
 
com.hw.langchain.retrievers.self.query.base - package com.hw.langchain.retrievers.self.query.base
 
com.hw.langchain.retrievers.self.query.pinecone - package com.hw.langchain.retrievers.self.query.pinecone
 
com.hw.langchain.schema - package com.hw.langchain.schema
 
com.hw.langchain.sql.database - package com.hw.langchain.sql.database
 
com.hw.langchain.text.splitter - package com.hw.langchain.text.splitter
 
com.hw.langchain.tools.base - package com.hw.langchain.tools.base
 
com.hw.langchain.utilities - package com.hw.langchain.utilities
 
com.hw.langchain.utils - package com.hw.langchain.utils
 
com.hw.langchain.vectorstores.base - package com.hw.langchain.vectorstores.base
 
com.hw.langchain.vectorstores.milvus - package com.hw.langchain.vectorstores.milvus
 
com.hw.langchain.vectorstores.pinecone - package com.hw.langchain.vectorstores.pinecone
 
com.hw.langchain.vectorstores.utils - package com.hw.langchain.vectorstores.utils
 
combineDocs(List<Document>, Map<String, Object>) - Method in class com.hw.langchain.chains.combine.documents.base.BaseCombineDocumentsChain
Combine documents into a single string.
combineDocs(List<Document>, Map<String, Object>) - Method in class com.hw.langchain.chains.combine.documents.stuff.StuffDocumentsChain
Stuff all documents into one prompt and pass to LLM.
combineLlmOutputs(List<Map<String, Object>>) - Method in class com.hw.langchain.chat.models.base.BaseChatModel
 
combineLlmOutputs(List<Map<String, Object>>) - Method in class com.hw.langchain.chat.models.openai.ChatOpenAI
 
CommaSeparatedListOutputParser - Class in com.hw.langchain.output.parsers.list
Parse out comma separated lists.
CommaSeparatedListOutputParser() - Constructor for class com.hw.langchain.output.parsers.list.CommaSeparatedListOutputParser
 
Comparator - Enum Class in com.hw.langchain.chains.query.constructor.ir
 
Comparison - Class in com.hw.langchain.chains.query.constructor.ir
A comparison to a value.
Comparison() - Constructor for class com.hw.langchain.chains.query.constructor.ir.Comparison
 
ConditionalPromptSelector - Class in com.hw.langchain.chains.prompt.selector
Prompt collection that goes through conditionals.
ConditionalPromptSelector(BasePromptTemplate, List<Pair<Predicate<BaseLanguageModel>, BasePromptTemplate>>) - Constructor for class com.hw.langchain.chains.prompt.selector.ConditionalPromptSelector
 
connectTimeout(int) - Method in class com.hw.langchain.utilities.GoogleSearchAPIWrapper.Builder
 
constructScratchpad(List<Pair<AgentAction, String>>) - Method in class com.hw.langchain.agents.agent.Agent
Construct the scratchpad that lets the agent continue its thought process.
constructScratchpad(List<Pair<AgentAction, String>>) - Method in class com.hw.langchain.agents.chat.base.ChatAgent
 
CONTAIN - Enum constant in enum class com.hw.langchain.chains.query.constructor.ir.Comparator
 
content - Variable in class com.hw.langchain.schema.BaseMessage
 
CONVERSATIONAL_REACT_DESCRIPTION - Enum constant in enum class com.hw.langchain.agents.agent.types.AgentType
 
ConversationBufferLimitedMemory - Class in com.hw.langchain.memory.buffer
 
ConversationBufferLimitedMemory(MemoryMessagePicker) - Constructor for class com.hw.langchain.memory.buffer.ConversationBufferLimitedMemory
 
ConversationBufferLimitedMemory(MemoryMessagePicker, boolean) - Constructor for class com.hw.langchain.memory.buffer.ConversationBufferLimitedMemory
 
ConversationBufferLimitedMemory(MemoryMessagePicker, boolean, BaseChatMessageHistory) - Constructor for class com.hw.langchain.memory.buffer.ConversationBufferLimitedMemory
 
ConversationBufferMemory - Class in com.hw.langchain.memory.buffer
Buffer for storing conversation memory.
ConversationBufferMemory() - Constructor for class com.hw.langchain.memory.buffer.ConversationBufferMemory
 
ConversationBufferMemory(boolean) - Constructor for class com.hw.langchain.memory.buffer.ConversationBufferMemory
 
ConversationBufferMemory(boolean, BaseChatMessageHistory) - Constructor for class com.hw.langchain.memory.buffer.ConversationBufferMemory
 
ConversationBufferWindowMemory - Class in com.hw.langchain.memory.buffer
 
ConversationBufferWindowMemory(int) - Constructor for class com.hw.langchain.memory.buffer.ConversationBufferWindowMemory
 
ConversationBufferWindowMemory(int, boolean) - Constructor for class com.hw.langchain.memory.buffer.ConversationBufferWindowMemory
 
ConversationBufferWindowMemory(int, boolean, BaseChatMessageHistory) - Constructor for class com.hw.langchain.memory.buffer.ConversationBufferWindowMemory
 
ConversationChain - Class in com.hw.langchain.chains.conversation.base
Chain to have a conversation and load context from memory.
ConversationChain(BaseLanguageModel) - Constructor for class com.hw.langchain.chains.conversation.base.ConversationChain
 
ConversationChain(BaseLanguageModel, BasePromptTemplate, BaseMemory) - Constructor for class com.hw.langchain.chains.conversation.base.ConversationChain
 
convertFromJsonStr(String, TypeReference<T>) - Static method in class com.hw.langchain.chains.query.constructor.JsonUtils
 
convertFromJsonStr(String, Class<T>) - Static method in class com.hw.langchain.chains.query.constructor.JsonUtils
 
convertLangChainToOpenAI(BaseMessage) - Static method in class com.hw.langchain.chat.models.openai.OpenAI
 
convertMessages(List<BaseMessage>) - Method in class com.hw.langchain.chat.models.openai.ChatOpenAI
 
convertOpenAiToLangChain(ChatMessage) - Static method in class com.hw.langchain.chat.models.openai.OpenAI
 
cosineSimilarity(List<List<Float>>, INDArray) - Static method in class com.hw.langchain.math.utils.MathUtils
Row-wise cosine similarity between two equal-width matrices.
cosineSimilarity(INDArray, List<List<Float>>) - Static method in class com.hw.langchain.math.utils.MathUtils
Row-wise cosine similarity between two equal-width matrices.
cosineSimilarity(INDArray, INDArray) - Static method in class com.hw.langchain.math.utils.MathUtils
Row-wise cosine similarity between two equal-width matrices.
createChatResult(ChatCompletionResp) - Method in class com.hw.langchain.chat.models.openai.ChatOpenAI
 
createCollection(List<List<Float>>, List<Map<String, Object>>) - Method in class com.hw.langchain.vectorstores.milvus.Milvus
 
createDocuments(List<String>, List<Map<String, Object>>) - Method in class com.hw.langchain.text.splitter.TextSplitter
Create documents from a list of texts.
createFromList(List<Float>) - Static method in class com.hw.langchain.vectorstores.utils.Nd4jUtils
 
createPrompt(List<BaseTool>, String, String, String, String, List<String>) - Static method in class com.hw.langchain.agents.chat.base.ChatAgent
 
createPrompt(List<BaseTool>, String, String, String, List<String>) - Static method in class com.hw.langchain.agents.mrkl.base.ZeroShotAgent
Create prompt in the style of the zero shot agent.
createStream(String, List<String>) - Method in class com.hw.langchain.llms.ollama.Ollama
 
createThreadPool(int) - Static method in class com.hw.langchain.utils.ThreadPoolUtil
 

D

DataBaseChatMessageHistory - Class in com.hw.langchain.memory.chat.message.histories.database
database based chat message history;
DataBaseChatMessageHistory(String, ChatMessageRepository) - Constructor for class com.hw.langchain.memory.chat.message.histories.database.DataBaseChatMessageHistory
 
DECIDER_PROMPT - Static variable in class com.hw.langchain.chains.sql.database.prompt.Prompt
 
DEFAULT_EXAMPLES - Static variable in class com.hw.langchain.chains.query.constructor.prompt.Prompt
 
DEFAULT_PREFIX - Static variable in class com.hw.langchain.chains.query.constructor.prompt.Prompt
 
DEFAULT_SCHEMA - Static variable in class com.hw.langchain.chains.query.constructor.prompt.Prompt
 
DEFAULT_SUFFIX - Static variable in class com.hw.langchain.chains.query.constructor.prompt.Prompt
 
delete(String) - Method in class com.hw.langchain.requests.Requests
 
delete(String) - Method in class com.hw.langchain.requests.TextRequestsWrapper
 
delete(List<String>) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Delete by vector ID.
delete(List<String>) - Method in class com.hw.langchain.vectorstores.milvus.Milvus
 
delete(List<String>) - Method in class com.hw.langchain.vectorstores.pinecone.Pinecone
 
description - Variable in class com.hw.langchain.tools.base.BaseTool
Used to tell the model how/when/why to use the tool.
detectFileEncodings(String) - Static method in class com.hw.langchain.document.loaders.helpers.Helpers
Try to detect the file encoding.
DirectoryLoader - Class in com.hw.langchain.document.loaders.directory
Load documents from a directory.
DirectoryLoader() - Constructor for class com.hw.langchain.document.loaders.directory.DirectoryLoader
 
disallowedSpecial - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Set of special tokens that are not allowed.
Document - Class in com.hw.langchain.schema
Interface for interacting with a document.
Document(String) - Constructor for class com.hw.langchain.schema.Document
 
Document(String, Map<String, Object>) - Constructor for class com.hw.langchain.schema.Document
 

E

embeddingFunc(String) - Method in class com.hw.langchain.embeddings.openai.OpenAIEmbeddings
Call out to OpenAI's embedding endpoint.
Embeddings - Interface in com.hw.langchain.embeddings.base
Interface for embedding models.
embedDocuments(List<String>) - Method in interface com.hw.langchain.embeddings.base.Embeddings
Embed search docs.
embedDocuments(List<String>) - Method in class com.hw.langchain.embeddings.ollama.OllamaEmbeddings
 
embedDocuments(List<String>) - Method in class com.hw.langchain.embeddings.openai.OpenAIEmbeddings
Call out to OpenAI's embedding endpoint for embedding search docs.
embedQuery(String) - Method in interface com.hw.langchain.embeddings.base.Embeddings
Embed query text.
embedQuery(String) - Method in class com.hw.langchain.embeddings.ollama.OllamaEmbeddings
 
embedQuery(String) - Method in class com.hw.langchain.embeddings.openai.OpenAIEmbeddings
Call out to OpenAI's embedding endpoint for embedding query text.
embedWithRetry(List<?>) - Method in class com.hw.langchain.embeddings.openai.OpenAIEmbeddings
 
enforceStopTokens(String, List<String>) - Static method in class com.hw.langchain.llms.Utils
Cuts off the text as soon as any stop words occur.
EQ - Enum constant in enum class com.hw.langchain.chains.query.constructor.ir.Comparator
Enumerator of the comparison operators.
errorMessage(String) - Method in class com.hw.langchain.document.loaders.base.BaseLoader
 
evaluateExpression(String) - Method in class com.hw.langchain.chains.llm.math.base.LLMMathChain
 
EXAMPLE_PROMPT - Static variable in class com.hw.langchain.chains.query.constructor.prompt.Prompt
 
EXAMPLES_WITH_LIMIT - Static variable in class com.hw.langchain.chains.query.constructor.prompt.Prompt
 
Expr - Interface in com.hw.langchain.chains.query.constructor.ir
 

F

FewShotPromptTemplate - Class in com.hw.langchain.prompts.few.shot
Prompt template that contains few shot examples.
FewShotPromptTemplate(List<Map<String, Object>>, PromptTemplate, String, String, List<String>) - Constructor for class com.hw.langchain.prompts.few.shot.FewShotPromptTemplate
 
FewShotPromptTemplate(List<Map<String, Object>>, PromptTemplate, String, String, List<String>, String) - Constructor for class com.hw.langchain.prompts.few.shot.FewShotPromptTemplate
 
FewShotPromptTemplate(List<Map<String, Object>>, PromptTemplate, String, String, List<String>, String, BaseOutputParser<?>) - Constructor for class com.hw.langchain.prompts.few.shot.FewShotPromptTemplate
 
FileEncoding - Class in com.hw.langchain.document.loaders.helpers
 
FileEncoding() - Constructor for class com.hw.langchain.document.loaders.helpers.FileEncoding
 
FilterDirective - Class in com.hw.langchain.chains.query.constructor.ir
A filtering expression.
FilterDirective() - Constructor for class com.hw.langchain.chains.query.constructor.ir.FilterDirective
 
findVariables(String) - Static method in class com.hw.langchain.prompts.utils.FormatUtils
Finds all variables enclosed in curly braces '{' and '}' in the input string, excluding variables enclosed in double curly braces '{{' or more.
format(Map<String, Object>) - Method in class com.hw.langchain.prompts.base.BasePromptTemplate
Format the prompt with the inputs.
format(Map<String, Object>) - Method in class com.hw.langchain.prompts.chat.AIMessagePromptTemplate
 
format(Map<String, Object>) - Method in class com.hw.langchain.prompts.chat.BaseChatPromptTemplate
 
format(Map<String, Object>) - Method in class com.hw.langchain.prompts.chat.BaseStringMessagePromptTemplate
To a BaseMessage.
format(Map<String, Object>) - Method in class com.hw.langchain.prompts.chat.ChatMessagePromptTemplate
 
format(Map<String, Object>) - Method in class com.hw.langchain.prompts.chat.HumanMessagePromptTemplate
 
format(Map<String, Object>) - Method in class com.hw.langchain.prompts.chat.SystemMessagePromptTemplate
 
format(Map<String, Object>) - Method in class com.hw.langchain.prompts.few.shot.FewShotPromptTemplate
 
format(Map<String, Object>) - Method in class com.hw.langchain.prompts.prompt.PromptTemplate
 
FORMAT_INSTRUCTIONS - Static variable in class com.hw.langchain.agents.chat.prompt.Prompt
 
FORMAT_INSTRUCTIONS - Static variable in class com.hw.langchain.agents.mrkl.prompt.Prompt
 
formatAttributeInfo(List<AttributeInfo>) - Static method in class com.hw.langchain.chains.query.constructor.base.BaseUtils
 
formatDocument(Document, BasePromptTemplate) - Static method in class com.hw.langchain.chains.combine.documents.base.BaseUtils
Format a document into a string based on a prompt template.
FormatInstructions - Class in com.hw.langchain.output.parsers
 
FormatInstructions() - Constructor for class com.hw.langchain.output.parsers.FormatInstructions
 
formatMessages(Map<String, Object>) - Method in class com.hw.langchain.prompts.chat.BaseChatPromptTemplate
Format kwargs into a list of messages.
formatMessages(Map<String, Object>) - Method in class com.hw.langchain.prompts.chat.BaseMessagePromptTemplate
To messages.
formatMessages(Map<String, Object>) - Method in class com.hw.langchain.prompts.chat.BaseStringMessagePromptTemplate
 
formatMessages(Map<String, Object>) - Method in class com.hw.langchain.prompts.chat.ChatPromptTemplate
 
formatMessages(Map<String, Object>) - Method in class com.hw.langchain.prompts.chat.MessagesPlaceholder
 
formatPrompt(Map<String, Object>) - Method in class com.hw.langchain.prompts.base.BasePromptTemplate
Create Chat Messages.
formatPrompt(Map<String, Object>) - Method in class com.hw.langchain.prompts.base.StringPromptTemplate
 
formatPrompt(Map<String, Object>) - Method in class com.hw.langchain.prompts.chat.BaseChatPromptTemplate
 
formatTemplate(String, Map<String, Object>) - Static method in class com.hw.langchain.prompts.utils.FormatUtils
Formats the given template string by replacing variables with corresponding values.
FormatUtils - Class in com.hw.langchain.prompts.utils
 
frequencyPenalty - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Penalizes repeated tokens according to frequency.
frequencyPenalty - Variable in class com.hw.langchain.llms.openai.OpenAIChat
Penalizes repeated tokens according to frequency.
fromAgentAndTools(BaseSingleActionAgent, List<BaseTool>) - Static method in class com.hw.langchain.agents.agent.AgentExecutor
Create from agent and tools.
fromChainType(BaseLanguageModel, ChainType, BaseRetriever) - Static method in class com.hw.langchain.chains.retrieval.qa.base.RetrievalQa
Load chain from chain type.
fromChainType(BaseLanguageModel, BaseRetriever) - Static method in class com.hw.langchain.chains.retrieval.qa.base.RetrievalQa
Load chain from chain type.
fromComponents(List<Comparator>, List<Operator>) - Static method in class com.hw.langchain.chains.query.constructor.base.StructuredQueryOutputParser
 
fromDocuments(List<Document>, Embeddings) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Return VectorStore initialized from documents and embeddings.
fromLLM(BaseLanguageModel) - Static method in class com.hw.langchain.chains.llm.math.base.LLMMathChain
 
fromLLM(BaseLanguageModel, BasePromptTemplate) - Static method in class com.hw.langchain.chains.llm.math.base.LLMMathChain
 
fromLLM(BaseLanguageModel, SQLDatabase) - Static method in class com.hw.langchain.chains.sql.database.base.SQLDatabaseChain
 
fromLLM(BaseLanguageModel, SQLDatabase) - Static method in class com.hw.langchain.chains.sql.database.base.SQLDatabaseSequentialChain
 
fromLLM(BaseLanguageModel, SQLDatabase, BasePromptTemplate) - Static method in class com.hw.langchain.chains.sql.database.base.SQLDatabaseChain
 
fromLLM(BaseLanguageModel, SQLDatabase, BasePromptTemplate, BasePromptTemplate) - Static method in class com.hw.langchain.chains.sql.database.base.SQLDatabaseSequentialChain
Load the necessary chains.
fromLLM(BaseLanguageModel, VectorStore, String, List<AttributeInfo>) - Static method in class com.hw.langchain.retrievers.self.query.base.SelfQueryRetriever
 
fromLLM(BaseLanguageModel, VectorStore, String, List<AttributeInfo>, Visitor, boolean, boolean) - Static method in class com.hw.langchain.retrievers.self.query.base.SelfQueryRetriever
 
fromLlmAndApiDocs(BaseLanguageModel, String) - Static method in class com.hw.langchain.chains.api.base.ApiChain
 
fromLlmAndApiDocs(BaseLanguageModel, String, Map<String, String>, BasePromptTemplate, BasePromptTemplate) - Static method in class com.hw.langchain.chains.api.base.ApiChain
 
fromLLMAndTools(BaseLanguageModel, List<BaseTool>, AgentOutputParser, String, String, String, String, List<String>, Map<String, Object>) - Static method in class com.hw.langchain.agents.chat.base.ChatAgent
Construct an agent from an LLM and tools.
fromLLMAndTools(BaseLanguageModel, List<BaseTool>, AgentOutputParser, String, String, String, List<String>, Map<String, Object>) - Static method in class com.hw.langchain.agents.mrkl.base.ZeroShotAgent
Construct an agent from an LLM and tools.
fromLLMAndTools(BaseLanguageModel, List<BaseTool>, Map<String, Object>) - Static method in class com.hw.langchain.agents.agent.Agent
 
fromLLMAndTools(BaseLanguageModel, List<BaseTool>, Map<String, Object>) - Static method in class com.hw.langchain.agents.agent.BaseSingleActionAgent
 
fromLLMAndTools(BaseLanguageModel, List<BaseTool>, Map<String, Object>) - Static method in class com.hw.langchain.agents.chat.base.ChatAgent
Construct an agent from an LLM and tools.
fromLLMAndTools(BaseLanguageModel, List<BaseTool>, Map<String, Object>) - Static method in class com.hw.langchain.agents.mrkl.base.ZeroShotAgent
Construct an agent from an LLM and tools.
fromMap(Map<String, Object>) - Static method in class com.hw.langchain.schema.BaseMessage
 
fromMessages(List<?>) - Static method in class com.hw.langchain.prompts.chat.ChatPromptTemplate
 
fromResponseSchemas(List<ResponseSchema>) - Static method in class com.hw.langchain.output.parsers.structured.StructuredOutputParser
 
fromTemplate(Class<T>, String) - Static method in class com.hw.langchain.prompts.chat.BaseStringMessagePromptTemplate
 
fromTemplate(String) - Static method in class com.hw.langchain.prompts.chat.AIMessagePromptTemplate
 
fromTemplate(String) - Static method in class com.hw.langchain.prompts.chat.ChatMessagePromptTemplate
 
fromTemplate(String) - Static method in class com.hw.langchain.prompts.chat.HumanMessagePromptTemplate
 
fromTemplate(String) - Static method in class com.hw.langchain.prompts.chat.SystemMessagePromptTemplate
 
fromTemplate(String) - Static method in class com.hw.langchain.prompts.prompt.PromptTemplate
 
fromTexts(List<String>, Embeddings, List<Map<String, Object>>) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Initializes and returns a VectorStore from the given texts, embeddings, and metadata.
fromTexts(List<String>, Embeddings, List<Map<String, Object>>) - Method in class com.hw.langchain.vectorstores.milvus.Milvus
 
fromTexts(List<String>, Embeddings, List<Map<String, Object>>) - Method in class com.hw.langchain.vectorstores.pinecone.Pinecone
 
fromUri(String, String, String) - Static method in class com.hw.langchain.sql.database.SQLDatabase
 
fromValue(String) - Static method in enum class com.hw.langchain.agents.agent.types.AgentType
 
FunctionMessage - Class in com.hw.langchain.schema
 
FunctionMessage(String) - Constructor for class com.hw.langchain.schema.FunctionMessage
 

G

generate(List<String>, List<String>) - Method in class com.hw.langchain.llms.base.BaseLLM
Run the LLM on the given prompt and input.
generate(List<List<BaseMessage>>) - Method in class com.hw.langchain.chat.models.base.BaseChatModel
 
generate(List<List<BaseMessage>>, List<String>) - Method in class com.hw.langchain.chat.models.base.BaseChatModel
Top Level call
generatePrompt(List<PromptValue>, List<String>) - Method in interface com.hw.langchain.base.language.BaseLanguageModel
Take in a list of prompt values and return an LLMResult.
generatePrompt(List<PromptValue>, List<String>) - Method in class com.hw.langchain.chat.models.base.BaseChatModel
 
generatePrompt(List<PromptValue>, List<String>) - Method in class com.hw.langchain.llms.base.BaseLLM
 
Generation - Class in com.hw.langchain.schema
Output of a single generation.
Generation(String) - Constructor for class com.hw.langchain.schema.Generation
 
GenerationChunk - Class in com.hw.langchain.schema
A Generation chunk, which can be concatenated with other Generation chunks.
GenerationChunk(String, Map<String, Object>) - Constructor for class com.hw.langchain.schema.GenerationChunk
 
generationInfo - Variable in class com.hw.langchain.schema.Generation
Raw generation info response from the provider.
get(String) - Method in class com.hw.langchain.requests.Requests
 
get(String) - Method in class com.hw.langchain.requests.TextRequestsWrapper
 
getAllowedComparators() - Method in class com.hw.langchain.chains.query.constructor.ir.Visitor
 
getAllowedOperators() - Method in class com.hw.langchain.chains.query.constructor.ir.Visitor
 
getBufferString(List<BaseMessage>) - Static method in class com.hw.langchain.schema.Schema
 
getBufferString(List<BaseMessage>, String, String) - Static method in class com.hw.langchain.schema.Schema
Get buffer string of messages.
getBuiltinTranslator(VectorStore) - Static method in class com.hw.langchain.retrievers.self.query.base.BaseUtils
Get the translator class corresponding to the vector store class.
getDefaultDocumentPrompt() - Static method in class com.hw.langchain.chains.combine.documents.stuff.StuffUtils
Get the default document prompt.
getDialect() - Method in class com.hw.langchain.sql.database.SQLDatabase
Dialect will convert to lowercase
getDocs(String) - Method in class com.hw.langchain.chains.retrieval.qa.base.BaseRetrievalQA
Get documents to do question answering over.
getDocs(String) - Method in class com.hw.langchain.chains.retrieval.qa.base.RetrievalQa
 
getExamples() - Method in class com.hw.langchain.prompts.few.shot.FewShotPromptTemplate
 
getFormatInstructions() - Method in class com.hw.langchain.agents.chat.output.parser.ChatOutputParser
 
getFormatInstructions() - Method in class com.hw.langchain.agents.mrkl.output.parser.MRKLOutputParser
 
getFormatInstructions() - Method in class com.hw.langchain.output.parsers.list.CommaSeparatedListOutputParser
 
getFormatInstructions() - Method in class com.hw.langchain.output.parsers.structured.StructuredOutputParser
 
getFormatInstructions() - Method in class com.hw.langchain.schema.BaseOutputParser
Instructions on how the LLM output should be formatted.
getFromDictOrEnv(Map<String, Object>, String, String, String...) - Static method in class com.hw.langchain.utils.Utils
Retrieves the value from the dictionary or environment variable.
getFromEnv(String, String, String...) - Static method in class com.hw.langchain.utils.Utils
Retrieves the value from the environment variable or the default value.
getFullInputs(List<Pair<AgentAction, String>>, Map<String, Object>) - Method in class com.hw.langchain.agents.agent.Agent
Create the full inputs for the LLMChain from intermediate steps.
getLLMMath(BaseLanguageModel) - Static method in class com.hw.langchain.agents.load.tools.LoadTools
 
getLlmOutput() - Method in exception com.hw.langchain.schema.OutputParserException
 
getLog() - Method in class com.hw.langchain.schema.AgentAction
 
getLog() - Method in class com.hw.langchain.schema.AgentFinish
 
getMemoryMessages() - Method in class com.hw.langchain.memory.buffer.ConversationBufferLimitedMemory
 
getMemoryMessages() - Method in class com.hw.langchain.memory.buffer.ConversationBufferMemory
 
getMessages() - Method in class com.hw.langchain.memory.chat.message.histories.database.DataBaseChatMessageHistory
 
getMessages() - Method in class com.hw.langchain.memory.chat.message.histories.database.redis.RedisChatMessageHistory
 
getObservation() - Method in exception com.hw.langchain.schema.OutputParserException
 
getOrEnvOrDefault(String, String, String...) - Static method in class com.hw.langchain.utils.Utils
Retrieves the value from the original value, environment variable, or default value.
getPrompt(BaseLanguageModel) - Method in class com.hw.langchain.chains.prompt.selector.BasePromptSelector
Get default prompt for a language model.
getPrompt(BaseLanguageModel) - Method in class com.hw.langchain.chains.prompt.selector.ConditionalPromptSelector
 
getPromptInputKey(Map<String, Object>, List<String>) - Static method in class com.hw.langchain.output.parsers.list.Utils
"stop" is a special key that can be passed as input but is not used to format the prompt.
getRelevantDocuments(String) - Method in class com.hw.langchain.retrievers.self.query.base.SelfQueryRetriever
 
getRelevantDocuments(String) - Method in interface com.hw.langchain.schema.BaseRetriever
Get documents relevant for a query.
getRelevantDocuments(String) - Method in class com.hw.langchain.vectorstores.base.VectorStoreRetriever
 
getReturnValues() - Method in class com.hw.langchain.schema.AgentFinish
 
getSampleRows(String) - Method in class com.hw.langchain.sql.database.SQLDatabase
 
getSerpapi(Map<String, Object>) - Static method in class com.hw.langchain.agents.load.tools.LoadTools
 
getString(String) - Static method in class com.hw.langchain.utils.ResourceBundleUtils
 
getTableDdl(String) - Method in class com.hw.langchain.sql.database.SQLDatabase
 
getTableIndexes(String) - Method in class com.hw.langchain.sql.database.SQLDatabase
 
getTableInfo(List<String>) - Method in class com.hw.langchain.sql.database.SQLDatabase
Get information about specified tables.
getTool() - Method in class com.hw.langchain.schema.AgentAction
 
getToolInput() - Method in class com.hw.langchain.schema.AgentAction
 
getToolReturn(Pair<AgentAction, String>) - Method in class com.hw.langchain.agents.agent.AgentExecutor
Check if the tool is a returning tool.
getTools() - Method in interface com.hw.langchain.agents.toolkits.base.BaseToolkit
Get the tools in the toolkit.
getUsableTableNames() - Method in class com.hw.langchain.sql.database.SQLDatabase
Get names of tables available.
getValue() - Method in enum class com.hw.langchain.agents.agent.types.AgentType
 
getValue() - Method in enum class com.hw.langchain.chains.ChainType
 
getValue() - Method in enum class com.hw.langchain.vectorstores.base.SearchType
 
googleApiKey(String) - Method in class com.hw.langchain.utilities.GoogleSearchAPIWrapper.Builder
 
googleCseId(String) - Method in class com.hw.langchain.utilities.GoogleSearchAPIWrapper.Builder
 
GoogleSearchAPIWrapper - Class in com.hw.langchain.utilities
Wrapper for Google Search API.
GoogleSearchAPIWrapper.Builder - Class in com.hw.langchain.utilities
 
GT - Enum constant in enum class com.hw.langchain.chains.query.constructor.ir.Comparator
 
GTE - Enum constant in enum class com.hw.langchain.chains.query.constructor.ir.Comparator
 

H

H2_PROMPT - Static variable in class com.hw.langchain.chains.sql.database.prompt.Prompt
 
HeaderType - Class in com.hw.langchain.text.splitter
 
HeaderType(int, String, String) - Constructor for class com.hw.langchain.text.splitter.HeaderType
Create a new HeaderType.
Helpers - Class in com.hw.langchain.document.loaders.helpers
 
HUMAN_MESSAGE - Static variable in class com.hw.langchain.agents.chat.prompt.Prompt
 
HumanMessage - Class in com.hw.langchain.schema
Type of message that is spoken by the human.
HumanMessage(String) - Constructor for class com.hw.langchain.schema.HumanMessage
 
HumanMessagePromptTemplate - Class in com.hw.langchain.prompts.chat
 
HumanMessagePromptTemplate() - Constructor for class com.hw.langchain.prompts.chat.HumanMessagePromptTemplate
 

I

init() - Method in class com.hw.langchain.chat.models.openai.ChatOpenAI
Validate parameters and init client
init() - Method in class com.hw.langchain.embeddings.ollama.OllamaEmbeddings
 
init() - Method in class com.hw.langchain.embeddings.openai.OpenAIEmbeddings
Validate parameters and init client
init() - Method in class com.hw.langchain.llms.chatglm.ChatGLM
 
init() - Method in class com.hw.langchain.llms.ollama.Ollama
 
init() - Method in class com.hw.langchain.llms.openai.OpenAI
Validate that api key exists in environment.
init() - Method in class com.hw.langchain.llms.openai.OpenAIChat
 
init() - Method in class com.hw.langchain.vectorstores.milvus.Milvus
 
init() - Method in class com.hw.langchain.vectorstores.pinecone.Pinecone
Validate parameters and init client
Init - Class in com.hw.langchain.chains.question.answering
 
Initialize - Class in com.hw.langchain.agents.initialize
Load agent.
initializeAgent(List<BaseTool>, BaseLanguageModel, AgentType) - Static method in class com.hw.langchain.agents.initialize.Initialize
 
initializeAgent(List<BaseTool>, BaseLanguageModel, AgentType, String, Map<String, Object>, Map<String, Object>) - Static method in class com.hw.langchain.agents.initialize.Initialize
Load an agent executor given tools and LLM.
innerCall(String, List<String>) - Method in class com.hw.langchain.chat.models.base.LLM
Run the LLM on the given prompt and input.
innerCall(String, List<String>) - Method in class com.hw.langchain.llms.chatglm.ChatGLM
 
innerCall(Map<String, Object>) - Method in class com.hw.langchain.agents.agent.AgentExecutor
Run text through and get agent response.
innerCall(Map<String, Object>) - Method in class com.hw.langchain.chains.api.base.ApiChain
 
innerCall(Map<String, Object>) - Method in class com.hw.langchain.chains.base.Chain
Runs the logic of this chain and returns the output.
innerCall(Map<String, Object>) - Method in class com.hw.langchain.chains.combine.documents.base.BaseCombineDocumentsChain
 
innerCall(Map<String, Object>) - Method in class com.hw.langchain.chains.llm.LLMChain
 
innerCall(Map<String, Object>) - Method in class com.hw.langchain.chains.llm.math.base.LLMMathChain
 
innerCall(Map<String, Object>) - Method in class com.hw.langchain.chains.retrieval.qa.base.BaseRetrievalQA
Run getRelevantText and llm on input query.
innerCall(Map<String, Object>) - Method in class com.hw.langchain.chains.sql.database.base.SQLDatabaseChain
 
innerCall(Map<String, Object>) - Method in class com.hw.langchain.chains.sql.database.base.SQLDatabaseSequentialChain
 
innerGenerate(List<BaseMessage>, List<String>) - Method in class com.hw.langchain.chat.models.base.BaseChatModel
Top Level call
innerGenerate(List<BaseMessage>, List<String>) - Method in class com.hw.langchain.chat.models.openai.ChatOpenAI
 
innerGenerate(List<String>, List<String>) - Method in class com.hw.langchain.chat.models.base.LLM
 
innerGenerate(List<String>, List<String>) - Method in class com.hw.langchain.llms.base.BaseLLM
Run the LLM on the given prompts.
innerGenerate(List<String>, List<String>) - Method in class com.hw.langchain.llms.ollama.Ollama
Call out to Ollama to generate endpoint.
innerGenerate(List<String>, List<String>) - Method in class com.hw.langchain.llms.openai.BaseOpenAI
Call out to OpenAI's endpoint with k unique prompts.
innerGenerate(List<String>, List<String>) - Method in class com.hw.langchain.llms.openai.OpenAIChat
 
innerRun(String, Map<String, Object>) - Method in class com.hw.langchain.agents.tools.InvalidTool
 
innerRun(String, Map<String, Object>) - Method in class com.hw.langchain.tools.base.BaseTool
Use the tool.
innerRun(String, Map<String, Object>) - Method in class com.hw.langchain.tools.base.Tool
 
innerSimilaritySearchWithRelevanceScores(String, int) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Return docs and relevance scores, normalized on a scale from 0 to 1.
innerSimilaritySearchWithRelevanceScores(String, int) - Method in class com.hw.langchain.vectorstores.milvus.Milvus
 
innerSimilaritySearchWithRelevanceScores(String, int) - Method in class com.hw.langchain.vectorstores.pinecone.Pinecone
 
innerSplitText(String, List<String>) - Method in class com.hw.langchain.text.splitter.RecursiveCharacterTextSplitter
Split incoming text and return chunks.
inputKey - Variable in class com.hw.langchain.chains.combine.documents.base.BaseCombineDocumentsChain
 
inputKey - Variable in class com.hw.langchain.chains.conversation.base.ConversationChain
 
inputKey - Variable in class com.hw.langchain.memory.chat.memory.BaseChatMemory
 
inputKeys() - Method in class com.hw.langchain.agents.agent.Agent
 
inputKeys() - Method in class com.hw.langchain.agents.agent.AgentExecutor
Return the input keys.
inputKeys() - Method in class com.hw.langchain.agents.agent.BaseSingleActionAgent
Return the input keys.
inputKeys() - Method in class com.hw.langchain.chains.api.base.ApiChain
 
inputKeys() - Method in class com.hw.langchain.chains.base.Chain
Retrieves the list of input keys that this chain expects.
inputKeys() - Method in class com.hw.langchain.chains.combine.documents.base.BaseCombineDocumentsChain
 
inputKeys() - Method in class com.hw.langchain.chains.conversation.base.ConversationChain
Use this since so some prompt vars come from history."
inputKeys() - Method in class com.hw.langchain.chains.llm.LLMChain
Will be whatever keys the prompt expects.
inputKeys() - Method in class com.hw.langchain.chains.llm.math.base.LLMMathChain
Expect input key.
inputKeys() - Method in class com.hw.langchain.chains.retrieval.qa.base.BaseRetrievalQA
 
inputKeys() - Method in class com.hw.langchain.chains.sql.database.base.SQLDatabaseChain
Return the singular input key.
inputKeys() - Method in class com.hw.langchain.chains.sql.database.base.SQLDatabaseSequentialChain
Return the singular input key.
inputVariables - Variable in class com.hw.langchain.prompts.base.BasePromptTemplate
A list of the names of the variables the prompt template expects.
inputVariables() - Method in class com.hw.langchain.prompts.chat.BaseMessagePromptTemplate
Input variables for this prompt template.
inputVariables() - Method in class com.hw.langchain.prompts.chat.BaseStringMessagePromptTemplate
 
inputVariables() - Method in class com.hw.langchain.prompts.chat.MessagesPlaceholder
 
interceptorList - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
list of okhttp interceptor
InvalidTool - Class in com.hw.langchain.agents.tools
Tool that is run when invalid tool name is encountered by agent.
InvalidTool() - Constructor for class com.hw.langchain.agents.tools.InvalidTool
 
isChatModel(BaseLanguageModel) - Static method in class com.hw.langchain.chains.prompt.selector.PromptSelectorUtils
Check if the language model is a chat model.
isLLM(BaseLanguageModel) - Static method in class com.hw.langchain.chains.prompt.selector.PromptSelectorUtils
Check if the language model is a LLM.
isSendToLlm() - Method in exception com.hw.langchain.schema.OutputParserException
 
isSingleInput() - Method in class com.hw.langchain.tools.base.BaseTool
Whether the tool only accepts a single input.

J

Json - Class in com.hw.langchain.output.parsers.json
 
JsonUtils - Class in com.hw.langchain.chains.query.constructor
 

K

keepSeparator - Variable in class com.hw.langchain.text.splitter.TextSplitter
Whether or not to keep the separator in the chunks.

L

LangChainException - Exception in com.hw.langchain.exception
LangChainException
LangChainException(String) - Constructor for exception com.hw.langchain.exception.LangChainException
Creates a new Exception with the given message and null as the cause.
LangChainException(String, Object...) - Constructor for exception com.hw.langchain.exception.LangChainException
Creates a new LangChainException with the given formatted message and arguments.
LangChainException(String, Throwable) - Constructor for exception com.hw.langchain.exception.LangChainException
Creates a new exception with the given message and cause.
LangChainException(Throwable) - Constructor for exception com.hw.langchain.exception.LangChainException
Creates a new exception with a null message and the given cause.
lengthFunction - Variable in class com.hw.langchain.text.splitter.TextSplitter
Function that measures the length of given chunks.
LIKE - Enum constant in enum class com.hw.langchain.chains.query.constructor.ir.Comparator
 
LineType - Class in com.hw.langchain.text.splitter
Line type as typed dict.
LineType(String, Map<String, Object>) - Constructor for class com.hw.langchain.text.splitter.LineType
Create a new LineType.
ListOutputParser - Class in com.hw.langchain.output.parsers.list
Class to parse the output of an LLM call to a list.
ListOutputParser() - Constructor for class com.hw.langchain.output.parsers.list.ListOutputParser
 
listToArray(List<List<T>>) - Static method in class com.hw.langchain.vectorstores.utils.ArrayUtils
 
llm - Variable in class com.hw.langchain.chains.llm.LLMChain
 
LLM - Class in com.hw.langchain.chat.models.base
Base LLM abstract class.
LLM() - Constructor for class com.hw.langchain.chat.models.base.LLM
 
LLMChain - Class in com.hw.langchain.chains.llm
Chain to run queries against LLMs
LLMChain(BaseLanguageModel, BasePromptTemplate) - Constructor for class com.hw.langchain.chains.llm.LLMChain
 
LLMChain(BaseLanguageModel, BasePromptTemplate, String) - Constructor for class com.hw.langchain.chains.llm.LLMChain
 
LLMMathChain - Class in com.hw.langchain.chains.llm.math.base
Chain that interprets a prompt and executes python code to do math.
LLMMathChain() - Constructor for class com.hw.langchain.chains.llm.math.base.LLMMathChain
 
LLMMathChain(LLMChain) - Constructor for class com.hw.langchain.chains.llm.math.base.LLMMathChain
 
llmPrefix() - Method in class com.hw.langchain.agents.agent.Agent
Prefix to append the LLM call with.
llmPrefix() - Method in class com.hw.langchain.agents.chat.base.ChatAgent
 
llmPrefix() - Method in class com.hw.langchain.agents.mrkl.base.ZeroShotAgent
 
LLMResult - Class in com.hw.langchain.schema
Class that contains all relevant information for an LLM Result.
LLMResult(List<? extends List<? extends Generation>>) - Constructor for class com.hw.langchain.schema.LLMResult
 
LLMResult(List<? extends List<? extends Generation>>, Map<String, Object>) - Constructor for class com.hw.langchain.schema.LLMResult
 
llmType() - Method in class com.hw.langchain.chat.models.base.BaseChatModel
Return type of chat model.
llmType() - Method in class com.hw.langchain.chat.models.openai.ChatOpenAI
 
llmType() - Method in class com.hw.langchain.llms.base.BaseLLM
Return type of llm.
llmType() - Method in class com.hw.langchain.llms.chatglm.ChatGLM
 
llmType() - Method in class com.hw.langchain.llms.ollama.Ollama
 
llmType() - Method in class com.hw.langchain.llms.openai.BaseOpenAI
 
llmType() - Method in class com.hw.langchain.llms.openai.OpenAIChat
 
load() - Method in class com.hw.langchain.document.loaders.base.BaseLoader
Load data into document objects.
load() - Method in class com.hw.langchain.document.loaders.directory.DirectoryLoader
 
load() - Method in class com.hw.langchain.document.loaders.notion.NotionDirectoryLoader
 
load() - Method in class com.hw.langchain.document.loaders.text.TextLoader
Load from file path.
load() - Method in class com.hw.langchain.document.loaders.WebBaseLoader
 
loadAgent(String, Map<String, Object>) - Static method in class com.hw.langchain.agents.loading.Loading
Unified method for loading a agent from LangChainHub or local fs.
Loading - Class in com.hw.langchain.agents.loading
 
Loading() - Constructor for class com.hw.langchain.agents.loading.Loading
 
loadMemoryVariables(Map<String, Object>) - Method in class com.hw.langchain.memory.buffer.ConversationBufferMemory
Return history buffer.
loadMemoryVariables(Map<String, Object>) - Method in interface com.hw.langchain.schema.BaseMemory
Return key-value pairs given the text input to the chain.
loadMessage(String) - Method in interface com.hw.langchain.memory.chat.message.histories.database.ChatMessageRepository
Loads all historical chat messages for the given sessionId.
loadMessage(String) - Method in class com.hw.langchain.memory.chat.message.histories.database.redis.RedisChatMessageRepository
 
loadQaChain(BaseLanguageModel) - Static method in class com.hw.langchain.chains.question.answering.Init
 
loadQaChain(BaseLanguageModel, ChainType) - Static method in class com.hw.langchain.chains.question.answering.Init
 
loadQueryConstructorChain(BaseLanguageModel, String, List<AttributeInfo>, List<Map<String, Object>>, List<Comparator>, List<Operator>, boolean) - Static method in class com.hw.langchain.chains.query.constructor.base.BaseUtils
Load a query constructor chain.
loadStuffChain(BaseLanguageModel) - Static method in class com.hw.langchain.chains.question.answering.Init
 
loadStuffChain(BaseLanguageModel) - Static method in class com.hw.langchain.chains.summarize.SummarizeUtils
 
loadStuffChain(BaseLanguageModel, BasePromptTemplate, String) - Static method in class com.hw.langchain.chains.question.answering.Init
 
loadStuffChain(BaseLanguageModel, BasePromptTemplate, String, String) - Static method in class com.hw.langchain.chains.summarize.SummarizeUtils
 
loadTools(List<String>, BaseLanguageModel) - Static method in class com.hw.langchain.agents.load.tools.LoadTools
 
loadTools(List<String>, BaseLanguageModel, Map<String, Object>) - Static method in class com.hw.langchain.agents.load.tools.LoadTools
Load tools based on their name.
LoadTools - Class in com.hw.langchain.agents.load.tools
Load tools.
LoadTools() - Constructor for class com.hw.langchain.agents.load.tools.LoadTools
 
logitBias - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Adjust the probability of specific tokens being generated.
logitBias - Variable in class com.hw.langchain.llms.openai.OpenAIChat
Adjust the probability of specific tokens being generated.
LT - Enum constant in enum class com.hw.langchain.chains.query.constructor.ir.Comparator
 
LTE - Enum constant in enum class com.hw.langchain.chains.query.constructor.ir.Comparator
 

M

MAP_REDUCE - Enum constant in enum class com.hw.langchain.chains.ChainType
Chain type for "map_reduce".
MAP_RERANK - Enum constant in enum class com.hw.langchain.chains.ChainType
Chain type for "map_rerank".
MapReducePrompt - Class in com.hw.langchain.chains.summarize
 
MARIADB_PROMPT - Static variable in class com.hw.langchain.chains.sql.database.prompt.Prompt
 
MarkdownHeaderTextSplitter - Class in com.hw.langchain.text.splitter
Implementation of splitting markdown files based on specified headers.
MarkdownHeaderTextSplitter(List<Pair<String, String>>) - Constructor for class com.hw.langchain.text.splitter.MarkdownHeaderTextSplitter
 
MarkdownHeaderTextSplitter(List<Pair<String, String>>, boolean) - Constructor for class com.hw.langchain.text.splitter.MarkdownHeaderTextSplitter
 
MathUtils - Class in com.hw.langchain.math.utils
Math utils.
maximalMarginalRelevance(INDArray, List<List<Float>>, int, float) - Static method in class com.hw.langchain.vectorstores.utils.Utils
Calculate maximal marginal relevance.
maxMarginalRelevanceSearch(String) - Method in class com.hw.langchain.vectorstores.base.VectorStore
 
maxMarginalRelevanceSearch(String, int, int, float) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Return docs selected using the maximal marginal relevance.
maxMarginalRelevanceSearch(String, int, int, float) - Method in class com.hw.langchain.vectorstores.milvus.Milvus
 
maxMarginalRelevanceSearch(String, int, int, float) - Method in class com.hw.langchain.vectorstores.pinecone.Pinecone
 
maxMarginalRelevanceSearchByVector(List<Float>) - Method in class com.hw.langchain.vectorstores.base.VectorStore
 
maxMarginalRelevanceSearchByVector(List<Float>, int, int, float) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Return docs selected using the maximal marginal relevance.
maxMarginalRelevanceSearchByVector(List<Float>, int, int, float) - Method in class com.hw.langchain.vectorstores.milvus.Milvus
 
maxMarginalRelevanceSearchByVector(List<Float>, int, int, float) - Method in class com.hw.langchain.vectorstores.pinecone.Pinecone
 
maxRetries - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
Maximum number of retries to make when generating.
maxRetries - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Maximum number of retries to make when generating.
maxRetries - Variable in class com.hw.langchain.llms.openai.OpenAIChat
Maximum number of retries to make when generating.
maxTokens - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
Maximum number of tokens to generate.
maxTokens - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
The maximum number of tokens to generate in the completion.
maxTokens - Variable in class com.hw.langchain.llms.openai.OpenAIChat
The maximum number of tokens to generate in the completion.
memory - Variable in class com.hw.langchain.chains.base.Chain
 
MemoryMessagePicker - Interface in com.hw.langchain.memory.buffer
Since the token we input to LLM is limited, the history messages we add into gpt request is also limited.
memoryVariables() - Method in class com.hw.langchain.memory.buffer.ConversationBufferMemory
Will always return list of memory variables.
memoryVariables() - Method in interface com.hw.langchain.schema.BaseMemory
Input keys this memory class will load dynamically
mergePartialAndUserVariables(Map<String, Object>) - Method in class com.hw.langchain.prompts.base.BasePromptTemplate
Merge the partial variables and user variables into a single map.
mergeSplits(List<String>, String) - Method in class com.hw.langchain.text.splitter.TextSplitter
We now want to combine these smaller pieces into medium size chunks to send to the LLM.
message - Variable in class com.hw.langchain.schema.ChatGeneration
 
messages - Variable in class com.hw.langchain.schema.BaseChatMessageHistory
 
MessagesPlaceholder - Class in com.hw.langchain.prompts.chat
Prompt template that assumes variable is already list of messages.
MessagesPlaceholder(String) - Constructor for class com.hw.langchain.prompts.chat.MessagesPlaceholder
 
Milvus - Class in com.hw.langchain.vectorstores.milvus
Initialize wrapper around the milvus vector database.
Milvus() - Constructor for class com.hw.langchain.vectorstores.milvus.Milvus
 
MMR - Enum constant in enum class com.hw.langchain.vectorstores.base.SearchType
It is used to retrieve vectors using the maximum marginal relevance (MMR) algorithm
model - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
Model name to use.
model - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Model name to use.
model - Variable in class com.hw.langchain.llms.openai.OpenAIChat
Model name to use.
modelKwargs - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
Holds any model parameters valid for `create` call not explicitly specified.
MRKLOutputParser - Class in com.hw.langchain.agents.mrkl.output.parser
 
MRKLOutputParser() - Constructor for class com.hw.langchain.agents.mrkl.output.parser.MRKLOutputParser
 
MYSQL_PROMPT - Static variable in class com.hw.langchain.chains.sql.database.prompt.Prompt
 

N

n - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
Number of chat completions to generate for each prompt.
n - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
How many completions to generate for each prompt.
n - Variable in class com.hw.langchain.llms.openai.OpenAIChat
How many completions to generate for each prompt.
name - Variable in class com.hw.langchain.tools.base.BaseTool
The unique name of the tool that clearly communicates its purpose.
Nd4jUtils - Class in com.hw.langchain.vectorstores.utils
 
NoOpOutputParser - Class in com.hw.langchain.schema
Output parser that just returns the text as is.
NoOpOutputParser() - Constructor for class com.hw.langchain.schema.NoOpOutputParser
 
NOT - Enum constant in enum class com.hw.langchain.chains.query.constructor.ir.Operator
 
NotionDirectoryLoader - Class in com.hw.langchain.document.loaders.notion
Loader that loads Notion directory dump.
NotionDirectoryLoader(String) - Constructor for class com.hw.langchain.document.loaders.notion.NotionDirectoryLoader
 
num(int) - Method in class com.hw.langchain.utilities.GoogleSearchAPIWrapper.Builder
 

O

observationPrefix() - Method in class com.hw.langchain.agents.agent.Agent
Prefix to append the observation with.
observationPrefix() - Method in class com.hw.langchain.agents.chat.base.ChatAgent
 
observationPrefix() - Method in class com.hw.langchain.agents.mrkl.base.ZeroShotAgent
 
of(Map<String, Object>) - Static method in class com.hw.langchain.utilities.SerpAPIWrapper
 
Ollama - Class in com.hw.langchain.llms.ollama
Ollama locally run large language models.
Ollama() - Constructor for class com.hw.langchain.llms.ollama.Ollama
 
OllamaEmbeddings - Class in com.hw.langchain.embeddings.ollama
 
OllamaEmbeddings() - Constructor for class com.hw.langchain.embeddings.ollama.OllamaEmbeddings
 
OPEN_METEO_DOCS - Static variable in class com.hw.langchain.chains.api.meteo.OpenMeteoDocs
 
OpenAI - Class in com.hw.langchain.chat.models.openai
 
OpenAI - Class in com.hw.langchain.llms.openai
OpenAI
OpenAI() - Constructor for class com.hw.langchain.llms.openai.OpenAI
 
openaiApiBase - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
 
openaiApiBase - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Base URL for OpenAI API.
openaiApiBase - Variable in class com.hw.langchain.llms.openai.OpenAIChat
Base URL for OpenAI API.
openaiApiKey - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
Base URL path for API requests, leave blank if not using a proxy or service emulator.
openaiApiKey - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
API key for OpenAI.
openaiApiKey - Variable in class com.hw.langchain.llms.openai.OpenAIChat
API key for OpenAI.
openaiApiType - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
 
openaiApiType - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Api type for Azure OpenAI API.
openaiApiType - Variable in class com.hw.langchain.llms.openai.OpenAIChat
Api type for Azure OpenAI API.
openaiApiVersion - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
 
openaiApiVersion - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Api version for Azure OpenAI API.
openaiApiVersion - Variable in class com.hw.langchain.llms.openai.OpenAIChat
Api version for Azure OpenAI API.
OpenAIChat - Class in com.hw.langchain.llms.openai
Wrapper around OpenAI Chat large language models.
OpenAIChat() - Constructor for class com.hw.langchain.llms.openai.OpenAIChat
 
OpenAIEmbeddings - Class in com.hw.langchain.embeddings.openai
Wrapper around OpenAI embedding models.
OpenAIEmbeddings() - Constructor for class com.hw.langchain.embeddings.openai.OpenAIEmbeddings
 
openaiOrganization - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
 
openaiOrganization - Variable in class com.hw.langchain.embeddings.openai.OpenAIEmbeddings
 
openaiOrganization - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Organization ID for OpenAI.
openaiOrganization - Variable in class com.hw.langchain.llms.openai.OpenAIChat
Organization ID for OpenAI.
openaiProxy - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
To support explicit proxy for OpenAI.
openaiProxy - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Support explicit proxy for OpenAI
openaiProxy - Variable in class com.hw.langchain.llms.openai.OpenAIChat
Support explicit proxy for OpenAI
OpenMeteoDocs - Class in com.hw.langchain.chains.api.meteo
 
Operation - Class in com.hw.langchain.chains.query.constructor.ir
A logical operation over other directives.
Operation() - Constructor for class com.hw.langchain.chains.query.constructor.ir.Operation
 
Operator - Enum Class in com.hw.langchain.chains.query.constructor.ir
Enumerator of the operations.
OR - Enum constant in enum class com.hw.langchain.chains.query.constructor.ir.Operator
 
ORACLE_PROMPT - Static variable in class com.hw.langchain.chains.sql.database.prompt.Prompt
 
outputKey - Variable in class com.hw.langchain.chains.combine.documents.base.BaseCombineDocumentsChain
 
outputKey - Variable in class com.hw.langchain.chains.llm.LLMChain
 
outputKey - Variable in class com.hw.langchain.memory.chat.memory.BaseChatMemory
 
outputKeys() - Method in class com.hw.langchain.agents.agent.AgentExecutor
Return the singular output key.
outputKeys() - Method in class com.hw.langchain.chains.api.base.ApiChain
 
outputKeys() - Method in class com.hw.langchain.chains.base.Chain
Retrieves the list of output keys that this chain expects.
outputKeys() - Method in class com.hw.langchain.chains.combine.documents.base.BaseCombineDocumentsChain
 
outputKeys() - Method in class com.hw.langchain.chains.llm.LLMChain
Will always return text key.
outputKeys() - Method in class com.hw.langchain.chains.llm.math.base.LLMMathChain
Expect output key.
outputKeys() - Method in class com.hw.langchain.chains.retrieval.qa.base.BaseRetrievalQA
 
outputKeys() - Method in class com.hw.langchain.chains.sql.database.base.SQLDatabaseChain
Return the singular output key.
outputKeys() - Method in class com.hw.langchain.chains.sql.database.base.SQLDatabaseSequentialChain
Return the singular output key.
outputParser - Variable in class com.hw.langchain.chains.llm.LLMChain
Output parser to use.
outputParser - Variable in class com.hw.langchain.prompts.base.BasePromptTemplate
How to parse the output of calling an LLM on this formatted prompt.
OutputParserException - Exception in com.hw.langchain.schema
Exception that output parsers should raise to signify a parsing error.
OutputParserException(Object) - Constructor for exception com.hw.langchain.schema.OutputParserException
 
OutputParserException(Object, String, String, boolean) - Constructor for exception com.hw.langchain.schema.OutputParserException
 

P

parse(String) - Method in class com.hw.langchain.agents.chat.output.parser.ChatOutputParser
 
parse(String) - Method in class com.hw.langchain.agents.mrkl.output.parser.MRKLOutputParser
 
parse(String) - Method in class com.hw.langchain.chains.query.constructor.base.StructuredQueryOutputParser
 
parse(String) - Method in class com.hw.langchain.output.parsers.list.CommaSeparatedListOutputParser
 
parse(String) - Method in class com.hw.langchain.output.parsers.structured.StructuredOutputParser
 
parse(String) - Method in class com.hw.langchain.schema.BaseOutputParser
Parse the output of an LLM call.
parse(String) - Method in class com.hw.langchain.schema.NoOpOutputParser
 
parseAndCheckJsonMarkdown(String, List<String>) - Static method in class com.hw.langchain.output.parsers.json.Json
Parse a JSON string from a Markdown string and check that it contains the expected keys.
parseJsonMarkdown(String) - Static method in class com.hw.langchain.output.parsers.json.Json
Parse a JSON string from a Markdown string.
parseResult(List<? extends Generation>) - Method in class com.hw.langchain.schema.BaseLLMOutputParser
Parse LLM Result.
parseResult(List<? extends Generation>) - Method in class com.hw.langchain.schema.BaseOutputParser
 
parseWithPrompt(String, PromptValue) - Method in class com.hw.langchain.schema.BaseOutputParser
Optional method to parse the output of an LLM call with a prompt.
partialVariables - Variable in class com.hw.langchain.prompts.base.BasePromptTemplate
 
patch(String, Map<String, Object>) - Method in class com.hw.langchain.requests.Requests
 
patch(String, Map<String, Object>) - Method in class com.hw.langchain.requests.TextRequestsWrapper
 
pickMemoryMessage(List<BaseMessage>) - Method in class com.hw.langchain.memory.buffer.BufferWindowMemoryMessagePicker
 
pickMemoryMessage(List<BaseMessage>) - Method in interface com.hw.langchain.memory.buffer.MemoryMessagePicker
pick up memory messages as needed
Pinecone - Class in com.hw.langchain.vectorstores.pinecone
 
Pinecone() - Constructor for class com.hw.langchain.vectorstores.pinecone.Pinecone
 
PineconeTranslator - Class in com.hw.langchain.retrievers.self.query.pinecone
Logic for converting internal query language elements to valid filters.
PineconeTranslator() - Constructor for class com.hw.langchain.retrievers.self.query.pinecone.PineconeTranslator
 
plan(List<Pair<AgentAction, String>>, Map<String, Object>) - Method in class com.hw.langchain.agents.agent.Agent
 
plan(List<Pair<AgentAction, String>>, Map<String, Object>) - Method in class com.hw.langchain.agents.agent.BaseSingleActionAgent
Given input, decided what to do.
post(String, Map<String, Object>) - Method in class com.hw.langchain.requests.Requests
 
post(String, Map<String, Object>) - Method in class com.hw.langchain.requests.TextRequestsWrapper
 
POSTGRES_PROMPT - Static variable in class com.hw.langchain.chains.sql.database.prompt.Prompt
 
predict(String) - Method in interface com.hw.langchain.base.language.BaseLanguageModel
Predict text from text.
predict(String, List<String>) - Method in interface com.hw.langchain.base.language.BaseLanguageModel
Predict text from text.
predict(String, List<String>) - Method in class com.hw.langchain.chat.models.base.BaseChatModel
 
predict(String, List<String>) - Method in class com.hw.langchain.llms.base.BaseLLM
 
predict(Map<String, Object>) - Method in class com.hw.langchain.chains.llm.LLMChain
Format prompt with kwargs and pass to LLM.
predictAndParse(Map<String, Object>) - Method in class com.hw.langchain.chains.llm.LLMChain
Call predict and then parse the results.
predictMessages(List<BaseMessage>) - Method in interface com.hw.langchain.base.language.BaseLanguageModel
Predict message from messages.
predictMessages(List<BaseMessage>, List<String>) - Method in interface com.hw.langchain.base.language.BaseLanguageModel
Predict message from messages.
predictMessages(List<BaseMessage>, List<String>) - Method in class com.hw.langchain.chat.models.base.BaseChatModel
 
predictMessages(List<BaseMessage>, List<String>) - Method in class com.hw.langchain.llms.base.BaseLLM
 
PREFIX - Static variable in class com.hw.langchain.agents.mrkl.prompt.Prompt
 
prepInputs(Map<String, Object>) - Method in class com.hw.langchain.chains.base.Chain
Validate and prep inputs.
presencePenalty - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Penalizes repeated tokens.
presencePenalty - Variable in class com.hw.langchain.llms.openai.OpenAIChat
Penalizes repeated tokens.
processLLMResult(String) - Method in class com.hw.langchain.chains.llm.math.base.LLMMathChain
 
processOutput(AgentFinish, List<Pair<AgentAction, String>>) - Method in class com.hw.langchain.agents.agent.AgentExecutor
 
processResponse(JsonObject) - Static method in class com.hw.langchain.utilities.SerpAPIWrapper
 
prompt - Variable in class com.hw.langchain.chains.llm.LLMChain
Prompt object to use.
prompt - Variable in class com.hw.langchain.prompts.chat.BaseStringMessagePromptTemplate
 
Prompt - Class in com.hw.langchain.agents.chat.prompt
 
Prompt - Class in com.hw.langchain.agents.mrkl.prompt
 
Prompt - Class in com.hw.langchain.chains.api.prompt
 
Prompt - Class in com.hw.langchain.chains.conversation.prompt
 
Prompt - Class in com.hw.langchain.chains.llm.math.prompt
 
Prompt - Class in com.hw.langchain.chains.query.constructor.prompt
 
Prompt - Class in com.hw.langchain.chains.retrieval.qa.promt
 
Prompt - Class in com.hw.langchain.chains.sql.database.prompt
Prompt
Prompt() - Constructor for class com.hw.langchain.agents.chat.prompt.Prompt
 
Prompt() - Constructor for class com.hw.langchain.agents.mrkl.prompt.Prompt
 
Prompt() - Constructor for class com.hw.langchain.chains.conversation.prompt.Prompt
 
Prompt() - Constructor for class com.hw.langchain.chains.llm.math.prompt.Prompt
 
Prompt() - Constructor for class com.hw.langchain.chains.sql.database.prompt.Prompt
 
PROMPT - Static variable in class com.hw.langchain.chains.conversation.prompt.Prompt
 
PROMPT - Static variable in class com.hw.langchain.chains.llm.math.prompt.Prompt
 
PROMPT - Static variable in class com.hw.langchain.chains.question.answering.StuffPrompt
 
PROMPT - Static variable in class com.hw.langchain.chains.sql.database.prompt.Prompt
 
PROMPT - Static variable in class com.hw.langchain.chains.summarize.MapReducePrompt
 
PROMPT - Static variable in class com.hw.langchain.chains.summarize.RefinePrompt
 
PROMPT - Static variable in class com.hw.langchain.chains.summarize.StuffPrompt
 
PROMPT_SELECTOR - Static variable in class com.hw.langchain.chains.question.answering.StuffPrompt
 
PROMPT_TEMPLATE - Static variable in class com.hw.langchain.chains.retrieval.qa.promt.Prompt
 
promptLength(List<Document>, Map<String, Object>) - Method in class com.hw.langchain.chains.combine.documents.base.BaseCombineDocumentsChain
Return the prompt length given the documents passed in.
PromptSelectorUtils - Class in com.hw.langchain.chains.prompt.selector
 
PromptTemplate - Class in com.hw.langchain.prompts.prompt
Schema to represent a prompt for an LLM.
PromptTemplate(String, List<String>, BaseOutputParser<?>) - Constructor for class com.hw.langchain.prompts.prompt.PromptTemplate
 
PromptTemplate(String, List<String>, Map<String, Object>) - Constructor for class com.hw.langchain.prompts.prompt.PromptTemplate
 
PromptTemplate(List<String>, String) - Constructor for class com.hw.langchain.prompts.prompt.PromptTemplate
 
PromptValue - Interface in com.hw.langchain.schema
PromptValue
proxyPassword - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
the password for proxy authentication (optional)
proxyUsername - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
the username for proxy authentication (optional)
put(String, Map<String, Object>) - Method in class com.hw.langchain.requests.Requests
 
put(String, Map<String, Object>) - Method in class com.hw.langchain.requests.TextRequestsWrapper
 
PYDANTIC_FORMAT_INSTRUCTIONS - Static variable in class com.hw.langchain.output.parsers.FormatInstructions
 

R

REACT_DOCSTORE - Enum constant in enum class com.hw.langchain.agents.agent.types.AgentType
 
readTimeout(int) - Method in class com.hw.langchain.utilities.GoogleSearchAPIWrapper.Builder
 
RecursiveCharacterTextSplitter - Class in com.hw.langchain.text.splitter
Implementation of splitting text that looks at characters.
RecursiveCharacterTextSplitter() - Constructor for class com.hw.langchain.text.splitter.RecursiveCharacterTextSplitter
 
RedisChatMessageHistory - Class in com.hw.langchain.memory.chat.message.histories.database.redis
a simple wrapper for DataBaseChatMessageHistory with redisChatMessageRepository;
RedisChatMessageHistory(String, RedissonClient) - Constructor for class com.hw.langchain.memory.chat.message.histories.database.redis.RedisChatMessageHistory
 
RedisChatMessageHistory(String, RedissonClient, int) - Constructor for class com.hw.langchain.memory.chat.message.histories.database.redis.RedisChatMessageHistory
 
RedisChatMessageRepository - Class in com.hw.langchain.memory.chat.message.histories.database.redis
 
RedisChatMessageRepository(RedissonClient) - Constructor for class com.hw.langchain.memory.chat.message.histories.database.redis.RedisChatMessageRepository
 
RedisChatMessageRepository(RedissonClient, int) - Constructor for class com.hw.langchain.memory.chat.message.histories.database.redis.RedisChatMessageRepository
 
REFINE - Enum constant in enum class com.hw.langchain.chains.ChainType
Chain type for "refine".
REFINE_PROMPT - Static variable in class com.hw.langchain.chains.summarize.RefinePrompt
 
RefinePrompt - Class in com.hw.langchain.chains.summarize
 
Requests - Class in com.hw.langchain.requests
Wrapper around requests to handle auth and async.
Requests(Map<String, String>) - Constructor for class com.hw.langchain.requests.Requests
 
requestTimeout - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
Timeout for requests to OpenAI completion API.
requestTimeout - Variable in class com.hw.langchain.embeddings.openai.OpenAIEmbeddings
Timeout for requests to OpenAI completion API.
requestTimeout - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Timeout for requests to OpenAI completion API.
requestTimeout - Variable in class com.hw.langchain.llms.openai.OpenAIChat
Timeout for requests to OpenAI completion API.
Resilience4jRetryUtils - Class in com.hw.langchain.utils
 
ResourceBundleUtils - Class in com.hw.langchain.utils
 
ResourceBundleUtils() - Constructor for class com.hw.langchain.utils.ResourceBundleUtils
 
ResponseSchema - Class in com.hw.langchain.output.parsers.structured
 
ResponseSchema(String, String) - Constructor for class com.hw.langchain.output.parsers.structured.ResponseSchema
 
results(String, int) - Method in class com.hw.langchain.utilities.GoogleSearchAPIWrapper
Run query through GoogleSearch and return metadata.
RetrievalQa - Class in com.hw.langchain.chains.retrieval.qa.base
Chain for question-answering against an index.
RetrievalQa(BaseCombineDocumentsChain, BaseRetriever) - Constructor for class com.hw.langchain.chains.retrieval.qa.base.RetrievalQa
 
retryWithExponentialBackoff(int, Supplier<T>) - Static method in class com.hw.langchain.utils.Resilience4jRetryUtils
 
retryWithExponentialBackoff(int, Supplier<T>, Duration, double, Duration) - Static method in class com.hw.langchain.utils.Resilience4jRetryUtils
 
returnDirect - Variable in class com.hw.langchain.tools.base.BaseTool
Whether to return the tool's output directly.
returnFinalOnly - Variable in class com.hw.langchain.chains.llm.LLMChain
Whether to return only the final parsed result.
returnMessages - Variable in class com.hw.langchain.memory.chat.memory.BaseChatMemory
 
returnStoppedResponse(String, List<Pair<AgentAction, String>>, Map<String, ?>) - Method in class com.hw.langchain.agents.agent.Agent
 
returnStoppedResponse(String, List<Pair<AgentAction, String>>, Map<String, ?>) - Method in class com.hw.langchain.agents.agent.BaseSingleActionAgent
Return response when agent has been stopped due to max iterations.
returnValues() - Method in class com.hw.langchain.agents.agent.BaseSingleActionAgent
 
run(Object) - Method in class com.hw.langchain.chains.base.Chain
Run the chain as text in, text out
run(Object, Map<String, Object>) - Method in class com.hw.langchain.tools.base.BaseTool
Run the tool.
run(String) - Method in class com.hw.langchain.utilities.GoogleSearchAPIWrapper
Run a query through Google Search and parse the results.
run(String) - Method in class com.hw.langchain.utilities.SerpAPIWrapper
Run query through SerpAPI and parse result.
run(String, boolean) - Method in class com.hw.langchain.sql.database.SQLDatabase
Execute a SQL command and return a string representing the results.
run(Map<String, Object>) - Method in class com.hw.langchain.chains.base.Chain
Run the chain as multiple variables, text out.

S

saveContext(Map<String, Object>, Map<String, String>) - Method in class com.hw.langchain.memory.chat.memory.BaseChatMemory
 
saveContext(Map<String, Object>, Map<String, String>) - Method in interface com.hw.langchain.schema.BaseMemory
Save the context of this model run to memory.
saveMessage(String, BaseMessage) - Method in interface com.hw.langchain.memory.chat.message.histories.database.ChatMessageRepository
Saves a chat message to the specified sessionId.
saveMessage(String, BaseMessage) - Method in class com.hw.langchain.memory.chat.message.histories.database.redis.RedisChatMessageRepository
 
Schema - Class in com.hw.langchain.schema
 
Schema() - Constructor for class com.hw.langchain.schema.Schema
 
SCHEMA_WITH_LIMIT - Static variable in class com.hw.langchain.chains.query.constructor.prompt.Prompt
 
search(String, SearchType, Map<String, Object>) - Method in class com.hw.langchain.vectorstores.base.VectorStore
 
SearchType - Enum Class in com.hw.langchain.vectorstores.base
 
SELF_ASK_WITH_SEARCH - Enum constant in enum class com.hw.langchain.agents.agent.types.AgentType
 
SelfQueryRetriever - Class in com.hw.langchain.retrievers.self.query.base
Retriever that wraps around a vector store and uses an LLM to generate the vector store queries.
SelfQueryRetriever(VectorStore, LLMChain, Visitor, boolean) - Constructor for class com.hw.langchain.retrievers.self.query.base.SelfQueryRetriever
 
SelfQueryRetriever(VectorStore, LLMChain, SearchType, Map<String, Object>, Visitor, boolean) - Constructor for class com.hw.langchain.retrievers.self.query.base.SelfQueryRetriever
 
sendRequest(String, String, Map<String, Object>) - Method in class com.hw.langchain.requests.Requests
 
separator - Variable in class com.hw.langchain.text.splitter.CharacterTextSplitter
 
separators - Variable in class com.hw.langchain.text.splitter.RecursiveCharacterTextSplitter
 
SerpAPIWrapper - Class in com.hw.langchain.utilities
Wrapper around SerpAPI.
SerpAPIWrapper(Map<String, Object>) - Constructor for class com.hw.langchain.utilities.SerpAPIWrapper
 
setPrompt(StringPromptTemplate) - Method in class com.hw.langchain.prompts.chat.BaseStringMessagePromptTemplate
 
SIMILARITY - Enum constant in enum class com.hw.langchain.vectorstores.base.SearchType
It is used to retrieve vectors based on similarity.
SIMILARITY_SCORE_THRESHOLD - Enum constant in enum class com.hw.langchain.vectorstores.base.SearchType
It is used to retrieve vectors based on a similarity score threshold.
similaritySearch(String) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Returns the documents most similar to the given query.
similaritySearch(String, int, Map<String, Object>) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Returns the documents most similar to the given query.
similaritySearch(String, int, Map<String, Object>) - Method in class com.hw.langchain.vectorstores.milvus.Milvus
 
similaritySearch(String, int, Map<String, Object>) - Method in class com.hw.langchain.vectorstores.pinecone.Pinecone
Return pinecone documents most similar to query.
similaritySearch(String, Map<String, Object>) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Returns the documents most similar to the given query.
similaritySearchWithRelevanceScores(String) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Return docs and relevance scores in the range [0, 1].
similaritySearchWithRelevanceScores(String, int) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Return docs and relevance scores in the range [0, 1].
similarSearchByVector(List<Float>, int, Map<String, Object>) - Method in class com.hw.langchain.vectorstores.base.VectorStore
Return docs most similar to embedding vector.
similarSearchByVector(List<Float>, int, Map<String, Object>) - Method in class com.hw.langchain.vectorstores.milvus.Milvus
 
similarSearchByVector(List<Float>, int, Map<String, Object>) - Method in class com.hw.langchain.vectorstores.pinecone.Pinecone
 
splitDocuments(List<Document>) - Method in class com.hw.langchain.text.splitter.TextSplitter
Split documents.
splitText(String) - Method in class com.hw.langchain.text.splitter.CharacterTextSplitter
Split incoming text and return chunks.
splitText(String) - Method in class com.hw.langchain.text.splitter.MarkdownHeaderTextSplitter
Split markdown file.
splitText(String) - Method in class com.hw.langchain.text.splitter.RecursiveCharacterTextSplitter
 
splitText(String) - Method in class com.hw.langchain.text.splitter.TextSplitter
Split text into multiple components.
splitTextWithRegex(String, String, boolean) - Static method in class com.hw.langchain.text.splitter.TextSplitterUtils
 
splitWithSeparator(String, String) - Static method in class com.hw.langchain.text.splitter.TextSplitterUtils
Split the text by the occurrences of the separator, returning a list containing the resulting substrings and the separators.
SQL_PROMPTS - Static variable in class com.hw.langchain.chains.sql.database.prompt.Prompt
 
SQLDatabase - Class in com.hw.langchain.sql.database
SQLAlchemy wrapper around a database.
SQLDatabase(String, String, String) - Constructor for class com.hw.langchain.sql.database.SQLDatabase
 
SQLDatabase(String, String, String, List<String>, List<String>, int, boolean) - Constructor for class com.hw.langchain.sql.database.SQLDatabase
 
SQLDatabaseChain - Class in com.hw.langchain.chains.sql.database.base
Chain for interacting with SQL Database.
SQLDatabaseChain(LLMChain, SQLDatabase) - Constructor for class com.hw.langchain.chains.sql.database.base.SQLDatabaseChain
 
SQLDatabaseSequentialChain - Class in com.hw.langchain.chains.sql.database.base
Chain for querying SQL database that is a sequential chain.
SQLDatabaseSequentialChain(SQLDatabaseChain, LLMChain) - Constructor for class com.hw.langchain.chains.sql.database.base.SQLDatabaseSequentialChain
 
SQLITE_PROMPT - Static variable in class com.hw.langchain.chains.sql.database.prompt.Prompt
 
stop() - Method in class com.hw.langchain.agents.agent.Agent
 
stop() - Method in class com.hw.langchain.agents.chat.base.ChatAgent
 
stream - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
Whether to stream the results or not.
stream - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Whether to stream the results or not.
stream - Variable in class com.hw.langchain.llms.openai.OpenAIChat
Whether to stream the results or not.
streamResponseToGenerationChunk(String) - Static method in class com.hw.langchain.llms.ollama.Ollama
Convert a stream response to a generation chunk.
StringEnum<E extends Enum<E>> - Interface in com.hw.langchain.chains.query.constructor.ir
 
StringPromptTemplate - Class in com.hw.langchain.prompts.base
String prompt should expose the format method, returning a prompt.
StringPromptTemplate(List<String>) - Constructor for class com.hw.langchain.prompts.base.StringPromptTemplate
 
StringPromptTemplate(List<String>, BaseOutputParser<?>) - Constructor for class com.hw.langchain.prompts.base.StringPromptTemplate
 
StringPromptTemplate(List<String>, Map<String, Object>) - Constructor for class com.hw.langchain.prompts.base.StringPromptTemplate
 
StringPromptValue - Class in com.hw.langchain.prompts.base
StringPromptValue
StringPromptValue(String) - Constructor for class com.hw.langchain.prompts.base.StringPromptValue
 
STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION - Enum constant in enum class com.hw.langchain.agents.agent.types.AgentType
 
STRUCTURED_FORMAT_INSTRUCTIONS - Static variable in class com.hw.langchain.output.parsers.FormatInstructions
 
StructuredOutputParser - Class in com.hw.langchain.output.parsers.structured
 
StructuredOutputParser(List<ResponseSchema>) - Constructor for class com.hw.langchain.output.parsers.structured.StructuredOutputParser
 
StructuredQuery - Class in com.hw.langchain.chains.query.constructor.ir
 
StructuredQuery() - Constructor for class com.hw.langchain.chains.query.constructor.ir.StructuredQuery
 
StructuredQueryOutputParser - Class in com.hw.langchain.chains.query.constructor.base
 
StructuredQueryOutputParser() - Constructor for class com.hw.langchain.chains.query.constructor.base.StructuredQueryOutputParser
 
STUFF - Enum constant in enum class com.hw.langchain.chains.ChainType
Chain type for "stuff".
StuffDocumentsChain - Class in com.hw.langchain.chains.combine.documents.stuff
Chain that combines documents by stuffing into context.
StuffDocumentsChain(LLMChain, BasePromptTemplate, String, String) - Constructor for class com.hw.langchain.chains.combine.documents.stuff.StuffDocumentsChain
 
StuffDocumentsChain(LLMChain, String) - Constructor for class com.hw.langchain.chains.combine.documents.stuff.StuffDocumentsChain
 
StuffPrompt - Class in com.hw.langchain.chains.question.answering
 
StuffPrompt - Class in com.hw.langchain.chains.summarize
 
StuffUtils - Class in com.hw.langchain.chains.combine.documents.stuff
 
SUFFIX - Static variable in class com.hw.langchain.agents.mrkl.prompt.Prompt
 
SummarizeUtils - Class in com.hw.langchain.chains.summarize
 
SYSTEM_MESSAGE_PREFIX - Static variable in class com.hw.langchain.agents.chat.prompt.Prompt
 
SYSTEM_MESSAGE_SUFFIX - Static variable in class com.hw.langchain.agents.chat.prompt.Prompt
 
SystemMessage - Class in com.hw.langchain.schema
Type of message that is a system message.
SystemMessage(String) - Constructor for class com.hw.langchain.schema.SystemMessage
 
SystemMessagePromptTemplate - Class in com.hw.langchain.prompts.chat
 
SystemMessagePromptTemplate() - Constructor for class com.hw.langchain.prompts.chat.SystemMessagePromptTemplate
 

T

takeNextStep(Map<String, BaseTool>, Map<String, Object>, List<Pair<AgentAction, String>>) - Method in class com.hw.langchain.agents.agent.AgentExecutor
Take a single step in the thought-action-observation loop.
temperature - Variable in class com.hw.langchain.chat.models.openai.ChatOpenAI
What sampling temperature to use.
temperature - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
What sampling temperature to use.
temperature - Variable in class com.hw.langchain.llms.openai.OpenAIChat
What sampling temperature to use.
text - Variable in class com.hw.langchain.schema.Generation
Generated text output.
TextLoader - Class in com.hw.langchain.document.loaders.text
Load text files.
TextLoader(String) - Constructor for class com.hw.langchain.document.loaders.text.TextLoader
 
TextLoader(String, Charset, boolean) - Constructor for class com.hw.langchain.document.loaders.text.TextLoader
Load text files.
TextRequestsWrapper - Class in com.hw.langchain.requests
Lightweight wrapper around requests library.
TextRequestsWrapper(Map<String, String>) - Constructor for class com.hw.langchain.requests.TextRequestsWrapper
 
TextSplitter - Class in com.hw.langchain.text.splitter
Interface for splitting text into chunks.
TextSplitter() - Constructor for class com.hw.langchain.text.splitter.TextSplitter
 
TextSplitterUtils - Class in com.hw.langchain.text.splitter
 
ThreadPoolUtil - Class in com.hw.langchain.utils
 
toArgsAndKwargs(Object) - Method in class com.hw.langchain.tools.base.BaseTool
 
toArgsAndKwargs(Object) - Method in class com.hw.langchain.tools.base.Tool
 
toJsonStringWithIndent(Object) - Static method in class com.hw.langchain.chains.query.constructor.JsonUtils
 
toJsonStringWithIndent(Object, int) - Static method in class com.hw.langchain.chains.query.constructor.JsonUtils
 
toMap() - Method in class com.hw.langchain.schema.BaseMessage
 
toMessages() - Method in class com.hw.langchain.prompts.base.StringPromptValue
 
toMessages() - Method in class com.hw.langchain.prompts.chat.ChatPromptValue
 
toMessages() - Method in interface com.hw.langchain.schema.PromptValue
Return prompt as messages.
Tool - Class in com.hw.langchain.tools.base
Tool that takes in function or coroutine directly.
Tool(String, String, UnaryOperator<String>) - Constructor for class com.hw.langchain.tools.base.Tool
 
toolRunLoggingKwargs() - Method in class com.hw.langchain.agents.agent.Agent
 
toolRunLoggingKwargs() - Method in class com.hw.langchain.agents.agent.BaseSingleActionAgent
 
topP - Variable in class com.hw.langchain.llms.openai.BaseOpenAI
Total probability mass of tokens to consider at each step.
topP - Variable in class com.hw.langchain.llms.openai.OpenAIChat
Total probability mass of tokens to consider at each step.
toString() - Method in class com.hw.langchain.prompts.base.StringPromptValue
Return prompt as string.
toString() - Method in class com.hw.langchain.prompts.chat.ChatPromptValue
Return prompt as string.
toString() - Method in class com.hw.langchain.schema.AIMessage
 
toString() - Method in class com.hw.langchain.schema.HumanMessage
 
toString() - Method in class com.hw.langchain.schema.SystemMessage
 
transformDocuments(List<Document>, Map<String, Object>) - Method in interface com.hw.langchain.schema.BaseDocumentTransformer
Transform a list of documents.
transformDocuments(List<Document>, Map<String, Object>) - Method in class com.hw.langchain.text.splitter.TextSplitter
Transform sequence of documents by splitting them.
type() - Method in class com.hw.langchain.schema.AIMessage
 
type() - Method in class com.hw.langchain.schema.BaseMessage
Type of the message, used for serialization.
type() - Method in class com.hw.langchain.schema.ChatMessage
 
type() - Method in class com.hw.langchain.schema.FunctionMessage
 
type() - Method in class com.hw.langchain.schema.HumanMessage
 
type() - Method in class com.hw.langchain.schema.SystemMessage
 
Types - Class in com.hw.langchain.agents.types
 
Types() - Constructor for class com.hw.langchain.agents.types.Types
 

U

Utils - Class in com.hw.langchain.agents.utils
 
Utils - Class in com.hw.langchain.llms
 
Utils - Class in com.hw.langchain.output.parsers.list
 
Utils - Class in com.hw.langchain.utils
 
Utils - Class in com.hw.langchain.vectorstores.utils
Utility functions for working with vectors and vectorStores.
Utils() - Constructor for class com.hw.langchain.agents.utils.Utils
 
Utils() - Constructor for class com.hw.langchain.output.parsers.list.Utils
 
Utils() - Constructor for class com.hw.langchain.utils.Utils
 

V

validatePromptInputVariables() - Method in class com.hw.langchain.chains.conversation.base.ConversationChain
Validate that prompt input variables are consistent.
validateTools(List<BaseTool>) - Static method in class com.hw.langchain.agents.agent.Agent
Validate that appropriate tools are passed in.
validateTools(List<BaseTool>) - Static method in class com.hw.langchain.agents.chat.base.ChatAgent
 
validateTools(List<BaseTool>) - Static method in class com.hw.langchain.agents.mrkl.base.ZeroShotAgent
 
validateToolsSingleInput(String, List<BaseTool>) - Static method in class com.hw.langchain.agents.utils.Utils
 
value() - Method in enum class com.hw.langchain.chains.query.constructor.ir.Comparator
 
value() - Method in enum class com.hw.langchain.chains.query.constructor.ir.Operator
 
value() - Method in interface com.hw.langchain.chains.query.constructor.ir.StringEnum
Retrieves the string representation of the enum value.
valueOf(String) - Static method in enum class com.hw.langchain.agents.agent.types.AgentType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.hw.langchain.chains.ChainType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.hw.langchain.chains.query.constructor.ir.Comparator
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.hw.langchain.chains.query.constructor.ir.Operator
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.hw.langchain.vectorstores.base.SearchType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.hw.langchain.agents.agent.types.AgentType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.hw.langchain.chains.ChainType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.hw.langchain.chains.query.constructor.ir.Comparator
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.hw.langchain.chains.query.constructor.ir.Operator
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.hw.langchain.vectorstores.base.SearchType
Returns an array containing the constants of this enum class, in the order they are declared.
VectorStore - Class in com.hw.langchain.vectorstores.base
 
VectorStore() - Constructor for class com.hw.langchain.vectorstores.base.VectorStore
 
VectorStoreRetriever - Class in com.hw.langchain.vectorstores.base
 
VectorStoreRetriever(VectorStore, SearchType) - Constructor for class com.hw.langchain.vectorstores.base.VectorStoreRetriever
 
VectorStoreRetriever(VectorStore, SearchType, Map<String, Object>) - Constructor for class com.hw.langchain.vectorstores.base.VectorStoreRetriever
 
visitComparison(Comparison) - Method in class com.hw.langchain.chains.query.constructor.ir.Visitor
Translates a Comparison expression.
visitComparison(Comparison) - Method in class com.hw.langchain.retrievers.self.query.pinecone.PineconeTranslator
 
visitOperation(Operation) - Method in class com.hw.langchain.chains.query.constructor.ir.Visitor
Translates an Operation expression.
visitOperation(Operation) - Method in class com.hw.langchain.retrievers.self.query.pinecone.PineconeTranslator
 
Visitor - Class in com.hw.langchain.chains.query.constructor.ir
Defines interface for IR translation using visitor pattern.
Visitor(List<Comparator>, List<Operator>) - Constructor for class com.hw.langchain.chains.query.constructor.ir.Visitor
 
visitStructuredQuery(StructuredQuery) - Method in class com.hw.langchain.chains.query.constructor.ir.Visitor
Translates a StructuredQuery expression.
visitStructuredQuery(StructuredQuery) - Method in class com.hw.langchain.retrievers.self.query.pinecone.PineconeTranslator
 

W

WebBaseLoader - Class in com.hw.langchain.document.loaders
 
WebBaseLoader(List<String>) - Constructor for class com.hw.langchain.document.loaders.WebBaseLoader
 
writeValueAsString(Object) - Static method in class com.hw.langchain.chains.query.constructor.JsonUtils
 

Z

ZERO_SHOT_REACT_DESCRIPTION - Enum constant in enum class com.hw.langchain.agents.agent.types.AgentType
 
ZeroShotAgent - Class in com.hw.langchain.agents.mrkl.base
Agent for the MRKL chain.
ZeroShotAgent(LLMChain, List<String>) - Constructor for class com.hw.langchain.agents.mrkl.base.ZeroShotAgent
 
ZeroShotAgent(LLMChain, List<String>, AgentOutputParser) - Constructor for class com.hw.langchain.agents.mrkl.base.ZeroShotAgent
 
A B C D E F G H I J K L M N O P R S T U V W Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form