{"id":28450455,"url":"https://github.com/busrarafa/llama-3.2-chat-bot","last_synced_at":"2025-09-17T21:22:05.352Z","repository":{"id":295403089,"uuid":"961112492","full_name":"BusraRafa/llama-3.2-chat-bot","owner":"BusraRafa","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-30T08:25:30.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-30T10:08:47.795Z","etag":null,"topics":["chatbot","langchain","langchainopenai","llama3","llama3-3","ollama","python3","streamlit"],"latest_commit_sha":null,"homepage":"https://llama-3-2-chat-bot.vercel.app","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/BusraRafa.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-05T19:25:31.000Z","updated_at":"2025-08-30T08:25:33.000Z","dependencies_parsed_at":"2025-05-25T11:25:31.448Z","dependency_job_id":"9b622895-44d1-4897-ab87-8d88fd67890a","html_url":"https://github.com/BusraRafa/llama-3.2-chat-bot","commit_stats":null,"previous_names":["busrarafa/llama-3.2-chat-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BusraRafa/llama-3.2-chat-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2Fllama-3.2-chat-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2Fllama-3.2-chat-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2Fllama-3.2-chat-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2Fllama-3.2-chat-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BusraRafa","download_url":"https://codeload.github.com/BusraRafa/llama-3.2-chat-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2Fllama-3.2-chat-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275666000,"owners_count":25506162,"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-17T02:00:09.119Z","response_time":84,"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":["chatbot","langchain","langchainopenai","llama3","llama3-3","ollama","python3","streamlit"],"created_at":"2025-06-06T15:07:32.800Z","updated_at":"2025-09-17T21:22:05.335Z","avatar_url":"https://github.com/BusraRafa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦙 LLaMA 3.2 Chatbot (Streamlit + LangChain)\n\nAn interactive chatbot UI powered by **LLaMA 3.2**, built using **Streamlit** and **LangChain**. This project runs a local LLaMA model via **Ollama**, enabling fast and private chat interactions directly in your browser.\n\n## 🚀 Features\n\n- Chat UI built with **Streamlit**\n- Uses **LangChain** for prompt formatting and parsing\n- Local inference using **Ollama** (`llama3.2:3b`)\n- Session-based conversation history\n- Ready for Codespaces or local Docker/Devcontainer environments\n\n---\n\n## 📦 Requirements\n\n- Python 3.11+\n- [Ollama](https://ollama.com/) running locally with `llama3.2:3b` model installed\n\n## Python Dependencies\n\n### 1. Clone the Repository\n```bash\ngit clone https://github.com/BusraRafa/llama-3.2-chat-bot.git\ncd llama-3.2-chat-bot\n```\n### 2. Create a Virtual Environment (optional but recommended)\n```bash\npython -m venv myenv\nmyenv\\Scripts\\activate   #For windows\n```\n**Install dependencies in the project folder with:**\n   ```bash\n   pip install -r requirements.txt\n```\n**Contents of requirements.txt:**\n```nginx\nstreamlit\nlangchain\nlangchain_openai\nlangchain_core\nlangchain_ollama\nlangchain_community\npython-dotenv\n```\n### ⚙️ Dev Container Support\n\nThis repo includes a `.devcontainer/devcontainer.json` for seamless development in GitHub Codespaces or locally using VS Code Dev Containers.\n\n**Features:**\n\n- Preconfigured Python 3.11 image  \n- Auto-installs packages from `requirements.txt`  \n- Automatically starts the chatbot on port `8501`\n\n---\n\n## 🧠 How It Works\n\nThe chatbot interface is defined in `chatbot.py`:\n\n- Loads the `llama3.2:3b` model via LangChain's `ChatOllama`\n- Maintains user and assistant messages in Streamlit session state\n- Displays chat messages in a conversational format\n\n---\n\n## 🛠️ Running the App\n\nMake sure [Ollama](https://ollama.com/) is running and the model is pulled:\n\n```bash\nollama pull llama3.2:3b\n```\n**Then run the chatbot:**\n```bash\nstreamlit run lama/chatbot.py\n```\nThe app will be available at: http://localhost:8501\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusrarafa%2Fllama-3.2-chat-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbusrarafa%2Fllama-3.2-chat-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusrarafa%2Fllama-3.2-chat-bot/lists"}