Coder Social home page Coder Social logo

ashsajal1 / chatflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apssouza22/chatflow

1.0 1.0 0.0 3.07 MB

Natural language UI

Home Page: https://newaisolutions.com

License: BSD 2-Clause "Simplified" License

Shell 0.03% JavaScript 1.93% Python 37.50% TypeScript 57.91% CSS 0.15% HTML 1.31% Dockerfile 0.23% PowerShell 0.95%

chatflow's Introduction

Chatflow

Chatflow offers a chat interface for users to interact with any system using natural language. Our engine understands the user's intent and executes the required commands for the given task.

Users can easily navigate and utilize complex websites/products with multiple pages and functionalities through a chat interface rather than using a point-and-click approach.

This leads to decreased training expenses, enhanced user experience, and improved productivity.

You can try it out here

Watch this video to learn more.

Join our Discord to know what's going on in development and to ask questions to the maintainers about the project and how to contribute: https://discord.gg/fJ5ecMmsSf

Running the App

Before running the app, please install Docker first

Set up the environment

Automatic Setup(Windows only):

  • cd scripts
  • PowerShell -ExecutionPolicy Bypass -File .\windows-utils.ps1 -action setup -apiKey [OpenAI API Key]

Starting the App

  • PowerShell -ExecutionPolicy Bypass -File .\windows-utils.ps1 -action on

Stopping the App

  • PowerShell -ExecutionPolicy Bypass -File .\windows-utils.ps1 -action off

Manual setup:

React UI

  • cd chat-ui
  • npm install
  • npm run build
  • npm start

Backend

  • Start the databases

    $ docker-compose up -d redis postgres
  • Install the dependencies

    $ pip install -r requirements-dev.txt
  • Navigate to the backend src cod

    $ cd server/src
  • Create a .env file and set all required variables

    cp server/src/.env.template server/src/.env
  • Replace the OpenAI API key with your own key in the .env file

  • Start the backend service locally

    $ python load_data.py
    $ python server.py
  • Log into the app http://localhost:3000/assets#/login with the following credentials

    username: [email protected]
    password: 123
  • Visit http://localhost:8880/api/docs to see the API docs

  • Access the Redis Vector DB UI on http://localhost:8001/redis-stack/browser

Local Development with Docker

  • Build the docker image docker build -t apssouza/chatux:latest .
  • Set OPENAI_API_KEY_GPT4 and OPENAI_API_KEY_GPT3 environment variables
  • Run docker-compose up to start the app
  • Visit http://localhost:8880/api/docs to see the API docs

Backlog

Please look at the issues for the backlog

Leave a star if you like the project

chatflow's People

Contributors

apssouza22 avatar giovannismokes avatar vporton avatar lucygrind avatar

Stargazers

 avatar

Watchers

 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.