LowCodeLLM/README.md
Low-code LLM is a novel human-LLM interaction pattern, involving human in the loop to achieve more controllable and stable responses.
See our paper: Low-code LLM: Visual Programming over LLMs
In the future, TaskMatrix.AI can enhance task automation by breaking down tasks more effectively and utilizing existing foundation models and APIs of other AI models and systems to achieve diversified tasks in both digital and physical domains. And the low-code human-LLM interaction pattern can enhance user's experience on controling over the process and expressing their preference.
(This is a conceptual video demo to demonstrate the complete process)
Please note that due to time constraints, the code we provide is only the minimum viable version of the low-code LLM interactive code, i.e. only demonstrating the core concept of Low-code LLM human-LLM interaction. We welcome anyone who is interested in improving our front-end interface.
Currently, both the OpenAI API and Azure OpenAI Service are supported. You would be required to provide the requisite information to invoke these APIs.
# clone the repo
git clone https://github.com/microsoft/TaskMatrix.git
# go to directlory
cd LowCodeLLM
# build and run docker
docker build -t lowcode:latest .
# If OpenAI API is being used, it is only necessary to provide the API key.
docker run -p 8888:8888 --env OPENAIKEY={Your_Private_Openai_Key} lowcode:latest
# When using Azure OpenAI Service, it is advisable to store the necessary information in a configuration file for ease of access.
# Kindly duplicate the config.template file and name the copied file as config.ini. Then, fill out the necessary information in the config.ini file.
docker run -p 8888:8888 --env-file config.ini lowcode:latest
You can now try it by visiting Demo page
As shown in the above figure, human-LLM interaction can be completed by:
Part of this paper has been collaboratively crafted through interactions with the proposed Low-code LLM. The process began with GPT-4 outlining the framework, followed by the authors supplementing it with innovative ideas and refining the structure of the workflow. Ultimately, GPT-4 took charge of generating cohesive and compelling text.