<br />
<div align="center">
<a href="https://github.com/tsterbak/promptmage">
<img src="images/promptmage-logo.png" alt="PromptMage-Logo" width="120" height="120">
</a>
<h1 align="center">PromptMage</h1>
<p align="center">
simplifies the process of creating and managing LLM workflows as a self-hosted solution.
</p>
[![License](https://img.shields.io/github/license/tsterbak/promptmage?color=green)](https://github.com/tsterbak/promptmage/blob/main/LICENSE)
[![Monthly downloads](https://img.shields.io/pypi/dm/promptmage
)](https://pypi.org/project/promptmage/)
[![PyPI version](https://img.shields.io/pypi/v/promptmage)](https://pypi.org/project/promptmage/)
[![GitHub issues](https://img.shields.io/github/issues/tsterbak/promptmage)](https://github.com/tsterbak/promptmage/issues)
[![GitHub stars](https://img.shields.io/github/stars/tsterbak/promptmage)](https://github.com/tsterbak/promptmage/stargazers)
</div>
> [!WARNING]
> This application is currently in alpha state and under active development. Please be aware that the API and features may change at any time.
## About the Project
PromptMage is a python framework to simplify the development of complex, multi-step applications based on LLMs. It is designed to offer an intuitive interface that simplifies the process of creating and managing LLM workflows as a self-hosted solution. PromptMage facilitates prompt testing and comparison, and incorporates version control features to help users track the development of their prompts. Suitable for both small teams and large enterprises, PromptMage seeks to improve productivity and foster the practical use of LLM technology.
The approach with PromptMage is to provide a pragmatic solution that bridges the current gap in LLM workflow management. We aim to empower developers, researchers, and organizations by making LLM technology more accessible and manageable, thereby supporting the next wave of AI innovations.
![PromptMage](https://github.com/tsterbak/promptmage/blob/main/docs/images/screenshots/plaground-dark.png)
Take the [walkthrough](https://promptmage.io/walkthrough/) to see what you can do with PromptMage.
## Philosophy
- Integrate the prompt playground into your workflow for fast iteration
- Prompts as first-class citizens with version control and collaboration features
- Manual and automatic testing and validation of prompts
- Easy sharing of results with domain experts and stakeholders
- build-in, automatically created API with fastAPI for easy integration and deployment
- Type-hint everything for automatic inference and validation magic
## Projects using PromptMage
- [product-review-research](https://github.com/tsterbak/product-review-research): An AI webapp build with PromptMage to provide in-depth analysis for products by researching trustworthy online reviews.
## Getting Started
### Installation
To install promptmage, run the following command:
```bash
pip install promptmage
```
## Usage
To use promptmage, run the following command:
```bash
promptmage run <path-to-flow>
```
This will start the local promptmage server and run the flow at the given path. You can now access the promptmage interface at `http://localhost:8000/gui/`.
To run the remote backend server, run the following command:
```bash
promptmage serve --port 8021
```
To make it work with your promptmage script, you should add the following lines to your script:
```python
from promptmage import PromptMage
mage = PromptMage(remote="http://localhost:8021") # or the URL of your remote server
```
Have a look at the examples in the [examples](https://github.com/tsterbak/promptmage/tree/main/examples) folder to see how to use promptmage in your application or workflow.
## Use with Docker
You can find an usage example with docker here: [Docker example](https://github.com/tsterbak/promptmage/tree/main/examples/docker).
## Development
To develop PromptMage, check out the [DEVELOPMENT.md](DEVELOPMENT.md) file.
## Contributing
We welcome contributions from the community!
If you're interested in improving PromptMage, you can contribute in the following ways:
* **Reporting Bugs**: Submit an issue in our repository, providing a detailed description of the problem and steps to reproduce it.
* **Improve documentation**: If you find any errors or have suggestions for improving the documentation, please submit an issue or a pull request.
* **Fixing Bugs**: Check out our list of open issues and submit a pull request to fix any bugs you find.
* **Feature Requests**: Have ideas on how to make PromptMage better? We'd love to hear from you! Please submit an issue, detailing your suggestions.
* **Pull Requests**: Contributions via pull requests are highly appreciated. Please ensure your code adheres to the coding standards of the project, and submit a pull request with a clear description of your changes.
To ensure a smooth contribution process, please follow these guidelines:
* **create an issue before submitting a pull request** to discuss the changes you'd like to make. This helps us ensure that your contribution aligns with the project's goals and prevents duplicate work.
* **follow the coding standards** of the project. Check the [DEVELOPMENT.md](DEVELOPMENT.md) file for more information.
Make sure to check if your issue or PR has already been fixed or implemented before opening a new one!
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
Original development by [Tobias Sterbak](https://tobiassterbak.com). Copyright (C) 2024.
## Contact
For any inquiries or further information, feel free to reach out at [promptmage@tobiassterbak.com](mailto:promptmage@tobiassterbak.com).
## ❤️ Acknowledgements
This project was supported by
<a href="https://www.media-lab.de/en/programs/media-tech-lab">
<img src="images/mtl-powered-by.png" width="240" title="Media Tech Lab powered by logo">
</a>
Raw data
{
"_id": null,
"home_page": "https://www.promptmage.io",
"name": "promptmage",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.11",
"maintainer_email": null,
"keywords": "promptmage, llm, workflow, management, self-hosted, solution, ai, nlp, prompt",
"author": "Tobias Sterbak",
"author_email": "github@tobiassterbak.com",
"download_url": "https://files.pythonhosted.org/packages/26/5a/fe5e032d0e81bad0f860d60a627be34fb78d05479c7007b259bd4a3a10ec/promptmage-0.1.4.tar.gz",
"platform": null,
"description": "<br />\n<div align=\"center\">\n <a href=\"https://github.com/tsterbak/promptmage\">\n <img src=\"images/promptmage-logo.png\" alt=\"PromptMage-Logo\" width=\"120\" height=\"120\">\n </a>\n\n <h1 align=\"center\">PromptMage</h1>\n\n <p align=\"center\">\n simplifies the process of creating and managing LLM workflows as a self-hosted solution.\n </p>\n \n [![License](https://img.shields.io/github/license/tsterbak/promptmage?color=green)](https://github.com/tsterbak/promptmage/blob/main/LICENSE)\n [![Monthly downloads](https://img.shields.io/pypi/dm/promptmage\n)](https://pypi.org/project/promptmage/)\n [![PyPI version](https://img.shields.io/pypi/v/promptmage)](https://pypi.org/project/promptmage/)\n [![GitHub issues](https://img.shields.io/github/issues/tsterbak/promptmage)](https://github.com/tsterbak/promptmage/issues)\n [![GitHub stars](https://img.shields.io/github/stars/tsterbak/promptmage)](https://github.com/tsterbak/promptmage/stargazers)\n</div>\n\n> [!WARNING]\n> This application is currently in alpha state and under active development. Please be aware that the API and features may change at any time.\n\n\n## About the Project\n\nPromptMage is a python framework to simplify the development of complex, multi-step applications based on LLMs. It is designed to offer an intuitive interface that simplifies the process of creating and managing LLM workflows as a self-hosted solution. PromptMage facilitates prompt testing and comparison, and incorporates version control features to help users track the development of their prompts. Suitable for both small teams and large enterprises, PromptMage seeks to improve productivity and foster the practical use of LLM technology.\n\nThe approach with PromptMage is to provide a pragmatic solution that bridges the current gap in LLM workflow management. We aim to empower developers, researchers, and organizations by making LLM technology more accessible and manageable, thereby supporting the next wave of AI innovations.\n\n![PromptMage](https://github.com/tsterbak/promptmage/blob/main/docs/images/screenshots/plaground-dark.png)\n\nTake the [walkthrough](https://promptmage.io/walkthrough/) to see what you can do with PromptMage.\n\n## Philosophy\n- Integrate the prompt playground into your workflow for fast iteration\n- Prompts as first-class citizens with version control and collaboration features\n- Manual and automatic testing and validation of prompts\n- Easy sharing of results with domain experts and stakeholders\n- build-in, automatically created API with fastAPI for easy integration and deployment\n- Type-hint everything for automatic inference and validation magic\n\n## Projects using PromptMage\n\n- [product-review-research](https://github.com/tsterbak/product-review-research): An AI webapp build with PromptMage to provide in-depth analysis for products by researching trustworthy online reviews. \n\n## Getting Started\n\n### Installation\n\nTo install promptmage, run the following command:\n\n```bash\npip install promptmage \n```\n\n## Usage\n\nTo use promptmage, run the following command:\n\n```bash\npromptmage run <path-to-flow>\n```\n\nThis will start the local promptmage server and run the flow at the given path. You can now access the promptmage interface at `http://localhost:8000/gui/`.\n\nTo run the remote backend server, run the following command:\n\n```bash\npromptmage serve --port 8021\n```\n\nTo make it work with your promptmage script, you should add the following lines to your script:\n\n```python\nfrom promptmage import PromptMage\n\nmage = PromptMage(remote=\"http://localhost:8021\") # or the URL of your remote server\n```\n\nHave a look at the examples in the [examples](https://github.com/tsterbak/promptmage/tree/main/examples) folder to see how to use promptmage in your application or workflow.\n\n\n## Use with Docker\n\nYou can find an usage example with docker here: [Docker example](https://github.com/tsterbak/promptmage/tree/main/examples/docker).\n\n\n## Development\n\nTo develop PromptMage, check out the [DEVELOPMENT.md](DEVELOPMENT.md) file.\n\n## Contributing\n\nWe welcome contributions from the community!\n\nIf you're interested in improving PromptMage, you can contribute in the following ways:\n* **Reporting Bugs**: Submit an issue in our repository, providing a detailed description of the problem and steps to reproduce it.\n* **Improve documentation**: If you find any errors or have suggestions for improving the documentation, please submit an issue or a pull request.\n* **Fixing Bugs**: Check out our list of open issues and submit a pull request to fix any bugs you find.\n* **Feature Requests**: Have ideas on how to make PromptMage better? We'd love to hear from you! Please submit an issue, detailing your suggestions.\n* **Pull Requests**: Contributions via pull requests are highly appreciated. Please ensure your code adheres to the coding standards of the project, and submit a pull request with a clear description of your changes.\n\nTo ensure a smooth contribution process, please follow these guidelines:\n* **create an issue before submitting a pull request** to discuss the changes you'd like to make. This helps us ensure that your contribution aligns with the project's goals and prevents duplicate work.\n* **follow the coding standards** of the project. Check the [DEVELOPMENT.md](DEVELOPMENT.md) file for more information.\n\nMake sure to check if your issue or PR has already been fixed or implemented before opening a new one!\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.\nOriginal development by [Tobias Sterbak](https://tobiassterbak.com). Copyright (C) 2024.\n\n## Contact\nFor any inquiries or further information, feel free to reach out at [promptmage@tobiassterbak.com](mailto:promptmage@tobiassterbak.com).\n\n## \u2764\ufe0f Acknowledgements\n\nThis project was supported by\n\n<a href=\"https://www.media-lab.de/en/programs/media-tech-lab\">\n <img src=\"images/mtl-powered-by.png\" width=\"240\" title=\"Media Tech Lab powered by logo\">\n</a>",
"bugtrack_url": null,
"license": "MIT",
"summary": "\"PromptMage\" is designed to offer an intuitive interface that simplifies the process of creating and managing LLM workflows as a self-hosted solution.",
"version": "0.1.4",
"project_urls": {
"Homepage": "https://www.promptmage.io",
"Repository": "https://github.comm/tsterbak/promptmage"
},
"split_keywords": [
"promptmage",
" llm",
" workflow",
" management",
" self-hosted",
" solution",
" ai",
" nlp",
" prompt"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "22c1f191c632cb454675cf6fa0aea8a7d80014a568c041d2d5b3f3a0a7ddf000",
"md5": "4068ccc45730a1103bea579e813c17f6",
"sha256": "00015eefd09a59d4247f42bf6d92ed1891fcb958c45c1ef87c46e70fe5de5f72"
},
"downloads": -1,
"filename": "promptmage-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4068ccc45730a1103bea579e813c17f6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.11",
"size": 429851,
"upload_time": "2024-10-17T08:33:56",
"upload_time_iso_8601": "2024-10-17T08:33:56.628283Z",
"url": "https://files.pythonhosted.org/packages/22/c1/f191c632cb454675cf6fa0aea8a7d80014a568c041d2d5b3f3a0a7ddf000/promptmage-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "265afe5e032d0e81bad0f860d60a627be34fb78d05479c7007b259bd4a3a10ec",
"md5": "2735d41a766e28a0a789faed08229303",
"sha256": "b7d6b14fb5885586f97000877489ca592bcabcdc1f790085557803f3e98a7ebc"
},
"downloads": -1,
"filename": "promptmage-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "2735d41a766e28a0a789faed08229303",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.11",
"size": 420860,
"upload_time": "2024-10-17T08:33:59",
"upload_time_iso_8601": "2024-10-17T08:33:59.728863Z",
"url": "https://files.pythonhosted.org/packages/26/5a/fe5e032d0e81bad0f860d60a627be34fb78d05479c7007b259bd4a3a10ec/promptmage-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-17 08:33:59",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "promptmage"
}