llama-index agent llm compiler integration
Project description
LlamaIndex Agent Integration: LLM Compiler
This Agent integration implements the LLMCompiler agent paper.
A lot of code came from the source repo, we repurposed with LlamaIndex abstractions. All credits to the original authors for a great work!
A full notebook guide can be found here.
Usage
First install the package:
pip install llama-index-agent-llm-compiler
# setup pack arguments
from llama_index.core.agent import AgentRunner
from llama_index.agent.llm_compiler.step import LLMCompilerAgentWorker
agent_worker = LLMCompilerAgentWorker.from_tools(
tools, llm=llm, verbose=True, callback_manager=callback_manager
)
agent = AgentRunner(agent_worker, callback_manager=callback_manager)
# start using the agent
response = agent.chat("What is (121 * 3) + 42?")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for llama_index_agent_llm_compiler-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce877fc9f41ad1242a6b79c172e1854e52499d123bc9de09381d58f06e7063cc |
|
MD5 | 8c14e3be727f8e6f8cf57f09a26a4b14 |
|
BLAKE2b-256 | c016b2d88ec85406a48986e2e984cbd7b2c1b4d9bc7c4c84b86262ac38ff7083 |
Close
Hashes for llama_index_agent_llm_compiler-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70d477efad65508589fe55d07d9f1ce5fce5f25681084e20ce634bf31c450425 |
|
MD5 | 8bec784591b72ec7a16809ff07876bd1 |
|
BLAKE2b-256 | dab238eeb9233f7d9c931059b204ccdfe369525dacb30f8555b8ce44f4f8c6ac |