Home – Datmt

  • Building RAG: A Hello World Example

    Building RAG: A Hello World Example

    Table of Contents1 Overview2 What is RAG?3 The general flow of a RAG application4 Prerequisites5 The Complete Code6 Breaking Down the Code6.1 Step 1: Document Chunking6.2 Step 2: Creating Embeddings6.3 Step 3: Building the Vector Store6.4 Step 4: Semantic Retrieval6.5 Step 5: Augmented Generation7 Running the Example8 Why This Matters9 Limitations and Next Steps10 Conclusion

    Read More


  • Fixing “Exec Format Error” When Building ARM Docker Images on Intel Jenkins

    Fixing “Exec Format Error” When Building ARM Docker Images on Intel Jenkins

    Table of Contents1 Overview2 The Solution: QEMU Emulation (binfmt)3 Conclusion Overview If you are building Docker images for ARM architectures (like Apple Silicon or Raspberry Pi) on a standard Intel-based Jenkins server, you might have hit a wall that looks exactly like this: I ran into this recently. My pipeline was working perfectly for weeks

    Read More


  • How to Create a Case-Insensitive Enum in Python

    How to Create a Case-Insensitive Enum in Python

    Table of Contents1 Overview2 How to create case insensitive enum Overview Have you ever been tripped up by a simple typo? We’ve all been there. You write color = “Red”, but somewhere else, your code checks for “red”, and your program breaks. It’s an all-too-common bug when dealing with user input, API data, or configuration files. The

    Read More


  • Create HotKeys For Applications On KDE Wayland with kdotool

    Create HotKeys For Applications On KDE Wayland with kdotool

    Table of Contents1 Overview2 Step 1: Install kdotool3 Setp 2: Find your window class4 Step 3: Find the executable of the equivalent class5 Step 3: Create script to run/activate the program6 Step 5: Create the hotkey7 Conclusion Overview When switching from Windows to Linux, the thing I miss most is AutoHotkey, especially the ability to

    Read More


  • Guide to Fixing a Slow Android Emulator on Arch Linux

    Guide to Fixing a Slow Android Emulator on Arch Linux

    Table of Contents1 Overview1.1 Part 1: The Foundation – Enabling KVM for CPU Acceleration1.1.1 Step 1: Verify Hardware Support1.1.2 Step 2: Install Virtualization Packages1.1.3 Step 3: Enable and Start the Libvirt Service1.1.4 Step 4: Add Your User to the Correct Groups1.2 Part 2: The Graphics Glitch – Fixing GPU Acceleration1.2.1 Step 1: Diagnose the Graphics

    Read More