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.1.0.tar.gz (17.1 kB view hashes)

Uploaded Source

Built Distribution

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