<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Momoh Mohammed Sheriff on Medium]]></title>
        <description><![CDATA[Stories by Momoh Mohammed Sheriff on Medium]]></description>
        <link>https://medium.com/@smomoh96?source=rss-8d6f5728c487------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fKLMUuCVWn_EuA7mamQkQA.jpeg</url>
            <title>Stories by Momoh Mohammed Sheriff on Medium</title>
            <link>https://medium.com/@smomoh96?source=rss-8d6f5728c487------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:51:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@smomoh96/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a RAG pipeline with source attribution and history-aware chat using Langchain and ChromaDB]]></title>
            <link>https://medium.com/@smomoh96/building-a-rag-pipeline-with-source-attribution-and-history-aware-chat-using-langchain-and-chromadb-7ad070f7bfed?source=rss-8d6f5728c487------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ad070f7bfed</guid>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[chroma]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Momoh Mohammed Sheriff]]></dc:creator>
            <pubDate>Thu, 30 Jan 2025 16:50:55 GMT</pubDate>
            <atom:updated>2025-01-30T16:50:55.795Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Osk0mWNsQHK_A2LOxFpXtw.jpeg" /></figure><p>Retrieval-augmented generation (RAG) is an AI framework that enhances large language models (LLMs) by incorporating a trusted external knowledge base, to generate more accurate and relevant results. By grounding its answers in real proprietary data, RAG seeks to improve the reliability of AI outputs. However, in practice, RAG can still experience AI hallucinations — instances where the model produces information that seems plausible but is incorrect or nonsensical.</p><p>In this tutorial, we’ll walk through the basic understanding of RAG and the steps to build a simple Retrieval-Augmented Generation (RAG) pipeline with a simple algorithm ‘source attribution’ and a history-aware question-and-answer chat. We’ll utilize Python, Langchain, Langchain-OpenAI, ChromaDB, and Poetry for this implementation.</p><p><strong>Prerequisites:</strong></p><ul><li>Basic understanding of Retrieval-augmented generation(I’ve got you on this one).</li><li>Basic understanding of Python programming.</li><li>Python version ≥ 3.9.0</li></ul><h3>How does RAG work?</h3><p>Retrieval-augmented generation (RAG) combines an information retrieval system with a generative AI model. First, the system retrieves relevant information from a knowledge-base based on the user’s query. Then, it feeds this information to the generative model, allowing it to produce a more accurate and contextually relevant response. This approach enables the AI to reference external knowledge beyond its training data, resulting in more informed and reliable answers.</p><h4>Key Phases in the RAG Process</h4><ol><li><strong>User Input:</strong></li></ol><ul><li>The user submits a query or question.</li></ul><p><strong>2. Retrieval Phase:</strong></p><ul><li><strong>Embedding:</strong> The query is converted into a numerical representation that captures its semantic meaning and relationships known as <a href="https://www.techtarget.com/searchenterpriseai/definition/vector-embeddings">embeddings</a>.</li><li><strong>Search:</strong> The embedding is used to find the most relevant documents or snippets from a knowledge base.</li><li><strong>Retrieval:</strong> The system fetches the most relevant information based on the search results.</li></ul><p><strong>3. Augmentation Phase:</strong></p><ul><li><strong>Context Enrichment:</strong> The retrieved information is merged with the original query to provide a more comprehensive context.</li></ul><p><strong>4. Generation Phase:</strong></p><ul><li><strong>Model Input:</strong> The enriched context is fed into a generative AI model, such as a large language model (LLM).</li><li><strong>Response Generation:</strong> The model processes the input and generates a well-informed response based on the retrieved information.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*8bLkh3DGMnPtUG8pfq62LA.png" /><figcaption>source: <a href="https://community.intel.com/t5/image/serverpage/image-id/51771i70A3502B3A2876AE/image-size/large?v=v2&amp;px=999&amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright">https://community.intel.com/t5/image/serverpage/image-id/51771i70A3502B3A2876AE/</a></figcaption></figure><p>To illustrate my point, I’ll explain Retrieval-Augmented Generation (RAG) using a familiar analogy: a student working on a school project. In this analogy, the project topic represents the initial query to a language model, while the library serves as the external knowledge base.</p><ol><li><strong>Retrieval:</strong> The student begins by researching in the library, and gathering relevant documents and information on the topic.</li><li><strong>Augmentation:</strong> Next, they review the collected materials, extracting key quotes, important facts, and ideas — essentially summarizing the most relevant parts.</li><li><strong>Generation:</strong> Finally, using the topic and summarized research, the student synthesizes insights, formulates arguments, and composes a well-reasoned report.</li></ol><p>Of course, the report wouldn’t be credible without proper references and citations — just as we’ll ensure in our RAG pipeline in the next section.</p><h3><strong>Tutorial Steps</strong></h3><p>At the end of this tutorial, you should have a project directory that looks like this.</p><figure><img alt="A project folder directory" src="https://cdn-images-1.medium.com/max/364/1*z7QeRP43FEN_eFBIocodiQ.png" /><figcaption>RAG project directory</figcaption></figure><h4><strong>Environment Setup</strong></h4><p><strong>Create and Activate a Virtual Environment<br></strong>Begin by setting up a virtual environment to manage dependencies.</p><pre>python -m venv venv<br><br>source venv/bin/activate  # macOS/Linux<br>venv\Scripts\activate     # Windows</pre><p><strong>Install Poetry Using ‘pip’<br></strong>Poetry is a dependency management tool for Python. Install it using pip(python’s package installer).</p><pre># Ensure pip is up-to-date<br>pip install --upgrade pip<br><br># Install Poetry<br>pip install poetry</pre><p><strong>Set Up the Project Environment with Poetry<br></strong>Create <em>pyproject.toml</em>: Replace name and email for ‘authors’ below.</p><pre>[tool.poetry]<br>name = &quot;embedding-metadata-tutorial&quot;<br>version = &quot;0.1.0&quot;<br>description = &quot;Simple RAG pipeline with source attribution.&quot;<br>authors = [&quot;your_name &lt;your@email.com&gt;&quot;]<br><br>[tool.poetry.dependencies]<br>python = &quot;&gt;=3.9.0,&lt;=3.12.2&quot;<br>langchain-openai = &quot;^0.1.8&quot;<br>python-dotenv = &quot;^1.0.1&quot;<br>langchain = &quot;^0.2.1&quot;<br>langchain-chroma = &quot;^0.1.2&quot;<br>langchain-community = &quot;^0.2.1&quot;<br>chromadb = &quot;^0.5.0&quot;<br><br>[tool.pyright]<br># https://github.com/microsoft/pyright/blob/main/docs/configuration.md<br>useLibraryCodeForTypes = true<br>exclude = [&quot;.cache&quot;]<br><br>[tool.ruff]<br># https://beta.ruff.rs/docs/configuration/<br>select = [&#39;E&#39;, &#39;W&#39;, &#39;F&#39;, &#39;I&#39;, &#39;B&#39;, &#39;C4&#39;, &#39;ARG&#39;, &#39;SIM&#39;]<br>ignore = [&#39;W291&#39;, &#39;W292&#39;, &#39;W293&#39;]<br><br>[build-system]<br>requires = [&quot;poetry-core&gt;=1.0.0&quot;]<br>build-backend = &quot;poetry.core.masonry.api&quot; </pre><p>Install dependencies:</p><pre># Install the dependencies<br>poetry install --no-root</pre><p>This should generate a <em>poetry.lock</em> file with defined package dependencies for this project.</p><p><strong>Obtain OpenAI API Key</strong></p><p>Follow <a href="https://platform.openai.com/docs/quickstart">OpenAI’s API key guide</a> to obtain an API_KEY and store it in .env file like this:</p><pre>OPENAI_API_KEY=your-api-key-here<br>OPENAI_MODEL_NAME=gpt-4o</pre><p><strong>Prepare Documents</strong></p><ol><li>Create a ‘books’ folder and add text files.</li><li>Find the demo .txt files <a href="https://drive.google.com/drive/folders/1A2EhR5o0vhgCswuSJxmkAiMjH8u-Zlya?usp=sharing">here</a>.</li><li>Copy the .txt files to your project’s books folder.</li></ol><p><strong>Create an empty folder called ‘db’ to contain your persistent directory folder for the vector database files.</strong></p><p>This folder directory will be referenced in your database init script.</p><pre>mkdir db</pre><p><strong>Initialize the ChromaDB Vector Store with Embeddings of Documents and Corresponding Metadata<br></strong>We will set up a persistent vector database using ChromaDB. The text files in our books folder will be divided into smaller chunks, each about 1,000 characters long. These chunks will then be converted into embeddings, enabling efficient document retrieval and querying.</p><p>Create <em>vector_store_init.py</em></p><pre>import os<br><br>from dotenv import load_dotenv<br><br>from langchain_chroma import Chroma<br>from langchain_community.document_loaders import TextLoader<br>from langchain_openai import OpenAIEmbeddings<br>from langchain.text_splitter import CharacterTextSplitter<br><br># load environment variables<br>load_dotenv()<br><br># Define the directory containing the text files and the persistent directory<br>current_dir = os.path.dirname(os.path.abspath(__file__))<br>books_dir = os.path.join(current_dir, &quot;books&quot;)<br>database_dir = os.path.join(current_dir, &quot;db&quot;)<br>persistent_dir = os.path.join(database_dir, &quot;books_db_with_metadata&quot;)<br><br># Check if the chroma vector store aldready exists<br>if not os.path.exists(persistent_dir):<br>    print(&quot;Persistent directory does not exist. Initializing vectore store...&quot;)<br><br>    # Ensure the books_docs directory exist<br>    if not os.path.exists(books_dir):<br>        raise FileNotFoundError(<br>            f&quot;The directory {books_dir} does not exist. Please check the path.&quot;<br>        )<br>    <br>    # Load texts from books files and store with metadata<br>    books_files = [f for f in os.listdir(books_dir) if f.endswith(&quot;.txt&quot;)]<br><br>    documents = []<br>    for file in books_files:<br>        file_path = os.path.join(books_dir, file)<br>        loader =  TextLoader(file_path, encoding=&quot;utf-8&quot;)<br>        file_docs = loader.load()<br>        for doc in file_docs:<br>            # Add metadata to each document indicating its source(source attribution).<br>            doc.metadata = {&quot;source&quot;: file}<br>            documents.append(doc)<br><br>    # Split the documents into chunks<br>    print(&quot;\n Splitting documents into chunks...&quot;)<br>    text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=100)<br>    docs = text_splitter.split_documents(documents)<br><br>    print(&quot;\n--- Document Chunks Information ---&quot;)<br>    print(f&quot;Number of document chunks: {len(docs)}&quot;)<br>    print(f&quot;Sample chunk:\n{docs[0].page_content}\n&quot;)<br><br>    # Create embeddings<br>    print(&quot;\n Creating embeddings...&quot;)<br><br>    embeddings = OpenAIEmbeddings(<br>        model=&quot;text-embedding-3-small&quot;<br>    )<br>    print(&quot;\n Embeddings created...&quot;)<br><br>    # Create vector store and persist embeddings<br>    print(&quot;\n Persisting vector store...&quot;)<br>    db = Chroma.from_documents(<br>        docs,<br>        embeddings,<br>        persist_directory=persistent_dir<br>    )<br>    print(&quot;\n Vector store created successfully...&quot;)<br><br>else:<br>    print(&quot;Vector store already exists and ready for retrieval.&quot;)</pre><p>Run script to initialize vector store</p><pre>python ./vector_store_init.py</pre><p><em>** You only need to run this script once to process and store the text files in the vector database for retrieval.</em></p><p><strong>Create a history-aware chat assistant to interact with our retrieval system<br></strong>Now, let’s perform a retrieval-augmented generation query, ensuring that the source of each retrieved document is cited.</p><p>Create <em>qa_assistant.py</em></p><pre>import os<br><br>from dotenv import load_dotenv<br>from langchain.chains import create_history_aware_retriever, create_retrieval_chain<br>from langchain.chains.combine_documents import create_stuff_documents_chain<br>from langchain_chroma import Chroma <br>from langchain_core.messages import HumanMessage, SystemMessage<br>from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder<br>from langchain_openai import ChatOpenAI, OpenAIEmbeddings<br><br># Load environment variables from .env<br>load_dotenv()<br><br># Define the persistent directory<br>current_dir = os.path.dirname(os.path.abspath(__file__))<br>db_dir = os.path.join(current_dir, &quot;db&quot;)<br>persistent_directory = os.path.join(db_dir, &quot;books_db_with_metadata&quot;)<br><br># Define embedding model, same as model used in vectore store<br>embeddings = OpenAIEmbeddings(model=&quot;text-embedding-3-small&quot;)<br><br># Load the exisiting vector store<br>database = Chroma(<br>    persist_directory=persistent_directory,<br>    embedding_function=embeddings<br>)<br><br># Create a retriever for querying the vector store<br># &#39;search_type&#39; specifies the type of search (e.g similarity)<br># &#39;search_kwargs&#39; contains additional arguments for the search (e.g number of results returned)<br>retriever = database.as_retriever(<br>    search_type=&quot;similarity&quot;,<br>    search_kwargs={&quot;k&quot;: 3},<br>)<br><br># Define OpenAI model<br>llm = ChatOpenAI(model=os.getenv(&quot;OPENAI_MODEL_NAME&quot;))<br><br># System prompt: Contextual question prompt<br>system_prompt = (<br>    &quot;Given a chat history and the latest user question &quot;<br>    &quot;which might refrence context in the chat history,&quot;<br>    &quot;formulate a standalone question which can be understood &quot;<br>    &quot;without the chat history. Do NOT answer the question, just &quot;<br>    &quot;reformulate it if needed and otherwise return it as is.&quot;<br>)<br><br># Create a prompt template for contextualizing questions<br>contextualize_question_prompt = ChatPromptTemplate.from_messages(<br>    [<br>        (&quot;system&quot;, system_prompt),<br>        MessagesPlaceholder(&quot;chat_history&quot;),<br>        (&quot;human&quot;, &quot;{input}&quot;),<br>    ]<br>)<br><br># Create a history-aware retriever<br># This uses the LLM to help reformulate question based on chat history<br>history_aware_retriever = create_history_aware_retriever(<br>    llm, <br>    retriever, <br>    contextualize_question_prompt<br>)<br><br># Answer question prompt<br>question_answer_system_prompt = (<br>    &quot;You are an assistant for question-answering tasks. Use &quot;<br>    &quot;the following pieces of retrieved context to answer the &quot;<br>    &quot;question. If you don&#39;t know the answer, just say that you &quot;<br>    &quot;don&#39;t know. Use three sentences maximum and keep the answer &quot;<br>    &quot;concise.&quot;<br>    &quot;\n\n&quot;<br>    &quot;{context}&quot;<br>)<br><br># Create a prompt template for answering questions<br>qa_prompt = ChatPromptTemplate.from_messages(<br>    [<br>        (&quot;system&quot;, question_answer_system_prompt),<br>        MessagesPlaceholder(&quot;chat_history&quot;),<br>        (&quot;human&quot;, &quot;{input}&quot;)<br>    ]<br>)<br><br># Create a chain to combine documents for question answering<br># &#39;create_stuff_documents_chain&#39;(strangely named, I know) feeds all retrieved context into LLM<br>question_answer_chain = create_stuff_documents_chain(llm, qa_prompt)<br><br># Create retrieval chain that combines the history-aware retriever and the question<br>rag_chain = create_retrieval_chain(history_aware_retriever, question_answer_chain)<br><br># Function to simulate a continual chat<br>def continual_chat() -&gt; None:<br>    print(&quot;Start chatting with AI! \nType &#39;exit&#39; to end converstaion.&quot;)<br>    chat_history = []<br>    while True:<br>        query = input(&quot;You: &quot;)<br>        if query.lower() == &#39;exit&#39;:<br>            break<br><br>        # Process the user&#39;s query through the retrieval chain<br>        result = rag_chain.invoke({<br>            &quot;input&quot;: query,<br>            &quot;chat_history&quot;: chat_history<br>        })<br><br>        # Display assistant&#39;s response and source<br>        print(f&quot;AI: {result[&#39;answer&#39;]} \nsource: {result[&#39;context&#39;][0].metadata[&#39;source&#39;]}&quot;)<br><br>        # Update chat history<br>        chat_history.append(HumanMessage(content=query))<br>        chat_history.append(SystemMessage(content=result[&#39;answer&#39;]))<br><br># Entrypoint<br>if __name__ == &quot;__main__&quot;:<br>    continual_chat()</pre><p>Run the qa_assistant.py script to test our retrieval system😊</p><pre>python ./qa_assistant.py</pre><p><strong>Testing with Sample Queries:</strong></p><p>Once the script is running, input the following test queries to analyze the response and ensure it is accurate, concise, and appropriately cites the sources of information.:</p><p><strong>Query 1:</strong> “I just completed the Adventures of Sherlock Holmes and my favorite story has got to be A Scandal in Bohemia”</p><p>Purpose: To log some contextual information in the chat history.</p><p><strong>Query 2:</strong> “What’s the famous Holmes residence?”</p><p>Purpose: Test the system’s information retrieval capabilities.</p><p><strong>Query 3:</strong> “How did Juliet die?”</p><p><em>Purpose: </em>Test the system’s information retrieval capabilities.</p><p><strong>Query 4:</strong> “Generate a single-paragraph synopsis of the book Moby Dick.”</p><p><em>Purpose:</em> Test the system’s capability to infer and synthesize information from referenced sources.</p><p><strong>Query 5:</strong> “What’s my favorite Sherlock Holmes story?”</p><p>Purpose: Test the system’s ability to retain contextual information from the chat history.</p><p>** <em>Feel free to try various queries to learn more about the fictional texts provided.</em></p><h3>Wrap Up</h3><p>By following this guide, you’ve successfully built and tested a RAG pipeline with source attribution using LangChain and ChromaDB. This setup not only enhances the retrieval and generation capabilities of your language model but also ensures that all information is transparently sourced, bolstering the credibility of its responses. As you continue to refine your pipeline, consider experimenting with different document chunking strategies, embedding models, and retrieval techniques to further optimize performance. The integration of source attribution within the RAG framework marks a significant step toward more trustworthy and explainable AI systems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ad070f7bfed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The AI Awakening: A New Chapter in African Tech]]></title>
            <link>https://medium.com/@smomoh96/the-ai-awakening-a-new-chapter-in-african-tech-18a9637d2417?source=rss-8d6f5728c487------2</link>
            <guid isPermaLink="false">https://medium.com/p/18a9637d2417</guid>
            <category><![CDATA[african-tech-business]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[innovation]]></category>
            <dc:creator><![CDATA[Momoh Mohammed Sheriff]]></dc:creator>
            <pubDate>Thu, 09 Jan 2025 10:36:00 GMT</pubDate>
            <atom:updated>2025-01-09T10:36:00.381Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BaegERis-KIvHZWqfR8z8g.jpeg" /></figure><p>Reflecting on the African technology ecosystem, I’m struck by a profound sense of possibility and paradox. After years of observing and engaging with this space, it is clear that our challenges are uniquely African and yet universally technological, creating a fascinating intersection where necessity might just become the mother of innovation.</p><h3>Shifting Tides: The Investment Landscape and Talent Flow</h3><p>If you’re a tech professional still living in Africa, you’ve likely noticed a significant shrinking of your social circle in recent years. This is largely due to colleagues relocating abroad for better job opportunities, a trend often referred to as “Japa.” These departures aren’t merely personal losses; they reflect a larger issue that deeply concerns me. African tech startups face not only the challenge of attracting investment but also the battle to retain our brightest talents from seeking opportunities elsewhere.</p><p>The investment climate here has always been more challenging than in other emerging markets. When investors ask about our burn rate, they’re not just questioning our financial prudence — they’re probing the very sustainability of our operations in an environment where talent acquisition and retention costs can spiral unexpectedly.</p><h3>Vertical AI Agents: A New Compass for Scaling Operations</h3><p>I see a promising opportunity in the rise of vertical AI agents. These specialized systems, designed for specific industries or contexts, could redefine how African startups approach scaling their operations.</p><p>Think about it: What if we could create specialized AI agents that understand local contexts, and handle the operational complexities that often drain our limited resources? These agents could streamline processes, reduce operational burdens, and free up resources for innovation and growth. The goal isn’t to replace human talent but to enhance it, enabling our workforce to focus on creativity and strategy.</p><p>By integrating AI into core functions, African startups could unlock unprecedented scalability, making it possible to compete on a global scale. This future isn’t far off — it’s within reach.</p><h3>The Agentic Shift: Remodelling the Enterprise</h3><p>What moves me most about this potential transformation is how it aligns with our inherent strengths. African entrepreneurs have always excelled at creating frugal innovations that solve real problems. Now, with AI agents, we can amplify this capability in unprecedented ways.</p><p>The implications ripple through every aspect of business:</p><p>Product Development: AI agents could enable rapid prototyping and testing, allowing startups to iterate faster with fewer resources.</p><p>Service Delivery: Imagine intelligent systems that understand local languages and customs, providing personalized service at scale.</p><p>Recruitment: The ability to build core teams around strategic roles while leveraging AI for operational functions.</p><p>The cost savings are obvious, but the real revolution is in the scaling potential — the ability to serve millions without the traditional operational overhead. Creating a new kind of organization — one that’s inherently scalable and adaptable to our unique challenges.</p><h3>Setting the Stage</h3><p>For African startups to truly leverage this opportunity, we need to shift our mindset. This means:</p><p>1. <strong>Investing in Infrastructure that supports AI-first operation</strong> — ranging from robust API layers to efficient data processing pipelines. Collaboration is essential to understanding and documenting our local contexts, allowing us to create rich datasets that accurately reflect our unique market conditions and cultural dynamics. This means treating AI not as an add-on feature but as a core architectural choice.</p><p>2. <strong>Promoting AI literacy and fostering hybrid operational models</strong> that integrate human expertise to guide and amplify AI capabilities, rather than compete with them. Our teams must develop proficiency in collaborating with AI systems, understanding their strengths and limitations.</p><p>3. <strong>Developing Ethical AI Frameworks — </strong>crafting comprehensive guidelines that align AI development and deployment with cultural values and societal priorities. These frameworks should address fairness, transparency, and accountability, ensuring that AI enhances human welfare while addressing pressing community challenges in a balanced, inclusive manner.</p><h3>The Shadow Side: Navigating the Risks of AI Adoption</h3><p>As I envision this future, I find it impossible to ignore its complexities and potential drawbacks. The idea of reducing human employment in economies already grappling with high unemployment is profoundly unsettling. This shift could amplify existing inequalities, widening the digital divide and creating a stark contrast between AI-powered businesses and traditional operators struggling to keep pace.</p><p>Additionally, over-reliance on AI systems risks making startups highly dependent on the policies and interests of the tech giants that own and control these technologies. This raises a critical question: Are we merely exchanging one form of dependency for another? While this predicament is daunting, it may not be without solutions — but that’s a conversation for another day. For now, the focus must remain on ensuring that AI integration fosters inclusive growth rather than exacerbating systemic inequities.</p><h3>Emerging Frontiers: The Rise of African Autonomous Agencies</h3><p>While challenges remain, I am optimistic that Africa is on the verge of a groundbreaking era of autonomous agencies. These won’t merely mimic Western models but will instead reflect distinctly African ingenuity, shaped by our unique challenges and opportunities. These agencies will be agile, resourceful, and deeply attuned to local needs.</p><p>The startups driving this transformation will approach AI not just as a tool but as a fundamental shift in the way businesses are conceived and scaled. By embracing AI as a mindset, they will reimagine traditional limitations — such as constrained funding, talent migration, and operational hurdles — as opportunities to innovate.</p><p>These constraints could foster the creation of revolutionary business models, leveraging AI to optimize resources, democratize access, and build resilient ecosystems. Africa’s potential to redefine AI adoption and application lies in its ability to turn adversity into a competitive advantage and pioneer new models of AI-enabled business.</p><h3>A New Dawn: Personal Conclusion</h3><p>Integrating AI agents into the African Technology ecosystem goes beyond playing catchup with global trends, but leapfrogging conventional development stages to design solutions that resonate deeply with Africa’s unique realities. The future of African tech may not align with traditional narratives, and that divergence could be our greatest strength. Instead of adhering to established frameworks, we have the opportunity to create our own — where AI transforms from a tool of optimization into a spark for reimagining African entrepreneurship.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18a9637d2417" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2024: Reflections on Love, Growth, and the Art of Being Present]]></title>
            <link>https://medium.com/@smomoh96/2024-reflections-on-love-growth-and-the-art-of-being-present-29e9c46a7e00?source=rss-8d6f5728c487------2</link>
            <guid isPermaLink="false">https://medium.com/p/29e9c46a7e00</guid>
            <category><![CDATA[self-discovery]]></category>
            <category><![CDATA[personal-growth]]></category>
            <dc:creator><![CDATA[Momoh Mohammed Sheriff]]></dc:creator>
            <pubDate>Tue, 31 Dec 2024 22:01:11 GMT</pubDate>
            <atom:updated>2024-12-31T22:01:11.436Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s that familiar December stillness again—the kind where memories of the year settle like morning dew, each carrying its own story, its lesson. As I sit here reflecting in front of my text editor, I’m struck by how the most profound teachings often come wrapped in ordinary moments.</p><p>2024 started like many others — with a document full of meticulously crafted goals, a head buzzing with possibilities, and that familiar cocktail of hope and ambition that marks every new beginning. I smile now, thinking about how preciously we hold our plans, only to have life gently reshape them into something far more meaningful than we could have imagined.</p><p>Sure, there were the obvious milestones: my first passport stamps as I ventured beyond Nigeria’s borders, my unexpected love for tennis that taught me joy can be found in being gloriously bad at something new, the conscious decision to treat my body as a home worth maintaining rather than just a vehicle for achieving goals, prioritizing fitness and healthier habits. But yet these external markers of growth pale in comparison to the deeper transformation brewing beneath.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*SlpYiSMp2-hH2xhHewzrNg.jpeg" /><figcaption>Me and my cycling buddies</figcaption></figure><p>The real story — the one that changed everything — began with a misunderstanding of love.</p><p>You see, I’ve always worn my role as the elder brother like a badge of honor, seeing it as a calling to guide, protect, and provide. It’s fascinating how we construct these identities for ourselves — blueprints of who we believe we should be, often without questioning the foundation upon which we build them. 2024 became the year when those foundations shifted, through the gentle persistence of observed truths.</p><p>When my youngest sister, Mimi, made a brave decision to step away from university and venture into Tech, I felt partly responsible because I had an influence on her, she wanted to be just like me, “Code bro” was how we addressed one another. I responded with the tools I knew best: I threw resources at the situation. I sent her a laptop, offered to pay for her training program, and made myself available whenever she had questions. I was embodying an image of support — or so I thought.</p><p>It’s funny how we can miss the obvious when we’re too busy being right. For a year and a half, I watched Mimi struggle, responding to her doubts with what I knew best: push harder, try more, don’t give up. It was like trying to force a flower to bloom by pulling at its petals. I had created what I thought was the perfect scaffold for success, never realizing that scaffolds, while necessary, can also constrict. I wasn’t listening and gradually watched as our relationship crumbled with every well-meaning but misguided push.</p><p>But life lessons have a way of showing up unexpectedly, often from those we least expect to be our teachers. Enter my sister Zainab — aka Zenny, The Dragonfly. Where I pushed, she listened. Where I demanded more effort, she offered to understand. Where I focused on results, she focused on Mimi’s happiness and well-being. She took extra steps to create a safe space for Mimi to thrive, literally — she moved into Zenny’s house. Under Zenny’s gentle guidance, Mimi didn’t just find her path — she found herself. She discovered her passion for design and secured an internship, but more importantly, she rediscovered her joy. And isn’t that what we’re after when we try to help those we love?</p><figure><img alt="A picture of my sisters, Mimi and Zenny" src="https://cdn-images-1.medium.com/max/1024/1*hROSsSl-t-OLqJ9Q6XUeBg.jpeg" /><figcaption>Code Bro and The Dragonfly</figcaption></figure><p>The revelation came during our family’s Secret Santa exchange. There’s something about holidays with family that strips away our carefully constructed facades, isn’t there? Mimi’s gift stood out and was accompanied by a beautifully crafted letter to Zenny. My Dad’s voice carried Mimi’s words through our living room as he read aloud. Her letter to Zenny wasn’t just a thank you note — it was a mirror, reflecting the essence of what unconditional support truly means. Sitting there, watching tears gather in Zenny’s eyes as she held her “Best Sister” plaque I found myself mentally cataloging every instance where my well-intentioned but mechanical approach to support had created distance rather than connection.</p><figure><img alt="An award plaque presented to Zenny that reads “World’s best sister”" src="https://cdn-images-1.medium.com/max/810/1*LCVYipE42o7-kKeWDRDaPw.jpeg" /><figcaption>Mimi’s gift to Zenny</figcaption></figure><p>The irony doesn’t escape me: here I was, thinking I needed to be the one teaching when in reality, I was the student all along. My youngest sister taught me about courage in choosing your path. Zenny taught me about the quiet strength in being a safe space for others. This recognition has sparked a deeper examination of my own patterns. Over time, I’ve internalized certain paradigms of progress — linear, measurable, and effort-based.</p><p>What strikes me now is how this realization extends beyond family dynamics into every sphere of interaction. I see it in my personal and professional relationships and my relationship with growth and achievement. Looking ahead, I find myself drawn to a simpler, more authentic way of being — to approach life trusting in the natural unfolding of growth rather than trying to force it, to remember that sometimes the most important thing we can offer the world around us is our authentic presence.</p><p>In the end, this year’s greatest gift wasn’t any of the firsts I accumulated, but the profound unlearning that came with them. Through watching my sisters’ dynamic, I’ve glimpsed a different kind of strength — one that resides not in what we can provide or achieve, but in how gently and authentically we can hold space for growth, both for others and ourselves.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29e9c46a7e00" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ENTER THE METRICS: Evaluating digital products for business success]]></title>
            <link>https://medium.com/@smomoh96/enter-the-metrics-evaluating-digital-products-for-business-success-c100d3135625?source=rss-8d6f5728c487------2</link>
            <guid isPermaLink="false">https://medium.com/p/c100d3135625</guid>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[lean-startup]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Momoh Mohammed Sheriff]]></dc:creator>
            <pubDate>Fri, 04 Sep 2020 15:18:58 GMT</pubDate>
            <atom:updated>2020-09-04T15:18:58.695Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q9NN017frVRpWrEk" /><figcaption>Photo by <a href="https://unsplash.com/@lukechesser?utm_source=medium&amp;utm_medium=referral">Luke Chesser</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The success of every product is measured by its ability to satisfy its user’s needs. And to continuously meet those needs in the most economical way possible, for a wider range of users over the product’s lifespan. I’ll cut through the chase and just hit you with it “The purpose for analytics is for building better products”, put in other words by Peter Drucker “What can’t be measured can’t be improved”.</p><blockquote>Product Analytics is an approach focused on fully understanding how users engage with what you build by using dedicated tools to map user interactions within your product.</blockquote><p>Product analytics should be seen as a story told by your product on how it’s being used, what it’s used for, and how customers feel about it, as every interaction a user has with your product leaves behind a footprint of data. Data is important in a fundamental way to almost everything these days. It validates our intuitions and informs our decisions and managers are advised to have a strategy in place to aggregate and manage the use of data in their organizations.</p><p>In startup environments, the purpose of analytics could be even more critical in finding a product-market fit before the cash runs out, hence the fundamental shift in how we build companies today; by emphasizing the Lean approach. Metrics and analytics are integral to the lean process in minimizing waste (of time and resources) and to evaluate how good or bad a product is performing in the marketplace. Metrics provide a conceivable way to interact and make sense of data in order to take actionable steps towards improving your product.</p><p>When it comes to making product decisions, there are two forms of metrics to be considered, <em>qualitative</em> and <em>quantitative</em> metrics</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*v3U6JXk34sD-8XD7r9kOUw.jpeg" /><figcaption>qualitative vs quantitative</figcaption></figure><p><strong>Qualitative metrics </strong>are subjective, unstructured, and hard to aggregate. It is the stuff for interviews and surveys — How do users feel about a feature? What gaps did the users identify in the service? e.t.c.</p><p>In the early stages of an idea, it is best to first seek out qualitative data. A design thinking approach towards problem-solving usually takes care of this, to uncover solutions much closer to the right problem. Determining product-market fit is much easier when you engage with potential customers and try to understand how they would use your product.</p><p><strong>Quantitative metrics </strong>measure data that are backed by numbers and statistics, they are easier to comprehend than qualitative metrics- how many users? What percentage of them enjoy our service? What percentage of users return to our service.t.c.</p><p>Numbers rarely lie, and while they can be subject to interpretation, at the end of the day they can reliably point to the right insights much quicker. The goal of a startup is to get to the point where it can collect quantitative data as soon as possible(i.e the point enough users begin to interact with your product).</p><p>While product analytics is accomplished by making use of numbers, and data visualization techniques (e.g plots, diagrams, charts…), managers need to grasp that a complete understanding of their product or service requires consideration of their user’s perspectives and motivations. Hence, it is advised to “get out of the building” every once in a while to seek practical feedback from customers.</p><p>Targeting the right set of metrics to track can prove tricky, and selections could be dependent on varying factors including the companies business goals, product type, growth stage e.t.c. There isn’t a silver bullet to targeting the right set of metrics to track, but most managers ultimately need to track certain metrics to comprehend growth and revenue for their company. Described below are some common metrics managers get to deal with at several points of their product journey.</p><h3><strong>TRACTION METRICS</strong></h3><p><strong>Reach</strong></p><p>Reach is the total number of people who have used your product in a specified time. As reach increases, it naturally leads to increased awareness. It represents the maximum number of users who could reasonably become active, or paying users.</p><p><strong>Active users</strong></p><p>Active users are people who have taken a key action and received value from your product in a specified period, which could be daily, weekly, or monthly. It represents the number of people actively using your product where you define what ‘active’ means.</p><p>It’s a great snapshot of whether more, or fewer, people are getting value out of a product over time, and is a good starting point for engagement and behavior analysis.</p><p><strong>Engagement</strong></p><p>Engagement accounts for the number of times users complete key actions with your product. Engagement is closely tied to usability. The online world is a goal-driven medium, and it’s important to facilitate the user’s goals to keep them engaged.</p><p><strong>Retention</strong></p><p>Retention measures the number of customers that repeatedly do business with you. It is the metric that shows whether your product has staying power in the market. It is important to keep it high because it is far less expensive to retain customers than to acquire new ones.</p><p><strong>Churn rate</strong></p><p>The churn rate is the opposite of retention as it measures the percent of customers who stop using your product over a specified period, typically a month. This metric is critical for monthly subscription products and an overall indicator of product health.</p><p>You can calculate the churn rate by dividing the number of customers you have lost at the end of the specified period by the number of customers you had at the beginning of that period. For example, in March a company recorded 100 subscribers and in April recorded 90. Your churn rate is 10%. Your retention is the opposite of churn which would be 90%.</p><h3>CASH FLOW METRICS</h3><p><strong>Customer Lifetime Value (CLTV)</strong></p><p>Customer lifetime value measures your customer’s value to your business by forecasting the average amount of money you can make from a customer over the entirety of your business relationship. The higher it is, the more sustainable your business. It also helps when identifying customer acquisition campaigns where you spend more for a customer than the customer is actually worth to your business.</p><p><strong>Conversion Rate</strong></p><p>Conversion rate refers to the percentage of users who take the desired action to become a customer, it could be making a purchase, subscribing, or even just completing a sign-up form. This desired action depends on the business goals of the product and as such varies from product to product.</p><blockquote>Conversion rate = (conversions / total visitors) * 100%</blockquote><p><strong>Customer Acquisition Cost (CAC)</strong></p><p>Customer acquisition cost refers to all the cost incurred in turning someone into a customer. It encompasses sales, marketing, and advertising. Typically compared against the customer lifetime value (LTV)</p><p>The CAC can be calculated by simply dividing all the costs spent on acquiring new customers by the number of customers acquired in the period the money was spent.</p><blockquote>Customer acquisition cost (CAC) = Total cost of sales and marketing / Number of new customers acquired</blockquote><p><strong>Monthly Recurring Revenue (MRR)</strong></p><p>This metric evaluates the total amount of revenue a company expects in a given month. By analyzing a company’s MRR trend from month to month, investors can quickly evaluate its growth. Every business should be tracking monthly revenue to measure growth and momentum and for financial forecast and planning.</p><p>How to calculate MRR:</p><p>1. Calculate the total revenue generated by all customers during the month</p><p>2. Determine the average monthly amount paid by all customers</p><blockquote>Average revenue per user(ARPU) = Total revenue / average Number of users(monthly)</blockquote><p>3. Multiply the average by the total number of customers</p><blockquote>Monthly recurring revenue (MRR) = Average revenue per user(ARPU) * Total number of users</blockquote><h3>CUSTOMER SATISFACTION METRICS</h3><p><strong>Net promoter score(NPS):</strong></p><p>The NPS is generally seen as an overall indicator of how happy your customers are with your product. It lets you know how likely a user would recommend your product and gives insights on both customer promotion and loyalty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b05pNV3GX2XWVmjWinITBQ.png" /><figcaption>image source: <a href="https://www.trustcruit.com/blog/calculate-candidate-net-promoter-score/">https://www.trustcruit.com/blog/calculate-candidate-net-promoter-score/</a></figcaption></figure><p><strong>Customer Effort Score(CES):</strong></p><p>Customer Effort Score determines how easy it is for a customer to use a feature, product, or service. It is goal-oriented and involves questions along the lines of “How easy was it to [insert key action]”, and then prompting customers to rate their experience on a scale ranging from extremely difficult to extremely easy. A Lickert scale(1–10 or 1–7) is usually applicable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b5gNZvX9mXt_4ESqLmPz6g.png" /><figcaption>image source: <a href="https://productschool.com/blog/product-management-2/customer-feedback-loops-tools/">https://productschool.com/blog/product-management-2/customer-feedback-loops-tools/</a></figcaption></figure><h3>ADOPTION RATE METRICS</h3><p><strong>Virality/viral coefficient</strong></p><p>The viral coefficient is a metric that determines the number of new users generated through customer referrals. This metric monitor how referrals are affecting the growth of your product’s customer base.</p><blockquote>Referral conversion rate = Number of newly converted customers / total number of referrals</blockquote><blockquote>Average number of referrals = Total Number of referrals / Total number of customers</blockquote><blockquote>Viral coefficient = Average number of referrals * Referral conversion rate</blockquote><p>Products or services with a viral coefficient greater than 1 are considered as viral.</p><p><strong>Viral cycle time</strong></p><p>The Viral Cycle Time measures the time it takes a customer to refer a company’s product or service to other prospects, with the people being referred to becoming customers and then referring the product or service to other prospects. A shorter viral cycle time results in more accelerated growth for the company.</p><p>Attracting new customers through referrals is a highly cost-effective approach since the company does not incur any customer acquisition cost.</p><p><strong>Conclusion</strong></p><p>Product analytics allows companies to generate real-time feedback and fully understand how users engage with what they build and proves invaluable to decision making. We live in a digital world and data is currently being generated at an outrageous rate, hence the importance of analytics can not be overemphasized, especially in managing technology products.</p><p>Making effective use of analytics requires discipline, precision, and ingenuity. A lot of which falls beyond the scope of this writing. I hope that this article serves as a decent introduction to some important characteristics of Product Analytics, and common metrics involved in dealing with user growth and revenue.</p><p>Please feel free to leave your comments and subscribe for more related articles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c100d3135625" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>