{"id":29873108,"url":"https://github.com/haswinai/rag_chatbot","last_synced_at":"2026-04-09T08:10:50.558Z","repository":{"id":305285499,"uuid":"1021987103","full_name":"HaswinAI/RAG_chatbot","owner":"HaswinAI","description":"A Retrieval-Augmented Generation (RAG) chatbot that answers questions from uploaded PDFs. Built using LangChain, Groq LLMs (LLaMA 3), FAISS, HuggingFace Embeddings, and Streamlit.","archived":false,"fork":false,"pushed_at":"2025-07-19T06:58:40.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-19T11:26:51.550Z","etag":null,"topics":["faiss","langchain","llama3","rag-chatbot","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HaswinAI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-07-18T09:11:46.000Z","updated_at":"2025-07-19T07:00:00.000Z","dependencies_parsed_at":"2025-07-19T11:26:57.401Z","dependency_job_id":"2b42a945-f420-44de-9f09-a7e9b38676f7","html_url":"https://github.com/HaswinAI/RAG_chatbot","commit_stats":null,"previous_names":["haswinai/rag_chatbot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/HaswinAI/RAG_chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaswinAI%2FRAG_chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaswinAI%2FRAG_chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaswinAI%2FRAG_chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaswinAI%2FRAG_chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HaswinAI","download_url":"https://codeload.github.com/HaswinAI/RAG_chatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaswinAI%2FRAG_chatbot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267951692,"owners_count":24171079,"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-07-30T02:00:09.044Z","response_time":70,"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":["faiss","langchain","llama3","rag-chatbot","streamlit"],"created_at":"2025-07-30T22:15:55.003Z","updated_at":"2026-04-09T08:10:50.530Z","avatar_url":"https://github.com/HaswinAI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📚 RAG Chatbot – PDF Q\u0026A with LangChain + Groq\n# A Retrieval-Augmented Generation (RAG) chatbot that answers questions from uploaded PDFs. Built using LangChain, Groq LLMs (LLaMA 3), FAISS, HuggingFace Embeddings, and Streamlit.\n\n# 🧠 What This Project Does\n🗂 Uploads a PDF document\n\n📖 Reads and chunks the content into manageable parts\n\n🔢 Converts chunks into embeddings using HuggingFace models\n\n💾 Stores embeddings in a FAISS vector store\n\n❓ Accepts user queries and retrieves top-matching chunks\n\n🧠 Sends the context to Groq’s LLaMA 3 model to generate an answer\n\n💬 Displays accurate, document-based responses in real-time\n\n# 🔁 Workflow\n\nPDF Upload\n → Text Extraction\n   → Chunking\n     → Embedding (HuggingFace)\n       → FAISS Vector Store\n\nUser Query\n → Embedding\n   → Search FAISS for Relevant Chunks\n     → Generate Answer with Groq LLM\n🧰 Tech Stack\nTool\tRole\n🦜 LangChain\tLLM and retrieval framework\n🧠 Groq\tLLM inference (e.g. llama3-70b-8192)\n🧠 HuggingFace\tEmbedding model (all-MiniLM-L6-v2)\n📚 FAISS\tVector search for chunk similarity\n📑 PyPDF2\tPDF text extraction\n⚡ Streamlit\tUI to upload and chat\n🔐 Dotenv\tSecure API key handling\n\n📁 Project Structure\n\nrag-chatbot/\n├── app.py              # Streamlit UI\n├── rag_chain.py        # Retrieval and LLM logic\n├── utils.py            # PDF reading and chunking\n├── requirements.txt    # Required packages\n├── .env                # API keys (not pushed)\n├── data/               # Uploaded PDFs (ignored)\n└── README.md           # You are here\n🛠 Installation\nClone this repo:\n\n\ngit clone https://github.com/HaswinAI/RAG-chatbot.git\ncd rag-chatbot-groq\nCreate a virtual environment:\n\n\npython -m venv chatbot\nsource chatbot/bin/activate  # or chatbot\\Scripts\\activate on Windows\nInstall requirements:\n\n\npip install -r requirements.txt\nSet up .env:\n\n\nGROQ_API_KEY=your_actual_groq_key_here\n▶️ Run the App\n\nstreamlit run app.py\nGo to localhost in your browser.\n\n💬 Example Use\nUpload a whitepaper or article PDF\n\nAsk: \"What are the key takeaways?\"\n\nGet an instant, AI-generated summary based on the real content\n\n📌 Notes\nPDF contents are not stored permanently\n\n.env, .pdf files, and data/ are in .gitignore\n\nCompatible with models like:\n\nllama3-70b-8192\n\nllama3-8b-8192\n\ngemma-7b-it\n\nmixtral-8x22b\n\n📄 License\nThis project is released under the MIT License\n\n✨ Acknowledgements\nLangChain\n\nGroq\n\nFAISS by Meta\n\nHuggingFace Sentence Transformers\n\nStreamlit\n\n# Creator - HASWIN\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaswinai%2Frag_chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaswinai%2Frag_chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaswinai%2Frag_chatbot/lists"}