Skip to main content

Prompt Engineering and Dev-Ops toolkits. A faster way to build and manage applications powered by Language Models.

Project description

Hello, I'm PDX 👋

PDX is a framework for prompt engineering and a dev-ops toolkit.

At the core, it provides a mental-model on how to build and manage agents. An agent is a collection of prompts and/or prompt templates with information that is used to interact with the Language Models.

Documentation: pdxlabs.io/docs

Website: pdxlabs.io

Quickstart: create-an-agent

Installation

pip install pdx

Quickstart

To create your first agent, run the following command:

pdx create my_first_agent

Run and test out the agent by running:

pdx test my_first_agent --verbose

More information here: PDX - Main Concepts

Why use PDX?

  • 🗃️ Low dependency footprint -> ease of production deployment and maintainance.
  • 📂 Mental model to separate prompt templates from the application code. (Similar to Flask blueprint or FastAPI router).
  • 📌 Version control the prompts along with their evaluation metrics.
  • 📸 Logging and tracing of inputs, prompt render, and model response made easy.
  • 🧯 Standardize Error handling and logging.
  • 💾 Caching for lowering latency. (Coming soon)
  • 📊 Observability out-of-the-box. (Coming soon)
  • 📩 Log feedback of the user. (Coming soon)
  • 🛎️ A/B testing of prompts. (Coming soon)

Demos

Check our the demos in the demos repository.

Models (APIs) currently supported:

  • OpenAI
  • Anthropic

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

pdx-0.7.0.tar.gz (23.9 kB view hashes)

Uploaded Source

Built Distribution

pdx-0.7.0-py3-none-any.whl (37.4 kB view hashes)

Uploaded Python 3

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