Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_agent_llm_compiler-0.3.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_agent_llm_compiler-0.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_agent_llm_compiler-0.3.0.tar.gz
Algorithm Hash digest
SHA256 510c1fe4f54f94e57f774b2a02d22c4dbd91031571d4e586ad81fc80c8dc8323
MD5 3567e2333a1b9e8b991e57c7402e26d7
BLAKE2b-256 f338446e9030458e878d76ffe518b16b2171c494cd08286d24916f106d07611b

See more details on using hashes here.

File details

Details for the file llama_index_agent_llm_compiler-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_agent_llm_compiler-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3401eb13bd3bac4e2f7dfa76ac88e2d3db49d8b2a1c771c313f62485b2c56225
MD5 017553ef43920fa7df57105f0173ec9e
BLAKE2b-256 482cbb06520bc5e89c3a80d8539967766bfd421c19802769f3c2bdcd38ffa4d0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page