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.2.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.2-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.2.tar.gz.

File metadata

File hashes

Hashes for llama_index_agent_llm_compiler-0.3.2.tar.gz
Algorithm Hash digest
SHA256 77edc9432b1d441a3760d23c35045131f10aaa4e483d17eaf90d5f84ec288967
MD5 d2254270a64c3f7bb4729c1f580be299
BLAKE2b-256 c39cbf6e50d544c6c9d5b8cc5dc947a9295c17a295b213585c0b5e98287fbe12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_agent_llm_compiler-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4d0f740d4f2b6f395f8f050b5633117040651b367b32657c327a69ca059af1ec
MD5 c128e1b7c82c29a4a7efe9cad201bf6c
BLAKE2b-256 a9ab39533307965d6c4f73d52523c5f93f9bdd81f126a2be1b99fd91f3f5084b

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