{"id":37707291,"url":"https://github.com/lalanikarim/ai-chatbot-conversational","last_synced_at":"2026-01-16T13:10:10.098Z","repository":{"id":203229378,"uuid":"709114384","full_name":"lalanikarim/ai-chatbot-conversational","owner":"lalanikarim","description":"AI Chatbot with Streamlit, Langchain, and Mistral7b with conversational memory","archived":false,"fork":false,"pushed_at":"2023-10-29T17:04:26.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-10-29T18:31:12.649Z","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}},"created_at":"2023-10-24T03:24:52.000Z","updated_at":"2023-10-29T18:31:12.650Z","dependencies_parsed_at":null,"dependency_job_id":"3f0671e0-1db2-469b-ba46-51b55681cc0b","html_url":"https://github.com/lalanikarim/ai-chatbot-conversational","commit_stats":null,"previous_names":["lalanikarim/ai-chatbot-conversational"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/lalanikarim/ai-chatbot-conversational","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalanikarim%2Fai-chatbot-conversational","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalanikarim%2Fai-chatbot-conversational/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalanikarim%2Fai-chatbot-conversational/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalanikarim%2Fai-chatbot-conversational/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lalanikarim","download_url":"https://codeload.github.com/lalanikarim/ai-chatbot-conversational/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalanikarim%2Fai-chatbot-conversational/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:08.957Z","updated_at":"2026-01-16T13:10:10.092Z","avatar_url":"https://github.com/lalanikarim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: Ai Chatbot with Conversational Memory\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 + Conversational Memory\n\nRun your own AI Chatbot locally without a GPU.\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 model will chatbot will allow you to define it's personality and respond to the questions accordingly.  \nThis example remembers the chat history allowing you to ask follow up questions.\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 envitonment:\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 `models` directory will be created and the app will download the `Mistral7b` quantized model from `huggingface` 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-36-22](https://github.com/lalanikarim/ai-chatbot-conversational/assets/1296705/9919a3b3-c24e-4b1d-a121-1eb6724db5c6)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalanikarim%2Fai-chatbot-conversational","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flalanikarim%2Fai-chatbot-conversational","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalanikarim%2Fai-chatbot-conversational/lists"}