{"id":27442982,"url":"https://github.com/mnds18/sydney-local-rag-chatbot","last_synced_at":"2026-04-17T15:33:00.851Z","repository":{"id":287713177,"uuid":"965564477","full_name":"mnds18/sydney-local-rag-chatbot","owner":"mnds18","description":"Local RAG Chatbot: Sydney Q\u0026A powered by FAISS, local embeddings, and offline LLMs via Ollama.","archived":false,"fork":false,"pushed_at":"2025-04-26T02:48:57.000Z","size":1135,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-26T03:40:48.648Z","etag":null,"topics":["chatbot","faiss","flask","llm","localai","ollama","python3","rag"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mnds18.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2025-04-13T12:52:25.000Z","updated_at":"2025-04-26T02:49:00.000Z","dependencies_parsed_at":"2025-04-13T14:24:05.267Z","dependency_job_id":"43f657e7-40b2-4409-9a34-03f84cf93174","html_url":"https://github.com/mnds18/sydney-local-rag-chatbot","commit_stats":null,"previous_names":["mnds18/sydney-local-rag-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mnds18/sydney-local-rag-chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnds18%2Fsydney-local-rag-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnds18%2Fsydney-local-rag-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnds18%2Fsydney-local-rag-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnds18%2Fsydney-local-rag-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnds18","download_url":"https://codeload.github.com/mnds18/sydney-local-rag-chatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnds18%2Fsydney-local-rag-chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31934339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chatbot","faiss","flask","llm","localai","ollama","python3","rag"],"created_at":"2025-04-15T01:18:07.677Z","updated_at":"2026-04-17T15:33:00.846Z","avatar_url":"https://github.com/mnds18.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Lint Status](https://github.com/mnds18/sydney-local-rag-chatbot/actions/workflows/python-lint.yml/badge.svg)\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Powered%20By-LangChain-blue\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Vectorstore-FAISS-green\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Language-Python-yellow\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Model-Ollama%20(Local%20LLM)-orange\" /\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n# 🐨 Mrig's Sydney Local RAG Chatbot\n\nAn end-to-end **Retrieval-Augmented Generation (RAG)** chatbot built **entirely locally** — no APIs, no cloud services.  \nIt reads **PDF** and **Word documents**, builds a **vectorstore**, retrieves answers using **FAISS**, and **generates responses using a local LLM** (Mistral / DeepSeek / Llama3 running in Ollama).\n\n\u003cbr /\u003e\n\n---\n\n## 🚀 Features\n\n- ✅ Full **local-only** document understanding (PDFs + DOCXs)\n- ✅ **FAISS** vector database for fast document search\n- ✅ **Hard prompting** forcing 1-word or short answers\n- ✅ Supports multiple **local LLMs** (DeepSeek, Mistral, Llama3 via Ollama)\n- ✅ **Beautiful tourism-themed** front-end chatbot (Flask)\n- ✅ Fully **rebuildable vectorstore** on demand\n- ✅ Clean, highly commented, production-quality code\n- ✅ Designed for **easy personal deployment** or **professional demos**\n\n\u003cbr /\u003e\n\n\n## 📊 Demo screenshot\n![Demo](demo/local_chatbot.jpg)\n\n---\n\n## 📂 Project Structure\n\n```plaintext\n.\n├── local_chatbot.py      # Main backend: extraction + FAISS + Ollama + Flask\n├── templates/\n│   └── index.html        # Frontend chat UI\n├── faiss_index/\n│   ├── faiss.index       # Saved FAISS vector database\n│   └── chunks.pkl        # Saved split document chunks\n├── pdf_files/            # Your source PDFs\n├── docx_files/           # Your source DOCX files\n├── README.md             # You are here :)\n\n\n🔑 Environment Variables\nVariable\tPurpose\nOLLAMA_HOST\tOllama server URL (default: http://localhost:11434)\nEnsure Ollama is installed locally with required models downloaded!\n\n🖥️ Demo Screenshots\n\n🏗️ Setup Instructions\n\n# 1. Clone repo\ngit clone https://github.com/yourusername/sydney-local-rag-chatbot.git\ncd sydney-local-rag-chatbot\n\n# 2. (Optional) Create virtual environment\npython -m venv venv\nsource venv/bin/activate  # (Linux/Mac)\nvenv\\Scripts\\activate     # (Windows)\n\n# 3. Install required packages\npip install -r requirements.txt\n\n# 4. Run the app\npython local_chatbot.py\n\n\nAccess chatbot at: http://127.0.0.1:5000\n\n🛡️ License\nThis project is licensed under the MIT License.\n\n🤝 Contributing\nContributions are welcome! 🚀\n\nPlease create an issue before submitting pull requests.\nEnsure you follow basic Python code style guidelines (flake8).\n\n📢 Acknowledgments\nFAISS (Facebook AI Similarity Search)\n\nSentence Transformers (HuggingFace)\n\nOllama - Local LLM Runtime\n\nFlask Framework\n\n🔥 Connect\nIf you're passionate about the intersection of\nData Science × AI Engineering × Product Thinking — let's connect!\nAlways building smart, offline-first AI products! 🚀\n\nLinkedIn : https://www.linkedin.com/in/mrigendranath/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnds18%2Fsydney-local-rag-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnds18%2Fsydney-local-rag-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnds18%2Fsydney-local-rag-chatbot/lists"}