{"id":30820880,"url":"https://github.com/gms-001/rag-based-chatbot-tds","last_synced_at":"2026-04-11T19:02:46.704Z","repository":{"id":311017533,"uuid":"1042149984","full_name":"GmS-001/Rag-Based-ChatBot-TDS","owner":"GmS-001","description":"RAG-powered Virtual Teaching Assistant for IIT Madras’ Tools in Data Science (TDS) course. Built with LangChain, LangSmith, and Streamlit, this chatbot provides context-aware answers from course materials, manages user sessions with SQLite, and supports real-time chat streaming.","archived":false,"fork":false,"pushed_at":"2025-09-01T19:30:23.000Z","size":5806,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-01T20:44:19.475Z","etag":null,"topics":["gemini-api","langchain","langgraph","langsmith","python","rag-chatbot","selenium","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GmS-001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-21T14:59:57.000Z","updated_at":"2025-09-01T19:30:26.000Z","dependencies_parsed_at":"2025-08-21T17:56:47.692Z","dependency_job_id":"88d000ca-91ae-486d-9370-b4f8e9e760dc","html_url":"https://github.com/GmS-001/Rag-Based-ChatBot-TDS","commit_stats":null,"previous_names":["gms-001/rag-based-chatbot-tds-","gms-001/rag-based-chatbot-tds"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/GmS-001/Rag-Based-ChatBot-TDS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GmS-001%2FRag-Based-ChatBot-TDS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GmS-001%2FRag-Based-ChatBot-TDS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GmS-001%2FRag-Based-ChatBot-TDS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GmS-001%2FRag-Based-ChatBot-TDS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GmS-001","download_url":"https://codeload.github.com/GmS-001/Rag-Based-ChatBot-TDS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GmS-001%2FRag-Based-ChatBot-TDS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273887957,"owners_count":25185782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gemini-api","langchain","langgraph","langsmith","python","rag-chatbot","selenium","sqlite"],"created_at":"2025-09-06T10:03:36.625Z","updated_at":"2025-10-18T00:44:47.492Z","avatar_url":"https://github.com/GmS-001.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✨ RAG-Based Virtual Teaching Assistant\n\nA **Retrieval-Augmented Generation (RAG)** powered chatbot built for the **Tools in Data Science (TDS)** course at **IIT Madras**.  \nThis virtual assistant provides **accurate, context-aware answers** to students' queries using course materials, while also being capable of answering general knowledge questions gracefully.  \n\nBuilt with **LangGraph**, **LangChain**, **LangSmith**, **Streamlit**, **Selenium** and a **SQLite backend**, this project demonstrates a **production-grade RAG application** with authentication, conversation threading, and persistent chat history.\n### ✨Live Website : https://rag-based-chatbot-tds-gms.streamlit.app/\n---\n\n## 🚀 Features\n\n- **Context-Aware Responses (RAG)**  \n  Answers are based on retrieved chunks from course content first, ensuring accuracy and reliability.\n\n- **Fallback General Knowledge Answers**  \n  When no course context is available, the bot clearly states this and provides helpful responses using general reasoning.\n\n- **LangSmith-Backed LLM Tracing \u0026 Analysis**  \n  Used **LangSmith** to monitor, debug, and optimize LLM calls for better transparency and reliability in production.\n\n- **Interactive Streamlit Frontend**  \n  - Chat-like UI for students.  \n  - Live message streaming.  \n  - Sidebar for switching between chat threads.  \n\n- **User Authentication \u0026 Conversation Management**  \n  - Login/registration system with secure password storage.  \n  - Each user has multiple conversation threads, all persisted in a SQLite database.\n\n- **Well-Structured Backend**  \n  - Modular design (`frontend`, `backend`, `database_utils`, `prompts`) for scalability.  \n  - Easy to extend with new models, retrievers, or UI features.\n\n---\n\n## 🗂️ Project Structure\n\n```plaintext\n├── backend_basic.py      # Core RAG pipeline: retrieval \u0026 LLM integration\n├── database_utils.py     # SQLite utilities: user auth, chat history, threads\n├── frontend.py           # Streamlit app for chat interface\n├── prompts.py            # System prompts and configurations\n├── requirements.txt      # Python dependencies\n├── README.md             # Project documentation\n└── .gitignore            # Ignored files (db, cache, venv, etc.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgms-001%2Frag-based-chatbot-tds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgms-001%2Frag-based-chatbot-tds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgms-001%2Frag-based-chatbot-tds/lists"}