{"id":29112713,"url":"https://github.com/kratugautam99/logiclink-project","last_synced_at":"2026-04-07T09:31:46.444Z","repository":{"id":291201789,"uuid":"976772276","full_name":"Kratugautam99/LogicLink-Project","owner":"Kratugautam99","description":"LogicLink is a conversational AI chatbot developed by Kratu Gautam (AIML Engineer). Powered by the TinyLlama-1.1B-Chat-v1.0 model, it provides an interactive interface for engaging conversations, query resolution, and task assistance. Version 5 features streaming responses, conversation management, and a sleek GUI.","archived":false,"fork":false,"pushed_at":"2025-06-27T01:19:17.000Z","size":39750,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-27T02:21:10.065Z","etag":null,"topics":["antd-design","chatbot-application","conversational-ai","cuda","gradio","graphical-user-interface","huggingface-spaces","huggingface-transformers","jupyter-notebooks","keras","large-language-models","mlops","model-service-controller","modelscope-studio","natural-language-generation","natural-language-processing","pytorch","reasoning-agent","tensorflow"],"latest_commit_sha":null,"homepage":"https://huggingface.co/spaces/KraTUZen/LogicLink-Project-Space","language":"Jupyter Notebook","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/Kratugautam99.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-05-02T18:10:12.000Z","updated_at":"2025-06-27T01:33:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"765f8082-19bb-44e3-a793-37f4764667cc","html_url":"https://github.com/Kratugautam99/LogicLink-Project","commit_stats":null,"previous_names":["kratugautam99/logiclink-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kratugautam99/LogicLink-Project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kratugautam99%2FLogicLink-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kratugautam99%2FLogicLink-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kratugautam99%2FLogicLink-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kratugautam99%2FLogicLink-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kratugautam99","download_url":"https://codeload.github.com/Kratugautam99/LogicLink-Project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kratugautam99%2FLogicLink-Project/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262581282,"owners_count":23331908,"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","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":["antd-design","chatbot-application","conversational-ai","cuda","gradio","graphical-user-interface","huggingface-spaces","huggingface-transformers","jupyter-notebooks","keras","large-language-models","mlops","model-service-controller","modelscope-studio","natural-language-generation","natural-language-processing","pytorch","reasoning-agent","tensorflow"],"created_at":"2025-06-29T11:02:15.797Z","updated_at":"2026-04-07T09:31:46.438Z","avatar_url":"https://github.com/Kratugautam99.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💬 LogicLink: Version 5\n\n**LogicLink** is a conversational AI chatbot developed by **Kratu Gautam** (AIML Engineer). Powered by the **TinyLlama-1.1B-Chat-v1.0** model, it provides an interactive interface for engaging conversations, query resolution, and task assistance. Version 5 features streaming responses, conversation management, and a sleek GUI.\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/Kratugautam99/LogicLink-Project/main/assets/FullIcon.jpg\" \n       alt=\"LogicLink Logo\" \n       width=\"500\"\u003e\n\u003c/div\u003e\n\n\n---\n## 🔍 Topic Index\n- [✨ Key Features](#-key-features)\n- [📸 GUI Display](#-gui-display)\n- [🛠️ Installation](#-installation)\n  - [Prerequisites](#prerequisites)\n  - [Setup](#setup)\n  - [Directory Structure](#directory-structure)\n- [💬 Usage](#-usage)\n- [⚙️ Technical Architecture](#-technical-architecture)\n  - [Model Configuration](#model-configuration)\n  - [Key Components](#key-components)\n- [🧪 Troubleshooting Guide](#-troubleshooting-guide)\n- [🚀 Future Roadmap](#-future-roadmap)\n- [📜 License](#-license)\n\n--- \n## ✨ Key Features\n\n| Feature | Description | Benefit |\n|---------|-------------|---------|\n| **🤖 Conversational AI** | TinyLlama-1.1B-Chat-v1.0 powered responses | Natural, engaging dialogue |\n| **⚡ Streaming Responses** | Real-time token generation with `TextIteratorStreamer` | Smooth user experience |\n| **🎨 Customizable GUI** | Red/blue/black theme with Gradio \u0026 ModelScope Studio | Professional interface |\n| **🗂️ Conversation Management** | New chat, clear history, delete conversations | Full control over interactions |\n| **⏱️ Single Time Stamp** | Regex-cleaned response timing `*(4.50s)*` | Consistent performance metrics |\n| **🚀 CUDA Support** | Automatic GPU detection with CPU fallback | Optimized performance |\n| **🛡️ Error Handling** | Graceful failure for memory/input issues | Robust user experience |\n\n---\n\n## 📸 GUI Display\n\n---\n\n### 💬 Full-Fledged Conversation\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/Kratugautam99/LogicLink-Project/main/Screenshots/LogicLinkFullFledgedConversation.png\" alt=\"LogicLink Full Conversation\" width=\"80%\" /\u003e\n\u003c/p\u003e\n\nLogicLink engaging in a complete dialogue, handling multiple turns seamlessly.  \nThis demonstrates its ability to maintain context, respond naturally, and adapt to user intent across an extended session.\n\n---\n\n### 🧑‍💻 Coding Response (Part 1)\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/Kratugautam99/LogicLink-Project/main/Screenshots/LogicLinkCodingResponse1.png\" alt=\"LogicLink Coding Response 1\" width=\"80%\" /\u003e\n\u003c/p\u003e\n\nLogicLink generating a structured coding solution.  \nNotice how it explains the reasoning step-by-step, making the output not just correct but also **educational**.\n\n---\n\n### 🧑‍💻 Coding Response (Part 2)\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/Kratugautam99/LogicLink-Project/main/Screenshots/LogicLinkCodingResponse2.png\" alt=\"LogicLink Coding Response 2\" width=\"80%\" /\u003e\n\u003c/p\u003e\n\nA continuation of the coding workflow, where LogicLink refines and expands on its earlier solution.  \nThis shows its iterative reasoning ability — improving code quality when prompted.\n\n---\n\n### 🔑 Core Response\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/Kratugautam99/LogicLink-Project/main/Screenshots/LogicLinkCoreResponse.png\" alt=\"LogicLink Core Response\" width=\"80%\" /\u003e\n\u003c/p\u003e\n\nA snapshot of LogicLink delivering a **core logical explanation**.  \nThis highlights its strength in breaking down abstract queries into clear, actionable insights.\n\n---\n\n### ⚡ While Processing\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/Kratugautam99/LogicLink-Project/main/Screenshots/LogicLinkWhileProcessing.png\" alt=\"LogicLink While Processing\" width=\"80%\" /\u003e\n\u003c/p\u003e\n\nThe system mid‑inference, showing its **real-time feedback loop**.  \nThis reassures users that LogicLink is actively working on their request.\n\n---\n\n### 🔄 With vs Without Latest Output Text Box\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/Kratugautam99/LogicLink-Project/main/Screenshots/LogicLinkwithLOTB.png\" alt=\"LogicLink with LOTB\" width=\"45%\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/Kratugautam99/LogicLink-Project/main/Screenshots/LogicLinkwithoutLOTB.png\" alt=\"LogicLink without LOTB\" width=\"45%\" /\u003e\n\u003c/p\u003e\n\nA side‑by‑side comparison of LogicLink’s performance **with** and **without LOTB (Latest Output Text Box)**.  \nThe difference illustrates how LOTB enhances reasoning depth and response clarity.\n\n---\n\n### 📊 Bottom Section\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/Kratugautam99/LogicLink-Project/main/Screenshots/LogicLinkBottom.png\" alt=\"LogicLink Bottom Section\" width=\"80%\" /\u003e\n\u003c/p\u003e\n\nThe footer view of the interface, where conversation summaries and quick actions are displayed.  \nThis ties the user experience together, making LogicLink feel like a polished, end‑to‑end assistant.\n\n---\n\u003ca id=\"-installation\"\u003e\u003c/a\u003e\n## 🛠️ Installation\n\n### Prerequisites\n- Python 3.8+\n- CUDA-enabled GPU (recommended)\n- Dependencies:\n  ```bash\n  pip install gradio torch transformers modelscope-studio\n  ```\n  \n---\n### Setup\n1. Clone repository:\n   ```bash\n   git clone https://github.com/Kratugautam99/LogicLink-Project.git\n   cd LogicLink-Project\n   ```\n2. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n3. Run application:\n   ```bash\n   python app.py\n   ```\n\n---\n### Directory Structure\n```\nLogicLink-Project/\n├── LogicLinkVersion5.ipynb\n├── README.md\n├── app.py\n├── config.py\n├── .gitattributes\n├── requirements.txt\n├── assets/\n├── Documents/\n├── Screenshots/\n├── ui_components/\n└── Different Versions of LogicLink/  (not expanded)\n```\n\n---\n## 💬 Usage\n\n```python\n# Sample interaction flow\nuser \u003e\u003e \"Who are you?\"\nLogicLink \u003e\u003e \"I'm LogicLink V5, created by Kratu Gautam. How can I assist you today? *(4.50s)*\"\n```\n\n1. **Interface Controls**:\n   - 💬 Input field: Type queries\n   - ➕ New Chat: Start fresh conversation\n   - 🧹 Clear History: Reset current chat\n   - 🗑️ Delete: Remove conversations from sidebar\n\n2. **Performance Metrics**:\n   - ⏱️ Response time: 3-5s (GPU), 5-8s (CPU)\n   - 💾 RAM usage: 2-3GB (CPU), ~1.5GB (GPU)\n\n---\n\u003ca id=\"-technical-architecture\"\u003e\u003c/a\u003e\n\u003ch2\u003e\n  \u003cspan style=\"float: right; margin-left:35px;\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/Kratugautam99/LogicLink-Project/main/assets/lll.jpg\" alt=\"icon\" width=\"35\" /\u003e\n  \u003c/span\u003e\n      Technical Architecture\n\u003c/h2\u003e\n\n### Model Configuration\n```python\n# Core model parameters\nmodel = AutoModelForCausalLM.from_pretrained(\n    \"TinyLlama/TinyLlama-1.1B-Chat-v1.0\",\n    torch_dtype=torch.float16 if cuda else torch.float32\n)\n\n# Generation settings\ngeneration_kwargs = {\n    \"max_new_tokens\": 1024,\n    \"temperature\": 0.7,\n    \"top_k\": 50,\n    \"top_p\": 0.95,\n    \"num_beams\": 1\n}\n```\n---\n### Key Components\n1. **Prompt Engineering**:\n   ```\n   \u003c|system|\u003eYou are LogicLink V5 created by Kratu Gautam\u003c/s\u003e\n   \u003c|user|\u003e{user_input}\u003c/s\u003e\n   \u003c|assistant|\u003e\n   ```\n   \n2. **Streaming Pipeline**:\n   ```mermaid\n   graph LR\n   A[User Input] --\u003e B(Tokenizer)\n   B --\u003e C{TextIteratorStreamer}\n   C --\u003e D[Model Generation]\n   D --\u003e E[Real-time Output]\n   E --\u003e F[Regex Cleaner]\n   F --\u003e G[Timestamp Append]\n   ```\n\n3. **GUI Components**:\n   - `pro.Chatbot`: Conversation display\n   - `antdx.Sender`: Input field\n   - `antdx.Conversations`: Sidebar manager\n   - `antd.Button`: Action controls\n\n---\n## 🧪 Troubleshooting Guide\n\n| Issue | Solution |\n|-------|----------|\n| Double timestamps | Verify regex: `re.sub(r'\\*\\(\\d+\\.\\d+s\\)\\*', '', response)` |\n| Slow responses | Enable CUDA, reduce `max_new_tokens` to 512 |\n| GUI rendering issues | Update packages: `pip install --upgrade gradio modelscope-studio` |\n| Delete button failure | Check `menu_click` event binding in JS |\n| Model loading errors | Validate RAM ≥3GB, test with minimal example |\n\n**Minimal Test Script**:\n```python\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\ntokenizer = AutoTokenizer.from_pretrained(\"TinyLlama/TinyLlama-1.1B-Chat-v1.0\")\nmodel = AutoModelForCausalLM.from_pretrained(\"TinyLlama/TinyLlama-1.1B-Chat-v1.0\")\ninputs = tokenizer([\"Test input\"], return_tensors=\"pt\")\noutputs = model.generate(**inputs, max_new_tokens=10)\nprint(tokenizer.decode(outputs[0]))\n```\n\n---\n## 🚀 Future Roadmap\n- **Persistent Storage**: SQLite conversation history\n- **Multimodal Support**: Image/text inputs\n- **Enhanced Prompting**: Context-aware responses\n- **Deployment Options**: Docker containerization\n- **Performance**: Quantization for CPU optimization\n\n---\n## 📜 License\nMIT License - See [LICENSE](https://github.com/Kratugautam99/LogicLink-Project/LICENSE)\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  Developed with 🧠 by \u003cb\u003eKratu Gautam\u003c/b\u003e | AIML Engineer\u003cbr\u003e\n  \u003ca href=\"https://github.com/Kratugautam99\"\u003eGitHub\u003c/a\u003e | \n  \u003ca href=\"https://huggingface.co/spaces/KraTUZen/LogicLink-Project-Space\"\u003eHFT Space\u003c/a\u003e | \n  \u003ca href=\"https://www.gradio.app/\"\u003eUI Framework\u003c/a\u003e\n\u003c/div\u003e\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkratugautam99%2Flogiclink-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkratugautam99%2Flogiclink-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkratugautam99%2Flogiclink-project/lists"}