Python

Dockerized FastAPI template with Celery and Redis for Asynchronous Task Management

While I was working on an application that required handling of long asynchronous tasks, I was talking to a mentor of mine who asked me how I was going to handle the user experience while those tasks were being processed in the background. I hadn’t really thought about it much, so he suggested that I look into using Celery with Redis as a message broker to manage those tasks asynchronously, allowing the main application to remain responsive.

Read More

Narrative Reconstruction, Stitching Together the Full Story Using LLMs

If you follow news online, especially from sources like Online Khabar, you know the drill. A big story, a political investigation, a natural disaster, a major development project, doesn’t fit in one article. Instead, it unfolds over days, weeks or months in separate reports: “New Witness in Case,” “Committee Grills Official,” “Court Hearing Postponed.” As a reader, it’s frustrating. You’re left with puzzle pieces scattered across time, trying to remember who said what, when it happened, and how it all connects.

Read More

Automated Fact Checking using LLMs and SERP

In today’s digital age, misinformation spreads rapidly, making it crucial to verify facts quickly and accurately. Leveraging Large Language Models (LLMs) and Search Engine Results Pages (SERP) APIs, we can automate the fact-checking process. Here’s a step-by-step guide on how to implement this.

Read More