A clean backend architecture for multi-PDF Q&A with JWT auth, persistent chat history, and fast inference.
Most RAG tutorials stop at a single-file script. For AI-RAG-Chatbot (GitHub), I wanted a modular backend with real authentication, document management, and fast LLM responses.
FastAPI + JWT): passlib password hashing and python-jose JWT tokens.pypdf + RecursiveCharacterTextSplitter): HuggingFaceEmbeddings (sentence-transformers). ChromaDB + SQLAlchemy): Groq via ChatGroq): auth_service.py, pdf_service.py, and rag_service.py modular makes testing and swapping vector stores or LLM providers trivial.
Check out the full code: AdarshVerma21/AI-RAG-Chatbot