Spaces:
Running
Running
metadata
title: MANIT Chat RAG
emoji: π
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
MANIT Chat RAG
An AI-powered academic assistant for Maulana Azad National Institute of Technology (MANIT), Bhopal, built with a Retrieval-Augmented Generation (RAG) pipeline. It uses FastAPI for the API backend and serves a minimalist, modern, static HTML/JS/CSS web interface.
This project is configured for single-container Docker deployment, making it ready to be hosted directly on Hugging Face Spaces as a Docker Space.
π How to Run Locally with Docker
- Ensure your Groq API key is set in
server/.env:groq_api_key=your_groq_api_key_here - Build the unified Docker image:
docker build -t manit-chat . - Run the container, mounting the data volume and passing the environment file:
docker run -p 7860:7860 --env-file server/.env -v "$(pwd)/server/data:/app/server/data" manit-chat - Open your web browser and navigate to
http://localhost:7860.
βοΈ How to Deploy to Hugging Face Spaces
- Create a new Space on Hugging Face.
- Give it a name and select Docker as the SDK.
- Choose Blank (default template) as the starting point.
- Clone your Space repository locally, or add it as a Git remote in this project folder:
git init git add . git commit -m "Configure for Hugging Face Spaces" git remote add origin https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME git push -u origin main --force - Once pushed, go to the Settings tab of your Hugging Face Space page:
- Scroll down to Variables and secrets.
- Click New secret.
- Set the Name to
groq_api_key. - Set the Value to your Groq API key (
gsk_...).
- Hugging Face will automatically detect the root
Dockerfileand build it. Once complete, your Space will be active and running online!