Skip to content

A Flask-based web app integrating GPT with Retrieval-Augmented Generation (RAG) for interactive chat, document querying, and user account management.

Notifications You must be signed in to change notification settings

amiralisahraei/flask-gpt-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask GPT App

This project integrates the GPT model with a Retrieval-Augmented Generation (RAG) feature. Users can interact with the model via a web interface, manage their chat history, and utilize advanced document querying capabilities.

Key features include:

  • User Registration and Login: Secure user accounts with chat history recovery through MySQL database.
  • Interactive GPT Chat: Real-time chat with the GPT model.
  • Document Upload and Querying: Upload PDF documents and query their contents using the RAG feature.
  • Search Agents: Document Querying Agent (RAG) used For queries related to the content of uploaded PDFs. Tavily Search Agent used For general information retrieval tasks, such as weather predictions.

Run The Project without docker

Install packages:

  pip install -r requirements.txt 

Run Flask:

  flask run

Open your browser and acceess project through this URL: http://127.0.0.1:8080/

Run The Project with Docker

Install request package Build the Docker image:

  pip install requests==2.25.1

Run docker-compose.yaml:

  docker-comspoe -f docker-compose.yaml up

Open your browser and acceess project through this URL: http://127.0.0.1:8080/

About

A Flask-based web app integrating GPT with Retrieval-Augmented Generation (RAG) for interactive chat, document querying, and user account management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published