Coder Social home page Coder Social logo

brainlabz / ai-flow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dahnm20/ai-flow

0.0 0.0 0.0 124.07 MB

Open Source user-friendly UI application that allows you to easily connect multiple AI models together.

Home Page: https://app.ai-flow.net/

License: MIT License

Shell 0.18% JavaScript 0.30% Python 29.01% TypeScript 68.79% CSS 0.38% HTML 0.78% Dockerfile 0.57%

ai-flow's Introduction

AI-Flow Logo

Open-source tool to seamlessly connect multiple AI models in repeatable flow.

English French

๐Ÿ”— Website

While a live demo is available for convenience, for the best experience we recommend running the application directly on your local machine.

๐ŸŽ‰๐Ÿš€ v0.5.1 is Now Available ๐Ÿš€๐ŸŽ‰

๐Ÿš€ GPT-4-Turbo | ๐Ÿ‘€ GPT-4-Vision | ๐ŸŽจ Dall-E-3
๐ŸŒŸ UI Enhancements | โ†”๏ธ New Layout View | ๐Ÿค– New Merge Node | โœจ Support for large input


image-scenario-1-1

AI Flow is an open source, user-friendly UI application that empowers you to seamlessly connect multiple AI models together, specifically leveraging the capabilities of ChatGPT. This unique tool paves the way to creating interactive networks of different AI models, fostering a multi-perspective response to various prompts.

Imagine setting up a simple workflow where:

  • One node generates a poem
  • One node gives a review of the poem
  • One node creates a prompt for the cover of the poem
  • One node makes the cover with Stable Diffusion

image-scenario-1-1

If we want to change the idea of the poem, we can edit the first node, and keep the same flow.

image-scenario-1-2

This flow logic can then be applied to different inputs, yielding varied results for similar subject matter.

AI Flow is particularly useful for content creation. By enabling different GPT models to adopt different roles, AI Flow orchestrates the creation and evaluation of digital content, from social media threads to blog articles.

With AI Flow, you utilize your own OpenAI keys, giving you full authority over your budget. Importantly, the software runs locally on your machine, assuring you of privacy and control over your data and operations.

โš ๏ธ Please note that very large input (for example the transcript of a 1 hour podcast) may incur additionnal costs, because for this type of entry the default behavior is to split the input into chunks, create embeddings (with the OpenAI API), and then use a similarity search to find the right items to answer the prompt.

N.B : For large inputs, you'll get better result with a precise prompt.

Features

In a nutshell, AI Flow provides a visual platform for crafting and managing AI-driven workflows, thereby facilitating diverse and dynamic AI interactions.

  • ๐ŸŽจ It offers a drag-and-drop interface to design these workflows
  • ๐Ÿ“Š Monitors their execution in real-time
  • ๐Ÿ—‚๏ธ AI models can be conveniently managed and organized
  • ๐Ÿ’พ Workflows can be exported or imported for sharing or backup purposes

Other basic use cases

Summarize web pages & youtube transcript

image-summary

Use pre-made prompts to build quickly

image-ai-actions

Split input with AI

image-summary

By combining those features we can create different flows.

Describe picture with AI

ai-vision

Create a custom layout for your flow

When your flow is complete, you have the option to run it as is or create a custom layout focusing on the most interesting parts.

layout-view

Installation (Windows executable)

For a quick local setup, grab the .exe from the repository's releases section.

Installation (without Docker)

Prerequisites

Before getting started, make sure you have the following dependencies installed on your system:

Clone the Repository

  1. Clone the repository: git clone https://github.com/DahnM20/ai-flow.git
  2. Change to the project directory: cd ai-flow

UI Dependencies

  1. Go to the UI directory: cd packages/ui
  2. Install dependencies: npm install

Backend Dependencies

  1. Go to the backend directory: cd packages/backend
  2. Install Python dependencies: poetry install

For Windows only

  1. Launch poetry shell : poetry shell
  2. Install the windows requirements in the poetry shell : pip install -r requirements_windows.txt

Usage

  1. Start the backend server: cd backend && poetry run python server.py
  2. Start the ui application: cd ui && npm start
  3. Open your browser and navigate to http://localhost:3000
  4. Use the drag-and-drop interface to design your AI workflow
  5. Connect AI models and define data flow between them
  6. Click "Run" to execute the AI workflow
  7. Monitor the execution progress and results in real-time

๐Ÿณ Docker

Docker Compose

  1. Go to the docker directory: cd ./docker
  2. Update the .yml if needed for the PORTS
  3. Launch docker-compose up or docker-compose up -d
  4. Open your browser and navigate to http://localhost:80
  5. Use docker-compose stop when you want to stop the app.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

ai-flow's People

Contributors

dahnm20 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.