pdx-labs / pdx

Prompt Engineering and Dev-Ops toolkit for applications powered by Language Models

Home Page:https://pdxlabs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

Check our the demos in the demos repository.

Models (APIs) currently supported:

  • OpenAI
  • Anthropic
  • Cohere
  • Eleven Labs

About

Prompt Engineering and Dev-Ops toolkit for applications powered by Language Models

https://pdxlabs.io

License:Apache License 2.0


Languages

Language:Python 99.8%Language:Jinja 0.1%Language:Makefile 0.1%