8000 GitHub - sycomix/flowgen: AutoGen Visualized - Visual Tools for Multi-Agent Development.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sycomix/flowgen

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Important

This project is still under heavy development and functions might not work well yet. Please don't hestitate to open new issues.

FlowGen - AutoGen Visualized

License GitHub star chart

flow-1

πŸ€– What is FlowGen

FlowGen is a tool built for AutoGen, a great agent framework from Microsoft Research.

AutoGen streamlines the process of creating multi-agent applications with its clear and user-friendly approach. FlowGen takes this accessibility a step further by offering visual tools that simplify the building and management of agent workflows with AutoGen.

Visual Flow Editing

flow-0

flow-1

Chat

chat-0

chat-1

Gallery

gallery-0

πŸ’‘ Quickstart

To quickly explore what FlowGen has to offer, simply visit it https://flowgen.app.

Each new commit to the main branch triggers an automatic deployment on Railway.app, ensuring you experience the latest version of the service.

Warning

Changes to Pocketbase project will cause the rebuild and redeployment of all instances, which will swipe all the data.

Please do not use it for production purpose, and make sure you export flows in time.

🐳 Run on Local (with Docker)

The project contains Frontend (Built with Next.js) and Backend service (Built with Flask in Python), and have been fully dockerized.

The easiest way to run on local is using docker-compose:

docker-compose up -d

You can also build and run the frontend and backend services separately with docker:

docker build -t flowgen-svc ./backend
docker run -d -p 5004:5004 flowgen-svc

docker build -t flowgen-ui ./frontend
docker run -d -p 2855:2855 flowgen-ui

docker build -t flowgen-db ./pocketbase
docker run -d -p 7676:7676 flowgen-db

(The default port number 2855 is the address of our first office.)

πŸš€ Deployment

Deploy on Railway

Railway.app supports the deployment of applications in Dockers. By clicking the "Deploy on Railway" button, you'll streamline the setup and deployment of your application on Railway platform:

  1. Click the "Deploy on Railway" button to start the process on Railway.app.
  2. Log in to Railway and set the following environment variables:
    • PORT: Please set for each services as 2855, 5004, 7676 respectively.
  3. Confirm the settings and deploy.
  4. After deployment, visit the provided URL to access your deployed application.

πŸ› οΈ Run on Local (Without Docker)

If you're interested in contributing to the development of this project or wish to run it from the source code, you have the option to run the frontend and backend services independently. Here's how you can do that:

  1. Frontend Service:

    • Navigate to the frontend service directory.
    • Rename .env.sample to .env.local and set the value of variables correctly.
    • Install the necessary dependencies using the appropriate package manager command (e.g., pnpm install or yarn).
    • Run the frontend service using the start-up script provided (e.g., pnpm dev or yarn dev).
  2. Backend Service:

    • Switch to the backend service directory cd backend.
    • Create virtual environment: python3 -m venv venv.
    • Activate virtual environment: source venv/bin/activate.
    • Install all required dependencies: pip install -r requirements.txt.
    • Launch the backend service using command uvicorn app.main:app --reload --port 5004.

REPLICATE_API_TOKEN is needed for LLaVa agent. If you need to use this agent, make sure to include this token in environment variables, such as the Environment Variables on Railway.app.

  1. PocketBase:

    • Switch to the PocketBase directory cd pocketbase.
    • Build the container: docker build -t flowgen-db .
    • Run the container: docker run -it --rm -p 7676:7676 flowgen-db

Once you've started both the frontend and backend services by following the steps previously outlined, you can access the application by opening your web browser and navigating to:

If your services are started successfully and running on the expected ports, you should see the user interface or receive responses from the backend via this URL.

Migration of Official Examples

Please check the original notebooks with the same name in AutoGen.

πŸ”² Planned βœ… Completed πŸ†˜ With Issues β­• Out of Scope

Example Status Comments
auto_feedback_from_code_execution βœ… Feedback from Code Execution
auto_build πŸ”²
chess πŸ”²
compression πŸ”²
dalle_and_gpt4v πŸ”² This requires the import of custom Agent class
function_call_async βœ…
function_call βœ…
graph_modelling_language β­• This is out of project scope. Open an issue if necessary
group_chat_RAG βœ… This notebook does not work
groupchat_research βœ…
groupchat_vis βœ…
groupchat βœ…
hierarchy_flow_using_select_speaker πŸ”²
human_feedback πŸ”²
inception_function πŸ”²
langchain β­• No plan to support
lmm_gpt-4v βœ…
lmm_llava βœ… Depends on Replicate
MathChat πŸ”²
oai_assistant_function_call βœ…
oai_assistant_groupchat πŸ†˜ Very slow and not work well, sometimes not returning.
oai_assistant_retrieval πŸ”²
oai_assistant_twoagents_basic βœ…
oai_code_interpreter βœ…
planning πŸ”²
qdrant_RetrieveChat πŸ”²
RetrieveChat πŸ”²
stream πŸ”²
teachability πŸ”²
teaching πŸ”²
two_users βœ… The response will be very long and should set a large max_tokens.
video_transcript_translate_with_whisper βœ… brew install ffmpeg and export IMAGEIO_FFMPEG_EXE
web_info βœ…
cq_math β­• This example is quite irrelevant to autogen, why not just use OpenAI API?
Async_human_input πŸ”²
oai_chatgpt_gpt4 β­• Fine-tuning, out of project scope
oai_client_cost β­• This is a utility tool, not related to flow.
oai_completion β­• Fine-tuning, out of project scope
oai_openai_utils πŸ”²

πŸ‘¨β€πŸ’» Contributing

This project welcomes contributions and suggestions. Please read our Contributing Guide first.

If you are new to GitHub here is a detailed help source on getting involved with development on GitHub.

Contributors Wall

πŸ“ License

The project is licensed under Apache 2.0 with additional terms and conditions.

About

AutoGen Visualized - Visual Tools for Multi-Agent Development.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 81.7%
  • Python 10.7%
  • Jinja 3.6%
  • CSS 1.6%
  • Dockerfile 1.5%
  • JavaScript 0.8%
  • Shell 0.1%
0