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

annias/promptflow

Repository files navigation

PromptFlow

PromptFlow is a tool that allows you to create executable flowcharts that link LLMs (Large Language Models), Prompts, Python functions, and conditional logic together. With PromptFlow, you can create complex workflows in a visual way, without having to write too much code or deal with complicated logic.

screenshot

Join our Discord: https://discord.gg/EPfy9nye

How it works

PromptFlow is based on a visual flowchart editor that allows you to create nodes and connections between them. Each node can be a Prompt, a Python function, or an LLM. Connections between nodes represent conditional logic, and allow you to specify the flow of your program.

When you run your flowchart, PromptFlow will execute each node in the order specified by the connections, passing data between nodes as needed. If a node returns a value, that value will be passed to the next node in the flow.

Initial Setup

Install the required dependencies. Python 3.8+ is required to run PromptFlow.

python -m pip install -r requirements.txt

Launching

Promptflow can be run with Python from the commandline:

python run.py 

If you're having trouble ensure your PYTHONPATH is set correctly:

export PYTHONPATH=$PYTHONPATH:.

Documentation

Official docs website:

Building from source

To build the sphinx documentation, run:

cd docs
make html

Then open docs/build/html/index.html in your browser.

Contributing

If you are interested in contributing to PromptFlow, you can do so through building a node.

If you find any bugs, do not hesitate to create an issue or open a PR or let us know in Discord.

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

Languages