-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from tsterbak/dev-v0.1.0
Release verison 0.1.0
- Loading branch information
Showing
38 changed files
with
2,096 additions
and
862 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,29 @@ | |
<p align="center"> | ||
simplifies the process of creating and managing LLM workflows as a self-hosted solution. | ||
</p> | ||
|
||
[](https://github.com/tsterbak/promptmage/blob/main/LICENSE) | ||
[](https://pypi.org/project/promptmage/) | ||
[](https://pypi.org/project/promptmage/) | ||
[](https://github.com/tsterbak/promptmage/issues) | ||
[](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 designed to offer an intuitive interface that simplifies the process of creating and managing LLM workflows as a self-hosted solution. It facilitates prompt testing and comparison, and it 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. | ||
|
||
 | ||
|
||
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 | ||
|
@@ -64,13 +79,14 @@ 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. | ||
* **Feature Requests**: Have ideas on how to make FlowForge better? We'd love to hear from you! Please submit an issue, detailing your suggestions. | ||
* **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. | ||
|
||
|
||
## 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 [[email protected]](mailto:[email protected]). | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,20 @@ | |
</p> | ||
</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 designed to offer an intuitive interface that simplifies the process of creating and managing LLM workflows as a self-hosted solution. It facilitates prompt testing and comparison, and it 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. | ||
|
||
 | ||
|
||
Take the [walkthrough](walkthrough.md) 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 | ||
|
@@ -40,17 +48,22 @@ pip install promptmage | |
To use promptmage, run the following command: | ||
|
||
```bash | ||
promptmage run <path-to-flow>.py | ||
promptmage run <path-to-flow> | ||
``` | ||
|
||
This will start the promptmage server and run the flow at the given path. You can now access the promptmage interface at `http://localhost:8000/gui/`. | ||
|
||
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. | ||
To develop PromptMage, check out the [DEVELOPMENT.md](https://github.com/tsterbak/promptmage/blob/main/DEVELOPMENT.md) file. | ||
|
||
## Contributing | ||
|
||
|
@@ -59,13 +72,14 @@ 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. | ||
* **Feature Requests**: Have ideas on how to make FlowForge better? We'd love to hear from you! Please submit an issue, detailing your suggestions. | ||
* **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. | ||
|
||
|
||
## License | ||
|
||
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details. | ||
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/tsterbak/promptmage/blob/main/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 [[email protected]](mailto:[email protected]). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Walkthrough | ||
|
||
## Launching the application | ||
|
||
After you installed promptmage and added it to your project following the [tutorial](tutorial.md), you can now run the application and interact with it in the web UI. | ||
|
||
To run the application, you can use the following command: | ||
|
||
```bash | ||
promptmage run summarizer.py | ||
``` | ||
|
||
This will start the promptmage server and run the application at the given path. | ||
|
||
## Accessing the API | ||
|
||
PromptMage automatically creates an API for your application using FastAPI. You can access the API at `http://localhost:8000/api/` and the Swagger documentation at `http://localhost:8000/docs/`. | ||
|
||
 | ||
|
||
You can use the API to interact with your application programmatically or integrate it into other services. | ||
|
||
## Interacting with the web UI | ||
|
||
You can access the web UI at `http://localhost:8000/gui/`. Here you can interact with the prompts and see the output of the steps. | ||
|
||
### Application Overview | ||
|
||
The application overview shows all available flows. | ||
|
||
 | ||
|
||
### Flow Overview | ||
|
||
The flow overview shows all steps of the flow and their status as well as an execution graph for the flow once executed. | ||
|
||
 | ||
|
||
### Step interaction | ||
|
||
You can interact with the steps by clicking on them. This will expand the step and show the prompts and the output of the step. | ||
This also allows you to manually run the step and tweak the input and prompts. | ||
|
||
 | ||
|
||
|
||
## Runs page | ||
|
||
The runs page shows all runs of the application and allows you to see the output of the steps for each run. | ||
|
||
 | ||
|
||
You can also replay runs to see the output of the steps and the prompts that were used during the run. | ||
|
||
## Prompt repository | ||
|
||
The prompt repository allows you to manage your prompts. You can create new prompt versions, edit existing prompts, and delete prompts. You can also see the history of a prompt and see which runs used the prompt. | ||
|
||
 | ||
|
||
|
||
## Conclusion | ||
|
||
This concludes the walkthrough of PromptMage. You have seen how to install and use PromptMage, how to create a simple application, and how to interact with the web UI. You can now integrate PromptMage into your workflow and use it to build and test your applications faster and more efficiently. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from summarize_article_by_facts import mage as flow1 | ||
from youtube_understanding import mage as flow2 | ||
|
||
flow1 | ||
|
||
flow2 |
Oops, something went wrong.