This is a Flask-based web application featuring an AI-powered chatbot with document upload, RAG (Retrieval-Augmented Generation), and summarization capabilities.
- User authentication (demo account included)
- Chatbot interface with RAG and summarization
- File upload for document-based Q&A
- Per-user vector database
- Light purple modern UI (customizable)
- Email: demo@cypherguard.io
- Password: demo@123
-
Clone the repository:
git clone <your-repo-url> cd <repo-directory>
-
Create a virtual environment and activate it:
python3 -m venv .venv source .venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
- Create a
.envfile in the project root:OPENAI_API_KEY=your_openai_api_key_here
- Create a
-
Run the app:
python app.py
The app will be available at http://127.0.0.1:7860
- Upload documents via the chat interface to enable RAG-based Q&A.
- Uploaded files are stored per user and processed into a vector database.
- Theme:
- The color theme is defined in the Tailwind config section of the HTML files.
- To change the gradient, edit the
custom-gradientinchat.html,signin.html, andsignup.html.
- Demo User:
- Change or add users in
app.pyunder theUsermodel section.
- Change or add users in
app.py- Main Flask apptemplates/- HTML templatesstatic/- Images and static assetsuploads/- Uploaded files (gitignored).env- Environment variables (gitignored)
This project is for demo and educational purposes.