- My name is Abdul Rahim. I am currently pursuing a Masters degree at Universit盲t Regensburg, Deutschland.
- I publish blogs and articles on this website. Please feel free to contact me at abdulrahimhere[at]yahoo.com.
How Does Retrieval Augmented Generation Work
Introduction RAG (Retrieval-Augmented Generation) is a technique where a model can generate text based on external information retrieved from a knowledge base, rather than relying solely on its pre-trained knowledge. The knowledge base is a collection of documents $$ D = { d_1, d_2, \dots, d_n } $$ such that, whenever text is generated, the information is based on the knowledge base as much as possible. There are two components to a RAG model: ...
How to Build Neural Networks From Scratch
馃帗 PyTorch CNN Explained from Scratch - Step by Step I鈥檒l explain everything from the absolute basics. No prior PyTorch knowledge required! 馃摎 Part 1: The Absolute Basics - Understanding the Pieces 1.1 What is a CNN? A Convolutional Neural Network (CNN) is like a detective that: Scans an image with small filters to find patterns (edges, textures) Combines these patterns to recognize objects Learns which patterns are important for classification Analogy: Imagine looking for a face in a crowd: ...
Widecolumn database systems
Introduction Wide column database systems store data in column families. Below is a small example of a NoSQL database: Characterstics Although, these relations look like tables, but they鈥檙e not actually tables. This is because, we cannot make arbitrary selections based on non-primary columns. For example, the following query will fail: Therefore, similar to key-value stores, we can only query by using primary keys. A primary key in a wide column database consists of one or more partition keys and zero or more clustering keys (or sorting keys). ...
Can quantum entanglement help you sync your database replicas?
Introduction To ensure scalability, reliability and fault tolerance, web applications replicate data across multiple database nodes/clusters/availability zones/regions and cloud providers. However, replicating data introduces the challenge of keeping the copies in sync. In this article, we contemplate weather quantum entanglement can enable database replicas to sync instantinously. The ideas behind entanglement stem from quantum mechanics, a subfield of physics which describes the behaviour of sub atomic particles. In this post, we first describe the basics of database replication, then we move on the show the theoritical application of quantum entanglement in database replication. ...
Search completetion systems
Introduction When you type something on a search engine like google. You are continously shown search suggestions, as you type. API As you type in the search box, behind the scenes, google continously sends request to the backend. The requests might look like this: 1 2 3 4 5 GET /autocomplete?q=be { // metadata such as user id etc for personalized suggestion } The backend responds with a list of suggestions, which might look something like: ...