Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SqueezeAILab/LLMCompiler
/ functions
Functions
245 in github.com/SqueezeAILab/LLMCompiler
⨍
Functions
245
◇
Types & classes
38
↓ 1 callers
Method
ingest_token
(self, token: str)
src/llm_compiler/planner.py:127
↓ 1 callers
Function
initialize_react_agent_executor
Load an agent executor given tools and LLM. Simplified version of langchain.agents.initialize.initialize_agent
src/react/base.py:44
↓ 1 callers
Function
is_number
(s)
src/utils/evaluation_utils.py:55
↓ 1 callers
Function
lower
(text)
src/utils/evaluation_utils.py:19
↓ 1 callers
Function
main
()
run_llm_compiler.py:129
↓ 1 callers
Method
parse
(self, text: str)
src/llm_compiler/output_parser.py:32
↓ 1 callers
Method
plan
( self, inputs: dict, is_replan: bool, callbacks: Callbacks = None, **kwargs: Any )
src/llm_compiler/planner.py:256
↓ 1 callers
Method
plan
Given input, decided what to do. Args: intermediate_steps: Steps the LLM has taken to date, along with observatio
src/agents/agent.py:99
↓ 1 callers
Method
prep_prompts
Prepare prompts from inputs.
src/chains/llm_chain.py:172
↓ 1 callers
Function
remove_articles
(text)
src/utils/evaluation_utils.py:9
↓ 1 callers
Function
remove_punc
(text)
src/utils/evaluation_utils.py:15
↓ 1 callers
Function
replace_min_max_functions
(expression)
src/chains/llm_math_chain.py:116
↓ 1 callers
Method
reset
(self)
src/callbacks/callbacks.py:29
↓ 1 callers
Method
reset_all_stats
(self)
src/llm_compiler/llm_compiler.py:128
↓ 1 callers
Function
run_llm_math_chain_factory
(llm_math_chain)
configs/parallelqa/tools.py:30
↓ 1 callers
Function
run_llm_math_chain_factory
(llm_math_chain)
configs/parallelqa_react/tools.py:7
↓ 1 callers
Method
save
Raise error - saving not supported for Agent Executors.
src/executors/agent_executor.py:147
↓ 1 callers
Method
schedule
Run all tasks in self.tasks in parallel, respecting dependencies.
src/llm_compiler/task_fetching_unit.py:124
↓ 1 callers
Function
white_space_fix
(text)
src/utils/evaluation_utils.py:12
Method
__call__
(self)
src/llm_compiler/task_fetching_unit.py:53
Method
__call__
Execute the chain. Args: inputs: Dictionary of inputs, or single input if chain expects only one param. Should co
src/chains/chain.py:239
Method
__init__
Initialize tool.
src/tools/base.py:190
Method
__init__
(self)
src/utils/logger_utils.py:12
Method
__init__
(self, tools: Sequence[Union[Tool, StructuredTool]])
src/llm_compiler/planner.py:93
Method
__init__
( self, queue: asyncio.Queue[Optional[str]], tools: Sequence[Union[Tool, StructuredToo
src/llm_compiler/planner.py:151
Method
__init__
( self, llm: BaseChatModel, example_prompt: str, example_prompt_replan: str,
src/llm_compiler/planner.py:191
Method
__init__
(self, llm: BaseLLM)
src/llm_compiler/llm_compiler.py:25
Method
__init__
Args: tools: List of tools to use. max_replans: Maximum number of replans to do. benchmark: Whether to co
src/llm_compiler/llm_compiler.py:50
Method
__init__
(self, tools: Sequence[Union[Tool, StructuredTool]], **kwargs)
src/llm_compiler/output_parser.py:28
Method
__init__
(self)
src/llm_compiler/task_fetching_unit.py:87
Method
__init__
(self, stream: bool = False)
src/callbacks/callbacks.py:48
Method
__init__
Check that wikipedia package is installed.
src/docstore/wikipedia.py:25
Method
__init__
Initialize with a docstore, and set initial document to None.
src/docstore/wikipedia.py:232
Method
_acall
( self, inputs: Dict[str, Any], run_manager: Optional[AsyncCallbackManagerForChainRun]
src/llm_compiler/llm_compiler.py:234
Method
_acall
Run text through and get agent response.
src/executors/agent_executor.py:487
Method
_acall
( self, inputs: Dict[str, str], run_manager: Optional[AsyncCallbackManagerForChainRun]
src/chains/llm_math_chain.py:270
Method
_acall
( self, inputs: Dict[str, Any], run_manager: Optional[AsyncCallbackManagerForChainRun]
src/chains/llm_chain.py:282
Method
_agent_type
Return Identifier of agent type.
src/agents/agent.py:56
Method
_agent_type
(self)
src/agents/structured_chat_agent.py:143
Method
_aperform_agent_action
( agent_action: AgentAction, )
src/executors/agent_executor.py:395
Method
_arun
Use the tool asynchronously.
src/tools/base.py:164
Method
_arun
Use the tool asynchronously.
src/tools/base.py:280
Method
_arun
( self, query: str, run_manager: Optional[AsyncCallbackManagerForToolRun] = None,
src/executors/agent_executor.py:49
Method
_arun
Use the tool asynchronously.
src/agents/tools.py:31
Method
_call
( self, inputs: Dict[str, Any], run_manager: Optional[CallbackManagerForChainRun] = No
src/llm_compiler/llm_compiler.py:227
Method
_call
Run text through and get agent response.
src/executors/agent_executor.py:439
Method
_call
( self, inputs: Dict[str, str], run_manager: Optional[CallbackManagerForChainRun] = No
src/chains/llm_math_chain.py:256
Method
_call
( self, inputs: Dict[str, Any], run_manager: Optional[CallbackManagerForChainRun] = No
src/chains/llm_chain.py:95
Method
_chain_type
(self)
src/chains/chain.py:138
Method
_chain_type
(self)
src/chains/llm_math_chain.py:285
Method
_chain_type
(self)
src/chains/llm_chain.py:386
Method
_construct_scratchpad
( self, intermediate_steps: List[Tuple[AgentAction, str]] )
src/agents/structured_chat_agent.py:44
Method
_fix_text
Fix the text.
src/agents/agent.py:78
Method
_get_default_output_parser
(cls, **kwargs: Any)
src/react/base.py:21
Function
_make_tool
(dec_func: Callable)
src/tools/base.py:414
Method
_paragraphs
(self)
src/docstore/wikipedia.py:292
Function
_partial
(func: Callable[[str], str])
src/tools/base.py:459
Method
_run
Use the tool.
src/tools/base.py:144
Method
_run
Use the tool.
src/tools/base.py:260
Method
_run
( self, query: str, run_manager: Optional[CallbackManagerForToolRun] = None, )
src/executors/agent_executor.py:42
Method
_run
Use the tool.
src/agents/tools.py:18
Method
_run_output_key
(self)
src/chains/chain.py:436
Method
_run_output_key
(self)
src/chains/llm_chain.py:265
Method
_stop
(self)
src/react/base.py:35
Method
_stop
(self)
src/agents/agent.py:83
Method
_stop
(self)
src/agents/structured_chat_agent.py:70
Method
_summary
(self)
src/docstore/wikipedia.py:288
Method
_to_args_and_kwargs
Convert tool input to pydantic model.
src/tools/base.py:132
Method
_type
(self)
src/react/output_parser.py:32
Method
_validate_tools
(cls, tools: Sequence[BaseTool])
src/react/base.py:25
Method
aapply_and_parse
Call apply and then parse the results.
src/chains/llm_chain.py:374
Method
ainvoke
( self, input: Union[str, Dict], config: Optional[RunnableConfig] = None, **kw
src/tools/base.py:239
Method
ainvoke
( self, input: Dict[str, Any], config: Optional[RunnableConfig] = None, **kwar
src/chains/chain.py:79
Method
apply
Call the chain on all inputs in the list.
src/chains/chain.py:645
Method
apply_and_parse
Call apply and then parse the results.
src/chains/llm_chain.py:352
Method
apredict_and_parse
Call apredict and then parse the results.
src/chains/llm_chain.py:338
Method
args
The tool's input arguments.
src/tools/base.py:124
Method
args
The tool's input arguments.
src/tools/base.py:256
Method
asearch
Search for a term in the docstore, and if found save.
src/docstore/wikipedia.py:255
Function
compute_function
(match)
src/chains/llm_math_chain.py:78
Function
decorator_time_it
Time a function.
src/utils/time_utils.py:19
Method
from_function
Create tool from a given function. A classmethod that helps to create a tool from a function. Args: func: The function f
src/tools/base.py:308
Method
from_llm_and_tools
Construct an agent from an LLM and tools.
src/agents/structured_chat_agent.py:103
Method
from_string
Create LLMChain from LLM and template.
src/chains/llm_chain.py:390
Function
generate_tools
(args)
configs/movie_react/tools.py:5
Function
generate_tools
(args, model_name)
configs/parallelqa/tools.py:81
Function
generate_tools
(args, model_name)
configs/parallelqa_react/tools.py:32
Function
generate_tools
(args)
configs/movie/tools.py:5
Function
get_logger
()
src/utils/logger_utils.py:46
Method
get_results
(self, key: str)
src/utils/logger_utils.py:31
Method
get_stats
(self)
src/callbacks/callbacks.py:93
Method
input_keys
(self)
src/llm_compiler/llm_compiler.py:135
Method
input_keys
Return the input keys. :meta private:
src/executors/agent_executor.py:178
Method
input_keys
Keys expected to be in the chain input.
src/chains/chain.py:171
Method
input_keys
Expect input key. :meta private:
src/chains/llm_math_chain.py:173
Method
input_keys
Will be whatever keys the prompt expects. :meta private:
src/chains/llm_chain.py:77
Method
input_keys
Return the input keys. :meta private:
src/agents/agent.py:171
Method
invoke
( self, input: Dict[str, Any], config: Optional[RunnableConfig] = None, **kwar
src/chains/chain.py:63
Method
iter
Enables iteration over steps taken to reach final output.
src/executors/agent_executor.py:159
Method
lc_serializable
(self)
src/chains/llm_chain.py:53
← previous
next →
101–200 of 245, ranked by callers