Giter Club home page Giter Club logo

promptdesk's Introduction


pypi docker docker pulls AGPLv3

A simple open-source prompt management platform.

The best way to build agents and prompt-based applications.

Explore the docs »

Available in: Python

⭐️ Why PromptDesk?

PromptDesk is 100% free and open-source minimalist tool to facilitate the creation, organization, integration, and evaluation of prompts, prompt-based applications, agents and Large Language Models (LLMs).

If you like this project, please consider giving this repo a ⭐️ star.

Alt Text

We recommend starting with the Quickstart guide. You can also jump straight to the Build Prompts or start integrating prompts in python with Integrate Prompts guides.

✨ Features

  • 👨‍💻 OpenAI-like minimalist prompt builder
  • 🥸 Prompt variable and logic support with Handlebars.js syntax
  • 📊 Complete audit log of all API calls
  • 🌐 Unlimited vendor-agnostic LLM API integrations
  • 📦 Environment variables support
  • 🚀 Easy to set up and integrate (5 minutes)
  • 👨‍💻 Community-driven

🚀 Getting Started

PromptDesk is available as a hosted web application and as a Docker image. You can get started immediately by visiting the PromptDesk Login and creating an account. Hosting is provided for free by the MongoDB and DigitalOcean Startup Programs.

Hosted Web Application

wget https://raw.githubusercontent.com/promptdesk/promptdesk/main/quickstart/docker-compose.yml

Start the Docker container:

docker compose up

Open your web browser and navigate to http://localhost:8080/ to access the PromptDesk application. Initial setup will require a valid OpenAI API key for installation testing purposes.

👨‍💻 Python Integration

To install PromptDesk, use pip:

pip install promptdesk

Usage

You can call the prompt you build in the application by using the generate method.

from promptdesk import PromptDesk

pd = PromptDesk(
    #defaults to os.environ.get("PROMPTDESK_API_KEY")
    api_key = "YOUR_PROMPTDESK_API_KEY"
    #defaults to https://app.promptdesk.ai
    service_url = "http://localhost:8080"
)

story = pd.generate("short-story", {
    "setting": "dark and stormy night",
    "character": "lonely farmer",
    "plot": "visited by a stranger"
})

print(story)

🔗 Important Links

For more information about PromptDesk, please refer to the following resources:

promptdesk's People

Contributors

justinmacorin avatar genixpro avatar bhuvaneshpatil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.