{"id":37707295,"url":"https://github.com/lalanikarim/ai-chatbot","last_synced_at":"2026-01-16T13:10:10.222Z","repository":{"id":201078555,"uuid":"706491178","full_name":"lalanikarim/ai-chatbot","owner":"lalanikarim","description":"AI Chatbot with Streamlit, Langchain, and Mistral7b","archived":false,"fork":false,"pushed_at":"2024-04-25T06:11:59.000Z","size":29,"stargazers_count":20,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-25T07:28:08.165Z","etag":null,"topics":["ai","chatbot","langchain","llamacpp","llm","mistral-7b","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","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/lalanikarim.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}},"created_at":"2023-10-18T04:00:38.000Z","updated_at":"2024-04-25T07:28:10.677Z","dependencies_parsed_at":"2023-11-16T03:25:07.140Z","dependency_job_id":"ba617044-2760-40e5-8bd0-debe703b18ca","html_url":"https://github.com/lalanikarim/ai-chatbot","commit_stats":null,"previous_names":["lalanikarim/ai-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lalanikarim/ai-chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalanikarim%2Fai-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalanikarim%2Fai-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalanikarim%2Fai-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalanikarim%2Fai-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lalanikarim","download_url":"https://codeload.github.com/lalanikarim/ai-chatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalanikarim%2Fai-chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["ai","chatbot","langchain","llamacpp","llm","mistral-7b","streamlit"],"created_at":"2026-01-16T13:10:09.147Z","updated_at":"2026-01-16T13:10:10.217Z","avatar_url":"https://github.com/lalanikarim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: Ai Chatbot\nemoji: 📊\ncolorFrom: indigo\ncolorTo: gray\nsdk: streamlit\nsdk_version: 1.28.0\napp_file: main.py\npinned: false\nlicense: mit\n---\n\n# Streamlit + Langchain + LLama.cpp w/ Mistral\n\nRun your own AI Chatbot locally on a GPU or even a CPU.\n\nTo make that possible, we use the [Mistral 7b](https://mistral.ai/news/announcing-mistral-7b/) model.  \nHowever, you can use any quantized model that is supported by [llama.cpp](https://github.com/ggerganov/llama.cpp).\n\nThis AI chatbot will allow you to define its personality and respond to the questions accordingly.  \nThere is no chat memory in this iteration, so you won't be able to ask follow-up questions.\nThe chatbot will essentially behave like a Question/Answer bot.\n\n# TL;DR instructions\n\n1. Install llama-cpp-python\n2. Install langchain\n3. Install streamlit\n4. Run streamlit\n\n# Step by Step instructions\n\nThe setup assumes you have `python` already installed and `venv` module available.\n\n1. Download the code or clone the repository.\n2. Inside the root folder of the repository, initialize a python virtual environment:\n```bash\npython -m venv venv\n```\n3. Activate the python environment:\n```bash\nsource venv/bin/activate\n```\n4. Install required packages (`langchain`, `llama.cpp`, and `streamlit`):\n```bash\npip install -r requirements.txt\n```\n5. Start `streamlit`:\n```bash\nstreamlit run main.py\n```\n6. The `Mistral7b` quantized model from `huggingface` will be downloaded and cached locally from the following link:\n[mistral-7b-instruct-v0.1.Q4_0.gguf](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF/resolve/main/mistral-7b-instruct-v0.1.Q4_0.gguf)\n\n# Screenshot\n\n![Screenshot from 2023-10-23 20-00-09](https://github.com/lalanikarim/ai-chatbot/assets/1296705/65ceac4a-f3c0-41db-8519-182076afb215)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalanikarim%2Fai-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flalanikarim%2Fai-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalanikarim%2Fai-chatbot/lists"}