Skip to content

j2deen/chatflow

 
 

Repository files navigation

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.

Running the App

Before running the app, please install Docker first.

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 .env.template .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

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 56.1%
  • Python 40.4%
  • JavaScript 2.1%
  • HTML 1.0%
  • Dockerfile 0.2%
  • CSS 0.2%