Recent posts

Handling Long-Running Tasks in Modern Web Apps

4 minute read

In this post, I explore how modern web apps like RAGflow handle long-running tasks (such as OCR or keyword extraction) without relying on time-limited HTTP API methods. Instead, tasks are processed in the background by worker processes, with progress updates communicated to the frontend via Redis. I demonstrate this design with a simple app built using FastAPI, Vue 3, and Redis, where tasks are submitted, processed in the background, and their statuses are periodically updated on the frontend...

Private LLM Integration with RAGFlow: A Step-by-Step Guide

3 minute read

If you’ve found your way here, you’re probably already excited about the potential of the RAGFlow project and eager to see it in action. I was in the same position, so I delved into the codebase to see how it could work with custom large language models (LLMs). This post will walk you through my findings and show you how to get RAGFlow running with your own LLM.

Predictive Underwriting In A Nutshell

5 minute read

Predictive underwriting is revolutionizing the insurance industry by harnessing data analytics and machine learning. This innovative approach streamlines risk assessment, enhances customer experience, and tackles critical challenges like non-disclosure. By analyzing vast amounts of data from various sources, including wearable devices, insurers can make faster, more accurate decisions. This leads to quicker approvals, fairer pricing, and personalized products. As the insurance landscape evolv...

readthedown: A modified RMarkdown template for stylish analytical documents

2 minute read

This is a modified readthedown rmarkdown template, which is greatly inspired and modified based on juba/rmdformats package. readthedown offer a similar sphnix style, which is commmonly used in various python package documentations. I personally very much like the readthedown style and hence dive a little bit on the source code to figure out ways to make it easier for further customization.