Skip to content

Create executable flowcharts that link LLMs (Large Language Models), Prompts, Python functions, and conditional logic together.

License

Notifications You must be signed in to change notification settings

samclane/promptflow

Repository files navigation

PromptFlow logo


🧩💡 PromptFlow

Want to quickly prototype your Large Language Model (LLM) application without a ton of code? Unleash your creativity with PromptFlow, a low-code tool that empowers you to craft executable flowcharts. Seamlessly integrate LLMs, prompts, Python functions, and conditional logic to create intricate workflows. With PromptFlow, you can visualize your ideas and bring them to life, all without getting tangled in code or complex logic.

PromptFlow screenshot

🎮 Join the conversation on our Discord Server

🔗 How it works

The core of PromptFlow is a visual flowchart editor that lets you design nodes and establish Connections between them. Each node can represent a Prompt, a Python function, or an LLM. The connections between nodes embody conditional logic, dictating the flow of your program.

When run your flowchart, PromptFlow executes each node in the sequence defined by the connections, transferring text data between nodes as required. If a node returns a value, that value is forwarded to the next node in the flow as a string. More information on the inner workings of PromptFlow can be found in our documentation.

🛠️ Initial Setup

Before starting, make sure to populate the .env file with the appropriate values. The .env file should be located in the root directory of the project.

🚀 Launching

Docker Compose

The easiest way to run PromptFlow is with Docker Compose. To do so, run the following command:

docker compose up --build

This will run the DB, Redis, API (Backend), Celery Worker, and Frontend containers. The API will run on port 8069 by default, with the frontend on port 4200.

📚 Documentation

Documentation Status

Check out our official docs:

🏗️ Building from source

To compile the Sphinx documentation, execute:

cd docs
make html

Then, navigate to docs/build/html/index.html in your browser.

🤝 Contributing

Want to contribute to PromptFlow? Get started by building a node.

Stumbled upon a bug? Don't hesitate to create an issue, open a PR, or let us know on Discord.

Feedback

We're interested in your feedback! If you've used PromptFlow, please fill out this questionnaire.

About

Create executable flowcharts that link LLMs (Large Language Models), Prompts, Python functions, and conditional logic together.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published