Introduction In the rapidly evolving landscape of Artificial Intelligence, Retrieval-Augmented Generation (RAG) has emerged as a pivotal technique for enhancing the factual accuracy and relevance of Large Language Models (LLMs). By enabling LLMs to retrieve information from external knowledge bases before generating responses, RAG mitigates common issues such as hallucination …
Federated Learning Explained: Collaborative AI Without Data Sharing
Introduction In an era where data privacy is paramount and artificial intelligence continues to advance at an unprecedented pace, Federated Learning (FL) has emerged as a revolutionary paradigm. This innovative approach allows multiple entities to collaboratively train a shared prediction model without exchanging their raw data. Imagine scenarios where hospitals …
OTP Authentication in Laravel & Vue.js for Secure Transactions
Introduction In today’s digital world, security is paramount, especially when dealing with sensitive data like user authentication and financial transactions. One of the most effective ways to enhance security is by implementing One-Time Password (OTP) authentication. This article explores how to implement OTP authentication in a Laravel backend with a …
Spring for GraphQL with Kotlin Coroutines
At the end of this article, you will know precisely how to create a Spring Boot GraphQL application that exposes queries and mutations with the help of Kotlin suspended functions and Flows. Long story short, we will see: how to prepare a GraphQL schema, what imports are necessary to utilize …
A Quick Guide to htmx in Kotlin
To be more specific, we will see a step-by-step process of writing HTML with typesafe Kotlin DSL, integrating htmx, and handling requests with Ktor. Eventually, we will get the below user table: But before we start, just a short disclaimer: although the main focus for this tutorial is the htmx …
Auto-reload in Ktor
Together, we will learn how to enable the Ktor development mode in several ways and how auto-reload can help with the Kotlin HTML DSL app example. Quick Ktor Setup As the first step, let’s quickly prepare a basic Ktor application responding with HTML. To do so, let’s navigate to the …
Run SQL Server Linux container images with Docker
In this post, you use Docker to pull and run the SQL Server Linux container image and see the demo of connecting from SQL Server Management Studio (SSMS). Open your PowerShell with elevated permission and run the following command. It pulls the SQL Server 2022 (16.x) Linux container image from …
How to Perform MS SQL Server Restore with RECOVERY and NORECOVERY Options
Introduction Backing up the database in MS SQL Server is vital to safeguard and recover the data in case of scenarios, like hardware failure, server failure, database corruption, etc. MS SQL Server provides different types of backups, such as differential, transactional, and full backup. A full backup allows you to …
MockK with Coroutines [5/5]
At this point, we spent a lot of time exploring MockK features and syntax, so at this point, adding coroutines will be trivial, trust me Of course, you can find the rest of the series on my blog, too: Getting Started with MockK in Kotlin [1/5] Verification in MockK [2/5] …
MockK: Spy, Relaxed Mock, and Partial Mocking [4/5]
In the fourth article in a series, we are going to learn what are MockK spies, relaxed mocks and how to do a partial mocking. At this point, we know quite a lot about mocks, verification, and how to perform stubbings. In this lesson, we are going to expand our …