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!

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.1.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_agent_llm_compiler-0.3.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_agent_llm_compiler-0.3.1.tar.gz
Algorithm Hash digest
SHA256 af2e25b78a721b1edd3124ddb5588aab912dc357fed1ab9818a659db8270969d
MD5 f3cd2c0569f86b7e8c62dbe2cf43d8e0
BLAKE2b-256 c264475cf0ff44c9d6b4191f0fc68cc63fc8d093e4f184142e3835f03b1e4f41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_agent_llm_compiler-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a620490ca3dc5a95ffa42534e05ed57b014c2f7b54db00a3d88ff717ef11eeb
MD5 ba5539a7a91de6be23e12ab22192bc1a
BLAKE2b-256 b17aeb8fe7a22f9cec0758d16cc5bd9afb12f53a3f36d5fd0014d2524c2bfb7f

See more details on using hashes here.

Supported by

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