Fix Unnecessary React Re-Renders in a Chat UI
An LLM streams tokens and React repaints your whole chat history on every one. How to keep the message list still while a single reply streams in.
An LLM streams tokens and React repaints your whole chat history on every one. How to keep the message list still while a single reply streams in.
SSE streams one direction only. When an LLM chat needs the browser to interrupt a running response, FastAPI WebSockets give you a full-duplex channel.
LLM structured output isn't valid JSON until the last token. Here's how to complete and parse a streaming buffer so you can render fields as they arrive.
A user hits stop or switches chats and the old LLM stream keeps writing tokens and running up cost. How to cancel a streaming fetch in React the right way.
LLM tokens arrive one at a time, and re-parsing Markdown on every token flickers and drags. How to render streaming Markdown in React without the jank.
Stream LLM output token by token from a FastAPI backend with Server-Sent Events: working code, the EventSource client, proxy buffering, and failure modes.
AI-powered document creation platform pairing Claude with a live .docx / .pptx / .pdf / .xlsx preview. Chat on the left, documents render live on the right, each user gets their own isolated E2B sandbox.
Developing, Operating and extending on WMCore + Unified, so CMS Monte Carlo and reconstruction workloads stay healthy across the WLCG sites.
Partnering with MIT to build an LLM-powered RAG copilot for CMS computing operations.
Semester Project - Information Retrieval and Artificial Intelligence - CS317 & CS401 - FAST NUCES (Karachi)
Vector Space Model for Information Retrieval- Assignment 2 - CS317 - FAST NUCES (Karachi).
Inverted Index Based Boolean Information Retrieval Model - Assignment 1 - CS317 - FAST NUCES (Karachi).
QRSMS - QR based Student Management System. built using React, Python Django, PostgreSQL.
NUDESK is built to provide students a platform to seek help from seniors. built using React, Python Django, PostgreSQL.