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
File details
Details for the file llama_index_agent_llm_compiler-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_agent_llm_compiler-0.3.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 510c1fe4f54f94e57f774b2a02d22c4dbd91031571d4e586ad81fc80c8dc8323 |
|
MD5 | 3567e2333a1b9e8b991e57c7402e26d7 |
|
BLAKE2b-256 | f338446e9030458e878d76ffe518b16b2171c494cd08286d24916f106d07611b |
File details
Details for the file llama_index_agent_llm_compiler-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_agent_llm_compiler-0.3.0-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3401eb13bd3bac4e2f7dfa76ac88e2d3db49d8b2a1c771c313f62485b2c56225 |
|
MD5 | 017553ef43920fa7df57105f0173ec9e |
|
BLAKE2b-256 | 482cbb06520bc5e89c3a80d8539967766bfd421c19802769f3c2bdcd38ffa4d0 |