<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: NgetichB</title>
    <description>The latest articles on DEV Community by NgetichB (@ngetichb).</description>
    <link>https://dev.to/ngetichb</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3256306%2F2b8ae2e5-f5fc-44b2-ada6-3478f96ef25c.png</url>
      <title>DEV Community: NgetichB</title>
      <link>https://dev.to/ngetichb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ngetichb"/>
    <language>en</language>
    <item>
      <title>RAG for Dummies</title>
      <dc:creator>NgetichB</dc:creator>
      <pubDate>Sat, 13 Sep 2025 21:04:33 +0000</pubDate>
      <link>https://dev.to/ngetichb/rag-for-dummies-2ikl</link>
      <guid>https://dev.to/ngetichb/rag-for-dummies-2ikl</guid>
      <description>&lt;p&gt;Retrieval Augmented Generation(RAG) is a machine learning technique that enhances the capabilities of Large Language Models to provide more accurate and up-to date responses.&lt;/p&gt;

&lt;p&gt;How RAG works:&lt;/p&gt;

&lt;p&gt;(i)The user asks the Large Language Models (LLM) a question&lt;/p&gt;

&lt;p&gt;(ii)Retrieval is the second step whereby the RAG system uses the question asked to search an external knowledge base for relevant information. The RAG system uses these three techniques; chunking, embedding and vector database. Chunking- the information in the knowledge base is broken into smaller pieces for efficient searching, the chunks are then converted into numerical representations that capture their meanings, finally the system searches a vector database to find the chunks that are more likely similar to the question asked.&lt;/p&gt;

&lt;p&gt;(iii)Augmentation-The most relevant information from the retrieval process is then added to the original question to form an ‘augmented prompt’&lt;/p&gt;

&lt;p&gt;(iv)The LLM receives the prompt and uses the original question and the retrieved context to generate a more comprehensive and accurate response&lt;/p&gt;

&lt;p&gt;Models used in RAG&lt;/p&gt;

&lt;p&gt;(i)Retrieval Models- these act as a detective that gathers relevant documents from the external knowledge base before the LLM generates an answer. The two types of retriever models are Sparse- examples BM25 and TF-IDF and Dense retrievers -eg Llamaindex &amp;amp; Haystack.&lt;/p&gt;

&lt;p&gt;(ii) Language Models (LLMs)- the generation component takes the users original prompt and the retrieved information and uses its learned knowledge to create a coherent, natural language response. The examples are- Transformer-based models( GPT-2, GPT-3, and BART (Bidirectional and Auto-Regressive Transformers) and Flan T5 used for the generation part&lt;/p&gt;

&lt;p&gt;RAG is applied in Medical AI, chatbots, chat engines and legal assistance. It serves the purpose of bridging the gap between static information and dynamic knowledge hence reduces ambiguity and increases precision, transparency and accuracy.&lt;/p&gt;

</description>
      <category>rag</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>UNSUPERVISED LEARNING: Clustering…</title>
      <dc:creator>NgetichB</dc:creator>
      <pubDate>Sun, 31 Aug 2025 01:51:53 +0000</pubDate>
      <link>https://dev.to/ngetichb/unsupervised-learning-clustering-5dkn</link>
      <guid>https://dev.to/ngetichb/unsupervised-learning-clustering-5dkn</guid>
      <description>&lt;p&gt;Unsupervised learning is a type of machine learning where algorithms analyze and cluster unlabeled datasets to identify hidden patterns, similarities and structures without predefined categories or even human intervention.&lt;br&gt;
You may ask yourself what the difference between supervised and unsupervised learning is.. Well it is the objectives of each. Concrete and ground-truth labels are necessary for supervised learning in order to train models that respond to highly particular queries whereas unsupervised learning aims at analyzing only features, sorting them into groups without specific tasks&lt;br&gt;
How Unsupervised Learning works;&lt;br&gt;
(i)Unlabeled data input- the algorithm is provided with a huge dataset without pre-defined labels&lt;br&gt;
(ii)Pattern discovery- the algorithm processes the raw data provided, identifying relationships, patterns and structures&lt;br&gt;
(iii)Inference and Organization-the algorithm infers rules and organizes the data provided to it by clustering, association rule and dimensionality reduction&lt;br&gt;
(iv) Insight Generation- The result is a model that offers fresh perspectives, such spotting obscure subgroups in the data or identifying linkages might have been missed.&lt;br&gt;
The three main models used in unsupervised learning are; Clustering Models, Dimensional Reduction Models and Association Rule Model.&lt;br&gt;
Lets have a look into the Clustering Model:&lt;br&gt;
Clustering is a technique in unsupervised learning that divides a collection of data points into groups according to how similar they are. It uses unlabeled data to find underlying structures and patterns in the dataset. The techniques of clustering are listed below:&lt;br&gt;
(i)K-Means Clustering which is an unsupervised machine learning technique that is used to partition a number of observations in to clusters where each observation belongs to the cluster with the nearest mean.&lt;br&gt;
(ii)Hierarchial Clustering is an unsupervised machine learning technique in clustering that creates a hierarchy of nested clusters by combining related data points into clusters. Hierarchical clustering creates a hierarchy of nested clusters by combining related data points into clusters. Hierarchical clustering does not require the number of clusters to be predetermined, unlike K-Means clustering. The two types of Hierarchial clustering are: Agglomerative and divisive clustering.&lt;br&gt;
Clustering is an important technique that is practically applicable in various fields. Based on the data characteristics rather than the process itself, it is key to choose the right clustering method to use.&lt;/p&gt;

</description>
      <category>machinelearning</category>
    </item>
    <item>
      <title>Supervised Learning: Classification</title>
      <dc:creator>NgetichB</dc:creator>
      <pubDate>Sat, 23 Aug 2025 22:31:47 +0000</pubDate>
      <link>https://dev.to/ngetichb/supervised-learning-classification-12a4</link>
      <guid>https://dev.to/ngetichb/supervised-learning-classification-12a4</guid>
      <description>&lt;p&gt;Supervised learning is a type of machine learning where a given algorithm learns from a labeled dataset that consists of input and output pairs;&lt;br&gt;
It is used for regression(predicting progressive numerical values)and classification (Categorization of data into discrete classes)&lt;/p&gt;

&lt;p&gt;How does Classification work in machine learning?&lt;/p&gt;

&lt;p&gt;(i)Data Preparation where a dataset containing input features and their corresponding class labels is prepared&lt;/p&gt;

&lt;p&gt;(ii) Model Training whereby a classification algorithm (e.g., Logistic Regression, Support Vector Machines, Decision Trees, K-Nearest Neighbors) is chosen and trained on the labeled training data, here the algorithm learns the relationship between the input features and the target class labels.&lt;/p&gt;

&lt;p&gt;(iii) Evaluation of the model- the performance of the trained model is evaluated based on the testing data. The metrics- accuracy, precision, recall and F1-score are used for evaluation&lt;/p&gt;

&lt;p&gt;(iv)Prediction- A model can be used to predict the class label once the model is trained and evaluated&lt;/p&gt;

&lt;p&gt;What Models are used for Classification?!&lt;br&gt;
-Logistic Regression&lt;br&gt;
-Decision Trees&lt;br&gt;
-Support Vector Machines (SVMs)&lt;br&gt;
-Naive Bayes&lt;br&gt;
-K-Nearest Neighbors&lt;/p&gt;

&lt;p&gt;While precision, recall and accuracy are useful metrics for evaluating classifiers, determining an appropriate balance between false positives and false negatives depends on the particular problem application and the relative costs of each.&lt;br&gt;
Machine learning is important as it results in automation of tasks and enhances accuracy, efficiency and proper decision making; which are key in the most important industries that surround and support human existence in general &lt;/p&gt;

</description>
    </item>
    <item>
      <title>How Excel is used in Real-World Data Analysis</title>
      <dc:creator>NgetichB</dc:creator>
      <pubDate>Wed, 11 Jun 2025 08:53:09 +0000</pubDate>
      <link>https://dev.to/ngetichb/how-excel-is-used-in-real-world-data-analysis-3bg</link>
      <guid>https://dev.to/ngetichb/how-excel-is-used-in-real-world-data-analysis-3bg</guid>
      <description>&lt;p&gt;Excel is a spreadsheet program developed by Microsoft that features calculation capabilities, graphic tools, pivot tables and VBA-a macro programming language. Excel organizes data or information in rows and columns&lt;/p&gt;

&lt;p&gt;Excel is a useful tool in the real-world data analysis! It is used for business analysis-use of various types of data to help in decision making with regards to the business. Excel is used for financial planning and reporting-one can generate financial statements and balance sheets. Financial reporting is essential in predicting future financial performances and assessing probable investments and risks that may be involved. Additionally, excel is used to store and manage data hence making it easy to access and extract information when needed&lt;/p&gt;

&lt;p&gt;The features in excel are:&lt;br&gt;
1.Data entry and management-Excel allows one to enter data in rows and columns, the data can further be used to perform tasks by applying the formulas in excel such as SUM, AVERAGE &amp;amp; IF&lt;br&gt;
2.Formulas: Excel can be used to perform functions; for instance, the SUM adds the values in the cells, AVERAGE calculates the average of values in a particular column, VLOOKUP is used to search for a value in column and match it in the second column&lt;br&gt;
3.Operators-Excel consists of various operators such as +, -, *, &amp;lt;,&amp;gt;...etc, these are used to perform calculations during the analysis of data.&lt;/p&gt;

&lt;p&gt;After learning excel, my perception of it has really changed, it is a simple tool that is interesting and powerful at the same time, I can't wait to explore more of it and apply it!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
