{"id":29216952,"url":"https://github.com/samay-jain/chatbot-with-context-and-memory-management","last_synced_at":"2026-05-16T01:34:14.359Z","repository":{"id":300808466,"uuid":"1006177562","full_name":"samay-jain/Chatbot-with-context-and-memory-management","owner":"samay-jain","description":"A lightweight, privacy-focused command-line chatbot built in Python that interacts with large language models locally using the Ollama API. Supports conversation saving, loading, and automatic summarization to manage token limits. Perfect for offline, secure AI-assisted chats leveraging models like LLaMA.","archived":false,"fork":false,"pushed_at":"2025-06-23T17:28:35.000Z","size":12996,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-02T01:58:06.649Z","etag":null,"topics":["ai","chatbot","cli","command-line","conversation","language-model","llama","local-llm","machine-learning","nlp","offline-ai","ollama","privacy-focused","python","token-management"],"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/samay-jain.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-06-21T17:03:42.000Z","updated_at":"2025-06-23T17:28:39.000Z","dependencies_parsed_at":"2025-06-23T18:48:34.296Z","dependency_job_id":null,"html_url":"https://github.com/samay-jain/Chatbot-with-context-and-memory-management","commit_stats":null,"previous_names":["samay-jain/chatbot-with-context-and-memory-management"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samay-jain/Chatbot-with-context-and-memory-management","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samay-jain%2FChatbot-with-context-and-memory-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samay-jain%2FChatbot-with-context-and-memory-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samay-jain%2FChatbot-with-context-and-memory-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samay-jain%2FChatbot-with-context-and-memory-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samay-jain","download_url":"https://codeload.github.com/samay-jain/Chatbot-with-context-and-memory-management/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samay-jain%2FChatbot-with-context-and-memory-management/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272468442,"owners_count":24939722,"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-08-28T02:00:10.768Z","response_time":74,"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":["ai","chatbot","cli","command-line","conversation","language-model","llama","local-llm","machine-learning","nlp","offline-ai","ollama","privacy-focused","python","token-management"],"created_at":"2025-07-03T02:00:26.598Z","updated_at":"2026-05-16T01:34:14.329Z","avatar_url":"https://github.com/samay-jain.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧠 Local Chatbot Using Ollama API\n\nThis is a simple command-line chatbot built in Python that uses the [Ollama](https://ollama.com/) API to interact with large language models (such as LLaMA). It allows you to chat with the model, save and load conversations, and summarize previous messages to manage token usage.\n\n---\n\n## 🚀 Features\n\n- 🤖 Interactive chatbot powered by local LLMs via Ollama\n- 💾 Save and load conversation history to/from a file\n- 🧹 Automatically or manually summarize past messages to reduce token usage\n- 📡 Connects to `localhost:11434` using Ollama's REST API\n- 🛠️ Easy to extend or customize\n\n---\n\n## 🛠 Requirements\n\n- Python 3.7+\n- [Ollama](https://ollama.com/) installed and running locally\n- An Ollama-compatible model (e.g., LLaMA 3) pulled and ready\n\n### Install required Python packages:\n\n```bash\npip install requests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamay-jain%2Fchatbot-with-context-and-memory-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamay-jain%2Fchatbot-with-context-and-memory-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamay-jain%2Fchatbot-with-context-and-memory-management/lists"}