Skip to main content

An open-source prompt engineering framework.

Project description

Lilypad

[!WARNING] Project is in alpha phase

This means that things like the user interface, database schemas, etc. are still subject to change. We do not yet recommend fully relying on this project in production, but we've found it works quite well for local development in its current stage.

An open-source prompt engineering framework built on these principles:

  • Prompt engineering is an optimization process, which requires...
  • Automatic versioning and tracing
  • Developer-centric prompt template editor
  • Proper syncing between prompts and code

[!IMPORTANT] We're looking for early design partners!

We are also working on tooling for improved collaboration between technical and non-technical team members. This is particularly important for involving domain experts who may not have the technical chops to contribute to a code base.

If you're interested, join our community and DM William Bakst :)

There are limited spots.

30 Second Quickstart

Install Lilypad, specifying the provider(s) you intend to use, and set your API key:

pip install "python-lilypad[openai]"

export OPENAI_API_KEY=XXXXX

Create your first synced prompt to recommend a book.

For example, you could use the prompt Recommend a fantasy book:

lilypad start                  # initialize local project
lilypad create recommend_book  # creates a synced LLM function
lilypad run recommend_book     # runs the function (and opens editor)

Once you hit "Submit" you'll see the function run in your shell. Follow the link to see the version and trace in an interactive UI.

Next, try editing the function signature to take a genre: str argument. When you run the function again it will open the editor and give you access to the {genre} template variable (with autocomplete).

Usage

We are actively working on this library and it's documentation, which you can find here

Versioning

Lilypad uses Semantic Versioning

License

This project is currently licensed under the terms of the MIT License; however, we expect certain future features to be licensed separately, which we will make extremely clear and evident.

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

python_lilypad-0.0.4.tar.gz (337.1 kB view details)

Uploaded Source

Built Distribution

python_lilypad-0.0.4-py3-none-any.whl (349.3 kB view details)

Uploaded Python 3

File details

Details for the file python_lilypad-0.0.4.tar.gz.

File metadata

  • Download URL: python_lilypad-0.0.4.tar.gz
  • Upload date:
  • Size: 337.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for python_lilypad-0.0.4.tar.gz
Algorithm Hash digest
SHA256 217d1c88eda6f71093b9e1c44233a581e9e63b5e64644ab3f4b0d9367732ca97
MD5 f1efbaf0b75c7b66f0a6487b56f1d736
BLAKE2b-256 0eceb9d85478fbe2322e722b8a66136dfbbce65d4d347009d148d11aa831db62

See more details on using hashes here.

File details

Details for the file python_lilypad-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for python_lilypad-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 294de63df9eb5cdc93fe29e95b58816dd2ab146b4dcf925c178535c03d016b6a
MD5 82cd47107c4e94ccb68092ac3f65a6e6
BLAKE2b-256 9a0b216f82c80420d8ec8b7f33c66e1afb2ea8f8bf048fb98cd8ddb7f33c0b5b

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