Skip to main content

A event sourcing framework for building large language model applications

Project description

🧶 Pyloom

🪡 A event sourcing framework for building large language model applications 🪡

Pyloom is a framework designed to streamline the development of intricate LLM applications. Drawing inspiration from event sourcing, Pyloom applies this concept to the LLM agent development, offering a range of powerful features that enables better dev experience.

Developing intricate and non-deterministic LLM agents involves making multiple LLM calls and intricate control structures, similar to constructing a Marble Machine (🔮). If an error arises, developers are frequently compelled to rerun the entire agent workflow. Developers care not only the agent's final outcome but also the steps it takes to arrive there. At times, We want to see how tweaks like extra tools or adjusted prompts in-between can affect the final outcome.

Pyloom is crafted to address these challenges.

Features

  • "Git for Agent": Pyloom tracks state changes and the evolution of the agent at each step.
  • Agent Replay: With Pyloom, developers can replay and navigate through the agent's flow. Once encouter an error in the agent flow, you can fix the issue and restart from the exact point of failure.
  • Event Sourcing: Pyloom employs event sourcing, representing agent actions as events. By replaying the event stream, the agent's state can be reconstructed. Furthermore, developer can apply the same event streams to different agents and compare performance.
  • Reproduce Production Issues: Leveraging event sourcing, Pyloom facilitates the reproducing of production errors by replaying the identical event streams in development environment.

Pyloom can be used with other LLM frameworks like langchain and guidance.

Installation

You can install Pyloom using pip:

pip install pyloom

Quick Start

Contributing

We are extremely open to contributions in various forms: bug fixes, new features, improved documentation, and pull requests. Your input is valuable to us!

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

pyloom-0.0.3.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

pyloom-0.0.3-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file pyloom-0.0.3.tar.gz.

File metadata

  • Download URL: pyloom-0.0.3.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.2 Darwin/22.5.0

File hashes

Hashes for pyloom-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4c3e05ffcbe59ebaad4e65c85958fa8711b198763712e54ae863e9c43859dad5
MD5 e779f52e277493dac275a0f577a76258
BLAKE2b-256 d425c11c005ef647afe1ad01983a8b51230ef43186cdb0a304ec2c2007382b1b

See more details on using hashes here.

File details

Details for the file pyloom-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyloom-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.2 Darwin/22.5.0

File hashes

Hashes for pyloom-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8e96e83712607473a1d94b217ee32c8192a708fad242f41f69d396677623e5f2
MD5 d3942e192399b421ca7a7d7b4e92eb16
BLAKE2b-256 93085cfb4d3cf3e091f805a0791a2f43af3846acd458a1011086cece76e432fb

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