<?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 Jaouher Kharrat on Medium]]></title>
        <description><![CDATA[Stories by Jaouher Kharrat on Medium]]></description>
        <link>https://medium.com/@JaouherK?source=rss-67271b4d72af------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*htbyEgZg8RfrPZSJJkBomA.jpeg</url>
            <title>Stories by Jaouher Kharrat on Medium</title>
            <link>https://medium.com/@JaouherK?source=rss-67271b4d72af------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 15:52:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@JaouherK/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[My 8-Step Framework for Helping Underperforming Team Members as an Engineering Manager]]></title>
            <link>https://medium.com/@JaouherK/my-8-step-framework-for-helping-underperforming-team-members-as-an-engineering-manager-608805faf6d3?source=rss-67271b4d72af------2</link>
            <guid isPermaLink="false">https://medium.com/p/608805faf6d3</guid>
            <category><![CDATA[team-management]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[engineering-mangement]]></category>
            <category><![CDATA[growth-mindset]]></category>
            <category><![CDATA[underperformance]]></category>
            <dc:creator><![CDATA[Jaouher Kharrat]]></dc:creator>
            <pubDate>Tue, 24 Dec 2024 16:57:55 GMT</pubDate>
            <atom:updated>2024-12-24T16:57:55.013Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the years, I’ve discovered that one of the most impactful parts of my role as an engineering manager is supporting team members who are underperforming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g43pttJ7DhGc1owZeeO85g.png" /></figure><p>Early in my career, I assumed underperformance meant someone just wasn’t trying hard enough. However, after facing numerous real-world scenarios (ranging from personal challenges to skill set mismatches) I’ve come to realize that underperformance can be significantly more nuanced. Below is a summary of my personal experiences and the strategies I’ve found effective in helping employees get back on track.</p><h3>TL;DR</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*gpUzJQtjUoKlLd6Kk5KmXA.png" /></figure><ol><li><strong>Spot the Early Warning Signs</strong>: Identify performance issues early to prevent escalation.</li><li><strong>Seek to Understand the Root Cause</strong>: Dive deeper to uncover the underlying reasons behind the challenges.</li><li><strong>Develop Clear, Collaborative Goals</strong>: Work together to establish achievable objectives for improvement.</li><li><strong>Offer Resources and Support</strong>: Provide the necessary tools, mentorship, or training to help them succeed.</li><li><strong>Keep Communication Flowing</strong>: Maintain open and honest dialogue throughout the process.</li><li><strong>Know When to Take Firmer Action</strong>: Set clear boundaries and escalate if improvement stalls.</li><li><strong>Promote a Growth Mindset Culture</strong>: Encourage resilience, learning, and adaptability in the team.</li><li><strong>Reflect on My Own Leadership</strong>: Continuously evaluate and adapt my approach to better support the team.</li></ol><h3>1. Spot the Early Warning Signs</h3><p>I’ve learned that the sooner I identify potential underperformance, the easier it is to address. Some of the signs I watch out for include:</p><ul><li><strong>Consistent Delays</strong>: If an employee repeatedly struggles to meet reasonable deadlines, it’s often the first red flag.</li><li><strong>Drop in Engagement</strong>: A noticeable lack of energy or enthusiasm during team discussions, daily stand-ups, or project planning.</li><li><strong>Frequent, Repetitive Errors</strong>: When code reviews or QA processes continually flag the same issues.</li><li><strong>Poor Communication</strong>: Inconsistent updates, long response times, or evasive answers can signal deeper issues.</li></ul><p>The moment I spot these patterns, I try to connect with the individual one-on-one. Experience has taught me that an earlier intervention can prevent the situation from spiraling and impacting morale or timelines.</p><h3>2. Seek to Understand the Root Cause</h3><p>Underperformance is rarely intentional. Factors such as personal challenges, poor role fit, or lack of clarity in expectations can all contribute. In my early days as a manager, I would jump straight into “fix-it” mode. Over time, I realized that it often stems from a wide variety of root causes, such as:</p><ul><li><strong>Personal or Family Challenges</strong>: Health issues, family crises, or life changes can significantly affect focus and availability.</li><li><strong>Misalignment of Skills</strong>: Sometimes employees are simply in roles that don’t fit their strengths.</li><li><strong>Lack of Clear Goals</strong>: If I’ve failed to set clear expectations, the result can be confusion and decreased motivation.</li></ul><p>These days, I start by having an empathetic conversation to uncover the “why.” The key is genuine curiosity rather than judgment. Often, I’m able to help by adjusting workloads, clarifying performance targets, or connecting the employee with resources that address the real problem.</p><h3>3. Develop Clear, Collaborative Goals</h3><p>I recall one situation where a developer on my team consistently missed deadlines. After talking it through, I realized we had each assumed different project priorities. We sat down to co-create a set of clear, realistic goals that were:</p><ul><li><strong>Specific</strong>: Exactly what tasks need to be done, in what order.</li><li><strong>Measurable</strong>: Agreeing on metrics to quantify success — like the number of backlog items completed.</li><li><strong>Achievable</strong>: Ensuring the scope was ambitious but not overwhelming.</li><li><strong>Time-Bound</strong>: Establishing a reasonable deadline for these improvements.</li></ul><p>Once we were both aligned, the employee felt more empowered — and less anxious — because there was a clear, mutual understanding of success.</p><h3>4. Offer Resources and Support</h3><p>Under-performing team members often need more than just encouragement, they need tangible support. For example, if someone is struggling with a new framework or technology, I’ll offer:</p><ul><li><strong>Mentorship Arrangements</strong>: Pairing them with a more experienced developer who can guide them through daily challenges.</li><li><strong>Training Opportunities</strong>: Funding relevant courses, providing books, or scheduling workshops.</li><li><strong>Improved Collaboration</strong>: Encouraging pair programming or shared problem-solving sessions.</li></ul><p>One time, a front-end developer on my team was underperforming, primarily because they felt overwhelmed by a backend system they didn’t fully understand. By setting up a mentorship schedule with one of our senior backend engineers, they regained confidence and significantly improved their output quality.</p><h3>5. Keep Communication Flowing</h3><p>I’ve found that addressing underperformance isn’t a one-off conversation but an ongoing process. Regular check-ins prevent issues from festering. During these sessions, I:</p><ul><li><strong>Review Progress</strong>: Are they meeting the goals we’ve set? If not, what’s blocking them?</li><li><strong>Provide Consistent Feedback</strong>: I make sure I’m highlighting both what’s working and where improvement is needed.</li><li><strong>Offer Additional Help</strong>: Sometimes, unexpected challenges pop up — technical blockers, personal stress, or changing project requirements.</li></ul><p>A weekly or bi-weekly cadence works well in my experience; it keeps everyone aligned without becoming too intrusive.</p><h3>6. Know When to Take Firmer Action</h3><p>On rare occasions, despite your best efforts, no improvement materializes. I recall one situation where an employee’s performance issues persisted even after extra training, mentorship, and multiple feedback sessions. Eventually, I had to initiate a formal <strong>Performance Improvement Plan (PIP)</strong>. Although it was uncomfortable, it was necessary to maintain fairness and protect the rest of the team’s morale and workload.</p><p>It’s also worth considering whether the employee’s current team or role truly suits their strengths. Sometimes, underperformance stems from <strong>incompatibility with the team dynamic or manager</strong> rather than a lack of skill or effort. Offering the possibility of moving to another team — if one is better aligned with their abilities — can be more constructive than formal discipline. However, if a PIP doesn’t lead to positive change or a suitable alternative role can’t be found, the next step may involve formal HR procedures. While no manager or team member wants it to escalate that far, sometimes it’s the only way to safeguard the organization’s well-being overall.</p><h3>7. Promote a Growth Mindset Culture</h3><p>If there’s one related lesson I’ve learned, it’s that a supportive, growth-focused culture and team can preempt many underperformance issues. I try to lead by example: admitting my own mistakes, asking for feedback from my team, and turning failures into learning opportunities.</p><ul><li><strong>Celebrating Incremental Wins</strong>: Whenever someone shows even slight improvement, I publicly acknowledge it.</li><li><strong>Encouraging Openness</strong>: We hold frequent retrospectives to discuss what worked and what didn’t — without blame.</li><li><strong>Promoting Continuous Learning</strong>: Team members are encouraged to share knowledge, take online courses, or attend workshops.</li></ul><p>By creating an environment that values learning over perfection, employees are more likely to speak up when they’re struggling, long before their performance dips significantly.</p><h3>8. Reflect on My Own Leadership</h3><p>Finally, whenever someone on my team underperforms, I also reflect on my own management approach:</p><ul><li><strong>Am I providing clear and consistent direction?</strong></li><li><strong>Am I actively listening to my team members’ concerns and feedback?</strong></li><li><strong>Have I balanced individual growth with business demands?</strong></li><li><strong>Did I micro-manage or did I adopt a full ”laissez-faire” approach?</strong></li><li><strong>Have I provided the necessary resources and support for my team to succeed?</strong></li><li><strong>Do I adapt my management style to meet the needs of different team members?</strong></li><li><strong>Have I created an environment that encourages innovation and risk-taking?</strong></li><li><strong>Am I modeling the behavior and values I expect from my team?</strong></li></ul><p>In one instance, I realized I was assigning tasks without fully explaining how they connected to the broader project goals. The developer was frustrated because they felt like their work lacked impact — leading to disengagement. By taking a step back and better articulating the purpose behind each task, I was able to reignite that team member’s motivation.</p><p>In another instance, a new team member mentioned that I seemed unapproachable and didn’t know how to communicate with me. I had a chat with him to explain my working style and preferences. To make things easier for everyone, I created a ‘<a href="https://github.com/JaouherK/JK-user-guide">A User Guide To Work With Me</a>’. It covers my communication preferences and tips for effective collaboration. I now share this guide with every new team member, which has encouraged open communication. As a result, our team is more cohesive and collaborative.</p><h3>Conclusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-d6sIZ6uIOpS0gpIEkX3WA.png" /></figure><p>Guiding underperforming employees is challenging but deeply rewarding when done with empathy, clarity, and consistent follow-through. From my own journey, I’ve seen how crucial it is to look beyond the surface-level symptoms and truly understand the deeper causes. With open communication, clear goals, tangible support, and a growth-oriented culture, managers can turn performance issues into growth opportunities both for the employee and the entire team. After all, real success is measured not just by deliverables, but by the development and well-being of every person on the team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=608805faf6d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Architect an AI Solution for Multiple Teams]]></title>
            <link>https://medium.com/@JaouherK/how-to-architect-an-ai-solution-for-multiple-teams-0810d6a1cff5?source=rss-67271b4d72af------2</link>
            <guid isPermaLink="false">https://medium.com/p/0810d6a1cff5</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[rsa]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Jaouher Kharrat]]></dc:creator>
            <pubDate>Tue, 24 Dec 2024 13:11:43 GMT</pubDate>
            <atom:updated>2024-12-24T13:11:43.600Z</atom:updated>
            <content:encoded><![CDATA[<p>There’s no denying it: AI is rapidly reshaping the tech landscape. For SaaS providers, <strong>adopting AI-driven features</strong> can be a pivotal factor in attracting customers and may decisively influence their choice between competing solutions. However, organizations face a growing challenge: how to integrate new AI capabilities at scale while ensuring security, consistency, and reliability.</p><p>Embedding models, large language models (LLMs), audio transcription APIs, text-to-speech solutions, and other specialized services (like translation, anonymization or sentiment analysis) are just some of the AI-driven features companies are looking to implement. However, managing each of these integrations individually can quickly become <strong>unwieldy</strong>, especially as new capabilities and model updates emerge at a breakneck pace.</p><p>A centralized AI proxy or processing service could provide the solution you need..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n_Db6GyCoh94-jLGAUgMWA.png" /></figure><h3>TL;DR</h3><ul><li>A <strong>centralized AI proxy</strong> consolidates multiple AI services (embeddings, LLMs, speech-to-text, etc.) behind a single interface.</li><li>Teams can easily integrate AI features by calling standardized endpoints, simplifying the management of multiple providers and API keys.</li><li><strong>Key benefits</strong> include simplified governance, consistent security, reduced friction for new features, and a single place to scale, patch, or swap providers.</li><li><strong>Data retention</strong> is minimal by default, storing only necessary information like embeddings or usage metrics for compliance and quality improvements.</li><li>For heavy lifting or async processing, use a <strong>separate service/worker</strong> to avoid timeouts, protect the main API’s SLAs, and ensure large requests don’t block more critical real-time interactions.</li><li><strong>Continuous quality assessment</strong> (e.g., with frameworks like RAGAS) enhances outputs over time, feeding back into the proxy’s configuration and default settings.</li></ul><h3>Why a Centralized AI Proxy?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*tz3X8OCoAuygE0OVfwmRXw.png" /><figcaption>Diagram of a Proposed Architecture for an AI Proxy</figcaption></figure><p><strong>1. Lowering the Integration Barrier:</strong><br>Many teams need AI capabilities (like generating summaries, classifying content, converting speech to text, or extracting embeddings) without deep knowledge of the underlying models. A centralized AI proxy can expose standardized endpoints, letting engineers simply make a request, pass parameters, and receive results. No need to juggle API keys, multiple model versions, or inconsistent endpoints.</p><p><strong>2. Flexibility and Rapid Iteration:</strong><br>The pace of AI innovation is extremely fast. New LLM versions, embedding models, and enhanced speech-to-text engines appear constantly. With a single integration point, you can upgrade or swap underlying providers without forcing every team to refactor code. By maintaining a stable API contract, teams continue to operate as usual while the architecture evolves behind the scenes.</p><p><strong>3. Security and Compliance:</strong><br>Centralization inherently enhances governance. Sensitive credentials like API keys remain secure and never leave a controlled environment. Additionally, consistent auditing, quality checks, and documentation become far simpler. Your legal, security, and operations teams will appreciate the well-defined control points, vital for handling proprietary or sensitive data, and essential for compliance efforts such as GDPR.</p><p><strong>4. Scalability and Performance:</strong><br>By channeling all requests through a unified service, you streamline scaling. Kubernetes-based autoscaling ensures the system can adjust CPU, memory, or GPU resources as demand fluctuates. Performance optimizations, like caching frequently used embeddings or implementing more efficient load balancing, happen centrally. Teams consume the same endpoint, and any performance enhancements automatically benefit everyone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dMca2vPOVAnqrjlKEbl1rQ.png" /><figcaption>Auto-scaling Diagram for K8s Pods</figcaption></figure><h3>Key Capabilities and Interactions</h3><p><strong>1. Embedding Operations:</strong><br>Modern AI solutions often rely heavily on embeddings (vector representations of text or other media). The AI proxy can handle storage, retrieval, and indexing, backed by a vector database. By exposing well-defined endpoints for storing and querying embeddings, teams gain semantic search capabilities and similarity lookups without deepening their AI expertise.</p><p><strong>2. LLM Endpoints (Streaming or Otherwise):</strong><br>LLM functionalities can range from Q&amp;A to summarization to advanced reasoning. The proxy can standardize these capabilities, letting teams specify parameters (e.g., chosen model, provider, temperature) via query strings or request bodies. Whether streaming responses for a chatbot or fetching static summaries, the same consistent interface applies.</p><p><strong>3. Speech-to-Text and Text-to-Speech:</strong><br>Voice services (transcribing meetings, generating spoken responses) integrate similarly. The proxy manages these requests, ensuring consistent handling of audio data and stable backend engine selection. Teams simply issue a request with an audio file and receive transcribed text or synthesized speech without worrying about the underlying provider.</p><p><strong>4. Specialized AI Functions:</strong><br>Categorization, anonymization, translation, and other specialized tasks can be wrapped into dedicated endpoints. This abstraction enables teams to integrate AI-driven transformations quickly, relying on the proxy to handle model selection, compliance filtering, or even language detection under the hood.</p><h3>Asynchronous Processing for Resource-Heavy Tasks</h3><p>While the AI Proxy manages a wide range of synchronous requests (e.g., real-time LLM queries or quick embedding lookups), some operations are too large or time-consuming to handle in a synchronous flow. Tasks like <strong>massive file transformations, long-running text-to-embedding conversions, video generation</strong>, <strong>URL Scraping, </strong>or <strong>bulk data processing</strong> can be offloaded to a dedicated, smaller service that runs <strong>asynchronously</strong>. Offloading heavy tasks to an asynchronous workflow helps avoid timeouts, protect the main API’s SLAs, and ensures large requests don’t block more critical real-time interactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*TH_a6gSlz4pfDB05kx2e0w.png" /><figcaption>Diagram of an Optional Architecture in Case We Need To Deal With Heavy Processing Tasks</figcaption></figure><p><strong>1. Decoupled Architecture Using Message Queues</strong></p><ul><li>A <strong>sidecar</strong> or standalone <strong>service</strong> can subscribe to a <strong>message queue</strong> (e.g., RabbitMQ, Kafka, Amazon SQS).</li><li>The AI Proxy places jobs (such as embedding requests for large text) into a queue, along with metadata indicating the tenant, correlation ID, or any processing parameters.</li><li>Once completed, the specialized service can emit success/failure messages or simply save the state in the shared database.</li></ul><p><strong>2. Independent Scaling for Demanding Tasks</strong></p><ul><li>Because these jobs often involve CPU/GPU-intensive operations, having an autonomous service allows <strong>horizontal or vertical scaling</strong> specifically for heavy tasks.</li><li>This means your main AI Proxy doesn’t need to scale up to handle large workloads, which <strong>reduces operational costs and complexity</strong>.</li><li>You can allocate specialized compute resources (e.g., GPU nodes) to the async service while keeping the proxy lightweight.</li></ul><h3>Data Storage and Privacy Considerations</h3><p>A core principle is minimal data retention. The proxy avoids storing raw inputs or outputs unless it’s strictly necessary. This approach reduces the risk of data leakage and eases compliance burdens. When data is stored, it’s purposeful, feeding into iterative improvements to models or analytics rather than passively logging everything.</p><h3>Quality Assurance and Continuous Improvement</h3><p>Continuous quality assessment frameworks (like RAGAS for chatbot evaluation) help maintain and improve output quality. By integrating these assessments into the proxy, you can evaluate new models, track error rates, measure latency, and understand usage patterns across tenants and applications. This feedback loop informs better model defaults, more accurate embeddings, and overall improvements to user experience.</p><h3>Scaling and Future-Proofing</h3><p>As your organization’s AI demands grow, the proxy scales with it:</p><ul><li><strong>Multi-Provider Compatibility:</strong> Add new LLM or embedding providers behind the scenes, swapping them in as they become available or outperform current solutions. Make it possible to switch in between with a change of parameters so teams can</li><li><strong>Configurable Defaults:</strong> Adjust default model configurations as the ecosystem changes, ensuring stable fallbacks that require no code changes from downstream consumers.</li><li><strong>Kubernetes &amp; Autoscaling:</strong> Dynamically scale resources to meet fluctuating demand without manual intervention.</li></ul><h3>Conclusion</h3><p>Developing a unified AI proxy transcends convenience, it’s a strategic choice to simplify, secure, and scale AI integration. The centralized architecture, combined with a rigorous specification, ensures that as new models appear and old ones fade, your teams can adapt effortlessly. By establishing a single, stable interface, you create a foundation that supports rapid innovation, strong compliance postures, and an overall smoother AI adoption journey across your enterprise.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0810d6a1cff5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Harsh Reality of the IT Industry in 2024: A Shrinking Outlook]]></title>
            <link>https://medium.com/@JaouherK/the-harsh-reality-of-the-it-industry-in-2024-a-shrinking-outlook-4a5f9c603e64?source=rss-67271b4d72af------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a5f9c603e64</guid>
            <category><![CDATA[it]]></category>
            <category><![CDATA[industry-trends]]></category>
            <category><![CDATA[job-market-insights]]></category>
            <dc:creator><![CDATA[Jaouher Kharrat]]></dc:creator>
            <pubDate>Wed, 03 Jan 2024 21:28:51 GMT</pubDate>
            <atom:updated>2024-01-03T21:28:51.189Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I engaged in an insightful conversation with friends about the evolving landscape of IT and software development. We shared varied perspectives and, despite some minor disagreements, reached a consensus that the industry is undergoing a significant transformation. This sector, once a powerhouse of innovation, growth, and investment, is now experiencing a stark downturn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SguAIVLhw8DiJnF3cmHecw.png" /></figure><p>Reflecting on early 2022, I remember facing challenges in recruiting for my team at a mid-sized, specialized SaaS company, largely due to a limited number of applicants, predominantly at the entry to mid-level. However, by early 2023, the scenario had flipped: there was an overwhelming influx of applications, including from highly qualified candidates whom we had previously found difficult to attract.</p><p>This shift isn’t a fleeting trend; it has been gradually taking shape over the past few years. But what are the driving forces behind this change? What can we anticipate in the coming years? And crucially, what strategies should we, as professionals or managers, implement to navigate what is shaping up to be a pivotal era in IT?</p><h3>Causes of Decline<strong>:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gXhbJLQmNmtiqV24V-mIBA.png" /></figure><p>The shrinking of the IT sector can be attributed to a combination of several factors, each contributing in different ways to the industry&#39;s current state. Here are some potential causes:</p><ul><li><strong>Market Saturation</strong>: As more companies enter software development and services, the market saturation reduces the opportunity for new entrants and diminishes profitability for existing companies.</li><li><strong>Advancements in Technology</strong>: Paradoxically, the rapid advancement of technology can lead to a shrinking sector. Automation and AI, for instance, can reduce the need for human labor in certain IT tasks, leading to job cuts and a smaller workforce.</li><li><strong>Economic Downturns</strong>: Broader economic challenges, such as recessions, financial crises, and war in Ukraine, etc., can lead to budget cuts and reduced spending in IT departments across various industries.</li><li><strong>Regulatory Changes and Compliance Costs</strong>: Increasing regulation in areas like data privacy, cybersecurity, and other IT-related fields can increase company costs, making it difficult for smaller players to survive.</li><li><strong>Investment and Funding Shifts</strong>: The redirection of venture capital and funding away from traditional IT sectors to new, emerging technologies can lead to a decrease in growth and innovation in some parts of the IT industry.</li><li><strong>Over-Specialization of Workforce</strong>: The IT industry has witnessed an increasing trend towards over-specialization, where professionals develop deep expertise in narrow areas. This hyper-specialization can hinder their ability to easily transition between different roles or projects, reducing their flexibility and adaptability.</li><li><strong>Agile Approach and ‘Ticket-Oriented’ Development</strong>: The widespread adoption of agile methodologies has led to the emergence of ‘ticket-oriented’ developers. These professionals often focus on converting ticket descriptions into code, potentially losing sight of the broader engineering principles and objectives. This approach may limit their understanding of the overall project context and reduce their ability to contribute creatively, raising questions about the future relevance of such roles in an AI-driven job market.</li></ul><h3>Effects</h3><h4><strong>1. Profitability first:</strong></h4><p>As the calendar turns to 2024, a significant shift in focus towards profitability is becoming increasingly evident in the IT industry. Particularly for companies operating in highly competitive and low-profit sectors, this drive for profitability often necessitates tough decisions. While raising costs for clients might seem like an immediate solution, it is not always feasible or sustainable, especially considering the competitive nature of the market and customer expectations. This leaves organizations with the challenging option of reducing headcount, lowering wages, and increasing demands on the remaining workforce. While these measures might drive efficiency, they come with substantial human costs and could potentially impact the quality of service (QoS).</p><h4>2. <strong>The Domino effect of Layoffs:</strong></h4><p>The scenario where employees from large companies are laid off and subsequently hired by smaller firms, while potentially beneficial for the companies, can have several negative effects on the job market and the individuals within it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a4wOLu13w9s0h6PkPDu2-Q.png" /><figcaption>The ‘Domino Effect’ of layoffs,</figcaption></figure><ul><li><strong>Increased competition for Jobs: </strong>As laid-off employees from big companies enter smaller firms, they often bring with them a wealth of experience and skills. This can inadvertently raise the bar for performance and expectations within these smaller companies. Existing employees may find themselves under increased pressure to perform at higher levels or risk being overshadowed or even replaced by these new hires.</li><li><strong>For New Entrants:</strong> The influx of experienced professionals into smaller companies makes it significantly more challenging for new entrants, especially those with less experience or from non-traditional backgrounds, to find opportunities. The job market becomes more competitive, and the requirement for high qualifications and extensive experience becomes more pronounced.</li><li><strong>Wage Compression: </strong>The entry of high-caliber talent from larger firms into smaller ones might lead to wage compression. Smaller companies, despite gaining skilled employees, may not have the financial resources to match the salaries these employees were accustomed to in larger firms. This can lead to overall lower wage standards in the industry, affecting both new hires and existing employees.</li><li><strong>Job Insecurity and Stress: </strong>With higher competition and increased performance expectations, job insecurity can become a prevalent issue in the workforce. Employees may feel constant pressure to outperform and prove their worth, leading to heightened levels of stress and potential burnout.</li><li><strong>Stagnation of Innovation: </strong>Smaller companies often provide a breeding ground for innovation and diverse thinking. However, the influx of employees from larger, more established companies can sometimes lead to a homogenization of ideas and approaches, potentially stifling creativity and innovation.</li><li><strong>Reduced Opportunities for Training and Development: </strong>Smaller firms, now staffed with experienced professionals, may deprioritize training and development programs for less experienced staff. This could lead to a slower pace of skill development among new entrants or existing employees who are looking to advance their careers.</li><li><strong>Effect on Diversity:</strong> Large tech companies often have more resources to invest in diversity and inclusion initiatives, including gender, age, and minority diversity. If these companies lay off employees, and smaller companies do not have similar initiatives or resources, it could negatively impact the progress made in diversity within the industry.</li></ul><h4>3. Impact <strong>of Regulatory Changes and Compliance Costs</strong></h4><p>The escalating regulatory requirements in data privacy, cybersecurity, and other IT-related fields, while crucial for safeguarding interests and maintaining standards, can have a profound impact on job security. For smaller IT companies, grappling with these increased compliance costs can lead to financial strain, forcing them to make difficult decisions around staffing. This will ultimately lead to increased job turnover, reduced hiring, and a more cautious approach to long-term employment commitments.</p><h3><strong>2024: The Year of Reckoning and Adaptation:</strong></h3><p>As we move forward into 2024, the predictions and observations regarding the IT industry’s <a href="https://layoffs.fyi/">layoffs</a> and the subsequent absorption of talent by smaller companies signal a significant shift. This is not to paint a dark image but rather a call to action for preparedness and adaptability. Here are some strategies and solutions to help individuals and leaders navigate these changes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JwHm20cQoJYGpjWvXE_k0Q.png" /><figcaption>Adaptability as a key to growth</figcaption></figure><p><strong>1. Embracing Lifelong Learning:</strong></p><ul><li><strong>For Individuals:</strong> Continuously update your skill set. Engage in lifelong learning, be it through formal education, online courses, or workshops. Stay abreast of emerging technologies and industry trends.</li><li><strong>For Managers:</strong> Encourage and facilitate continuous learning and development opportunities for your team. This could include providing access to training programs or allocating time for learning during the workweek.</li></ul><p><strong>2. Fostering a Diverse Skillset: </strong>Diversify your skills beyond your current specialization. This could mean developing skills in adjacent areas or even entirely new domains. Versatility will be key in a fluctuating job market.</p><p><strong>3. Cultivating Soft Skills: </strong>Soft skills such as adaptability, communication, and problem-solving are increasingly valuable. Cultivate these skills to enhance your ability to work effectively in diverse teams and environments.</p><p><strong>4. Networking and Community Engagement: </strong>Build a robust professional network. Engage with your industry community through events, forums, and social media. Networking can open doors to new opportunities and provide support during times of transition.</p><p><strong>5. Mental Health and Resilience: </strong>Prioritize your mental health and well-being. Practices such as mindfulness, regular exercise, and maintaining a work-life balance can build resilience in the face of career uncertainties.</p><p><strong>6. Preparing for Financial Stability: </strong>Plan and prepare for financial stability in uncertain times. This could include saving, investing, or exploring side projects that can provide additional income streams.</p><p><strong>7. Mentorship and Support Systems: </strong>Seek mentorship and be a mentor. Sharing experiences and guidance can be mutually beneficial for career growth and navigating industry changes.</p><p><strong>8. Openness to Change and Flexibility: </strong>Be open to change, whether it’s a new role, a new company, or even a career pivot. Flexibility and the willingness to adapt are critical in a dynamic job market.</p><p><strong>9. Embracing Generative AI with Critical Thinking and Imagination: </strong>In the dynamic realm of 2024’s IT industry, individuals have a unique opportunity to leverage Generative AI as a powerful tool for career advancement and distinction. The key here is not just in using AI tools but in combining them with critical thinking and imagination. While Generative AI can automate tasks and assist in creative problem-solving, it’s your ability to critically evaluate AI-generated solutions and infuse them with imaginative insights that will set you apart. This approach enables you to not only harness the efficiency and innovation offered by AI but also to apply a human touch that AI alone cannot replicate. Embrace this synergy of technology and human intellect to carve out your niche in the evolving IT landscape.</p><blockquote>By blending AI’s computational power with your unique creative and analytical skills, you position yourself as an invaluable asset in any professional setting, especially in an industry where adaptability and ingenuity are prized.</blockquote><p>By following these tips, we’re not just getting ready for the future; we’re also grabbing the chances that come with change. This is about making ourselves strong and flexible, ready to do well in the changing world of IT. Let’s get ready together, excited to learn, make new things, and succeed in the exciting IT industry.</p><h3><strong>Join the Conversation: Your Voice Matters</strong></h3><p>As we navigate these transformative times in the IT industry, your insights and experiences are invaluable. I encourage you to engage with this article by sharing your thoughts, perspectives, and personal stories in the comments below. Whether you’ve experienced the impact of these trends firsthand, have ideas for coping strategies, or want to offer a different viewpoint, your contribution is essential in enriching this discussion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UMPa36o4RwoHN7aXgsdoLg.png" /></figure><p>If you found the perspectives shared here thought-provoking and wish to explore further, a trove of articles awaits you, each offering unique viewpoints and in-depth analysis on various facets of the IT industry and beyond.</p><p><a href="https://medium.com/@JaouherK">Jaouher Kharrat - Medium</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a5f9c603e64" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Practical ETL Pipeline for Chatbots: From Confluence to ChromaDB using GitLab]]></title>
            <link>https://medium.com/eqs-tech-blog/etl-pipeline-for-chatbots-using-gitlab-71b3ce5b343e?source=rss-67271b4d72af------2</link>
            <guid isPermaLink="false">https://medium.com/p/71b3ce5b343e</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[chromadb]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[embedding]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Jaouher Kharrat]]></dc:creator>
            <pubDate>Sun, 24 Dec 2023 15:01:16 GMT</pubDate>
            <atom:updated>2023-12-24T15:01:16.603Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.atlassian.com/software/confluence">Confluence</a> has long stood as a pillar for organizations to store and share their knowledge. Yet, simply having a rich knowledge base is only the start. With the rising popularity of chatbots, there’s a pressing need to make this knowledge easily accessible through conversational interfaces. The first step in this evolution? Migrating that knowledge to a structured format, like vector databases, paves the way for intelligent, interactive information exchange internally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RdO654aNwXCqHGI_AzLEvQ.png" /><figcaption>Gitlab Pipelines</figcaption></figure><p>This article isn’t mere data migration; it’s about refining and supercharging access to knowledge and enhancing searches and operations. Explore the depths of ETL pipeline creation, utilizing <a href="https://about.gitlab.com/">GitLab</a> for seamless Confluence-vector database integration, through a guide that aims to light the path for data engineers and knowledge managers. Ready to bridge the gap from static to dynamic knowledge use?</p><h3>A. Before we dive:</h3><h4>a. What is a Vector Database?</h4><p><a href="https://en.wikipedia.org/wiki/Vector_database">Vector databases</a>, part of the <a href="https://en.wikipedia.org/wiki/NoSQL">NoSQL</a> family, manage data as vectors — mathematical constructs representing data in multi-dimensional spaces. These databases excel at handling complex data, like machine learning embeddings. Vector databases typically implement one or more <a href="https://en.wikipedia.org/wiki/Nearest_neighbor_search#Approximation_methods">Approximate Nearest Neighbor</a> (ANN) algorithms.<em><br></em>Their hallmark? Swift similarity searches. Submit a query vector, and they’ll pinpoint its closest matches in the dataset. When searching for a Kitten, you will find it near Cats as the nearest neighbor followed by Tigers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*8-D8MBgXwExawpr4-p4sXg.png" /><figcaption>Very simple visualization of similar words presentation in a vector space</figcaption></figure><h4>b. What is an ETL?</h4><ul><li><strong>Extract</strong>: Pull data from varied sources like databases or spreadsheets.</li><li><strong>Transform</strong>: Process the data, enhancing its consistency and reliability through cleaning, enriching, and restructuring steps.</li><li><strong>Load</strong>: Deposit the curated data into a destination (like Chroma DB) for optimized access and use.</li></ul><h3>B. Prerequisites</h3><p>Before exploring the ETL pipeline development for integrating a Confluence Knowledge Base with a vector database, let’s identify what we need first:</p><ul><li><strong>Confluence API Access</strong>: To extract data from a Confluence Knowledge Base, secure API access is a. must. For security reasons. We require a user who can access only internally public data, safeguarding against the disclosure of confidential information.</li><li><strong>Vector Database: </strong>we will use a hosted ChromaDB, accessible from the GitLab pipeline. To ensure secure access, it’s crucial to leverage API keys behind a gateway.</li><li><strong>GitLab</strong>: We will require an adequately privileged account and crucial <a href="https://docs.gitlab.com/ee/ci/">CI/CD configurations</a>. This entails setting up runners, embedding environment variables like API keys, and constructing a “.gitlab-ci.yml” file to secure and define the pipeline efficiently.</li></ul><h3>1. Extracting Knowledge from Confluence</h3><p>The act of obtaining information from Confluence is intricate, particularly when handling diverse data forms such as text, video, attachments, and so on. In this article, however, we’ll focus solely on the textual content of the html output.</p><h4>a. Connecting to Confluence API</h4><p>The extraction process commences with the <em>fetchConfluenceData</em> function. It’s designed to make authenticated HTTP GET requests to the Confluence API using axios. Authentication is handled using a Basic Auth token:</p><pre>const fetchConfluenceData = async (url, authToken) =&gt; {<br> // … other code …<br> const response = await axios.get(url, {<br> headers: {<br> Authorization: `Basic ${authToken}`,<br> &#39;Content-Type&#39;: &#39;application/json&#39;,<br> Accept: &#39;application/json&#39;,<br> },<br> });<br> // … other code …<br>};</pre><p>This token is generated using the Confluence username and password, then encoded in Base64 and passed in the request header.</p><h4>b. Fetching Active Spaces</h4><p>Identifying active spaces is a pivotal step, conducted by <em>fetchAllActiveSpaces</em>. It interrogates the /rest/api/space endpoint of the API:</p><pre>const fetchAllActiveSpaces = async (baseUrl, authToken) =&gt; {<br> const url = `${baseUrl}/rest/api/space?type=global&amp;limit=500`;<br> // … other code …<br> const response = await fetchConfluenceData(url, authToken);<br> // … other code …<br>};</pre><p>PS: you can instead of fetching If specific spaces are preconfigured in config.insight_space, it sidesteps the API call, otherwise, it retrieves all spaces, respecting the pagination limit set by Confluence.</p><h4>c. Retrieving Pages from Spaces</h4><p>With the space keys in hand, each space’s content is fetched through <em>fetchAllPagesInSpace</em>, which continuously requests pages until all are retrieved:</p><pre>const fetchAllPagesInSpace = async (baseUrl, spaceKey, authToken) =&gt; {<br> // … other code …<br> while (hasMoreData) {<br> const url = `${baseUrl}/rest/api/content?spaceKey=${spaceKey}&amp;limit=${limit}&amp;start=${start}`;<br> const data = await fetchConfluenceData(url, authToken);<br> // … other code …<br> }<br> // … other code …<br>};</pre><p>This method is robust against API limitations by incrementing the start parameter to loop through paginated results.</p><h4>d. Challenges and their Mitigation</h4><p><strong>1. Rate Limiting</strong>:</p><ul><li><strong>Challenge</strong>: Confluence API might have rate limits, which can hinder the extraction process if you’re making frequent requests.</li><li><strong>Mitigation</strong>: Implementing rate limit handling in your Node.js scripts, using retries with exponential backoff, or pre-fetching data at non-peak times can help.</li></ul><p><strong>2. Incomplete or Inconsistent Data</strong>:</p><ul><li><strong>Challenge</strong>: Not all data in Confluence might be structured or complete, leading to potential gaps in the extracted data.</li><li><strong>Mitigation</strong>: Data validation checks during extraction can identify and flag incomplete data, allowing for manual intervention or automated fill mechanisms.</li></ul><p><strong>3. Large Attachments</strong>:</p><ul><li><strong>Challenge</strong>: Some attachments in Confluence might be heavy, causing delays or potential failures during extraction.</li><li><strong>Mitigation</strong>: Breaking down large files into chunks, optimizing the extraction process to deal with large files separately, or temporarily storing them in ChromeDB before processing can help.</li></ul><p><strong>4. Data Security and Privacy Concerns</strong>:</p><ul><li><strong>Challenge</strong>: Extracting sensitive or private data might raise security and compliance issues.</li><li><strong>Mitigation</strong>: Ensure that all data extraction adheres to GDPR, CCPA, or other regional data privacy laws. Additionally, anonymize or mask sensitive data during the extraction phase if needed.</li></ul><h3>2. Transforming Data for Vector Database</h3><p>Once the data is extracted from Confluence, the transform phase manipulates this raw data into a more analytically valuable form. This process involves sanitizing text, enriching data, and preparing it for loading into ChromaDB.</p><h4>Text Sanitization and Normalization</h4><p>The raw HTML content from Confluence pages is converted into plain text to simplify analysis. This conversion might look something like the following:</p><pre>const transformPageContent = (htmlContent) =&gt; {<br>    const textContent = htmlToText(htmlContent, {<br>        wordwrap: null,<br>        ignoreImage: true,<br>        uppercaseHeadings: false<br>    });<br>    return textContent.trim();<br>};</pre><p>Here, htmlToText is a function that converts HTML to plain text, stripping out any formatting and images to leave behind the raw, unstyled content.</p><h4>Data Structuring</h4><p>During the transformation phase, it’s essential to structure the data into a more coherent form that reflects the requirements of the target data store or the analytical tools to be used later. This might involve creating a uniform schema or data model:</p><pre>const structureData = (pageData) =&gt; {<br>    return {<br>        title: pageData.title,<br>        content: transformPageContent(pageData.body.storage.value),<br>        metadata: {<br>            author: pageData.version.by.displayName,<br>            createdDate: pageData.version.when,<br>            url: `ConfluenceURL/pages/viewpage.action?pageId=${pageData.id}`<br>            // other relevent metadata<br>        }<br>    };<br>};</pre><p>This structureData function demonstrates the process of taking the unstructured page data and organizing it into a more defined format.</p><p>If your data has inherent relationships (like hierarchies in Confluence pages or related tags), understand how these relationships can be represented within the vector database.</p><h4>Content Enrichment</h4><p>The transformation phase may also include enriching the data with additional context or metadata, which could involve appending related tags, categories, or any other relevant data that can provide more depth to the analysis.</p><pre>const enrichData = (structuredData) =&gt; {<br>    // Example of adding a tag based on content analysis or other criteria<br>    // you can also leverage LLMs to make such categorization<br>    if (structuredData.content.includes(&quot;urgent&quot;)) {<br>        structuredData.metadata.priority = &quot;High&quot;;<br>    }<br>    return structuredData;<br>};</pre><p>The enrichData function showcases a simple conditional enrichment, where a priority level is assigned to the data based on the content.</p><h4>Data Filtering</h4><p>Sometimes, the transformation phase includes filtering the data to remove unnecessary or irrelevant information:</p><pre>const filterData = (structuredData) =&gt; {<br>    return structuredData.filter((page) =&gt; page.content.length &gt; 100);<br>};</pre><p>In this filterData function, only pages with more than 100 characters are kept, filtering out pages with less content which might be considered less valuable.</p><h4>Chunking data</h4><p>Now we split the elements into chunks less or equal to 512 characters with an overlap of 20 characters.</p><pre>const textSplitter = new RecursiveCharacterTextSplitter({<br>            chunkSize: 512,<br>            chunkOverlap: 20,<br>        });<br>const splitDocs = await textSplitter.splitDocuments(rawData);</pre><p>Generating these chunks can make the IDs of the original article id obsolete. the simplest way is to auto-increment an integer as a suffix to the original ID.</p><pre>let previousBaseId = &#39;&#39;;<br>let suffix = 0;<br>splitDocs.forEach((doc, index) =&gt; {<br>    let baseId = doc.metadata.id;<br><br>    // If the baseId is different from the previous one, reset the suffix<br>    if (baseId !== previousBaseId) {<br>        suffix = 0;<br>        previousBaseId = baseId;<br>    }<br><br>    // Generate newId by appending the suffix to the baseId<br>    let newId = `${baseId}-${suffix}`;<br><br>    // Adding the calculated glId to the document&#39;s metadata<br>    doc.metadata.glId = newId;<br><br>    // Increment suffix for next document<br>    suffix++;<br>});</pre><h4>Possible Challenges and Measures</h4><p><strong>1. Identifying and Addressing Null Values</strong>:</p><ul><li>Missing or null values can hinder the efficiency of a vector database. Identify these gaps and either fill them with default values, <a href="https://www.kaggle.com/code/pagenotfound/mean-and-median-imputation">mean/median imputation</a> or use advanced techniques like <a href="https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/AliMeekPredictiveModelsOfFormFillingTechReport.pdf">predictive filling</a>.</li></ul><p><strong>2. Removing Duplicates</strong>:</p><ul><li>Confluence data might have redundancies, especially with repeated information across different pages or sections. Identify and eliminate these duplicates to ensure uniqueness.</li></ul><p><strong>3. Standardizing Formats / Data Normalization</strong>:</p><ul><li>Ensure that date, currency, text formats, etc., are consistent. This is especially important when dealing with global data that might have regional variations.</li></ul><p><strong>4. Handling Non-textual Data</strong>:</p><ul><li>Images, videos, and other rich media extracted from Confluence can be represented in vector form using feature extraction techniques. Tools like <a href="https://en.wikipedia.org/wiki/Convolutional_neural_network">convolutional neural networks (CNN)</a> for images can be instrumental in this regard.</li></ul><p><strong>5. Categorization and Tagging</strong>:</p><ul><li>Apply <a href="https://huggingface.co/models?pipeline_tag=text-classification&amp;sort=trending">classification models</a> or clustering techniques to categorize the data. This can be valuable for quick retrieval or segmentation within the vector database. Can be part of <a href="https://pub.towardsai.net/advanced-rag-techniques-an-illustrated-overview-04d193d8fec6">Advanced RAG techniques</a>.</li></ul><h3>3. Loading Data into Vector Database</h3><p>After the data has been extracted from Confluence and transformed into a structured and enriched format, the final step in the ETL pipeline is to load the data into ChromaDB.</p><h4>Preparation</h4><p>The code begins by importing the necessary modules and reading the data_transformed.json file containing the transformed data ready to be loaded.</p><pre>const splitDocs = JSON.parse(await readFile(&#39;data_transformed.json&#39;, &#39;utf-8&#39;));</pre><h4>Embedding and Database Initialization</h4><p>The ChormaDB leverages machine learning models to embed the documents for similarity searches. The code initializes a Hugging Face model to perform the embedding:</p><pre>const model = new TransformersEmbeddingFunction({<br>    model: &quot;Xenova/bge-small-en-v1.5&quot;,<br>});</pre><p>Then, it connects to ChromaDB and either retrieves or creates a new collection to store the documents:</p><pre>const chroma = new ChromaClient({path: config.chroma_server_host});<br>const collection = await chroma.getOrCreateCollection({name: &quot;confluence&quot;, embeddingFunction: model});</pre><h4>Loading Documents</h4><p>Documents are added to the CHROMA database in batches. The code iterates over each document and adds it to the specified collection:</p><pre>await addDocumentsToChromaDB(collection, splitDocs);</pre><p>Each document consists of its content and associated metadata, including a globally unique identifier (glId).</p><h4>Strategies for Efficient Data Loading</h4><p><strong>1. Batch Processing</strong>:</p><ul><li>Instead of loading data in real-time or one-by-one, utilize batch processing. This approach aggregates data and loads it in chunks, ensuring efficiency and reduced strain on the database.</li></ul><p><strong>2. Parallel Loading</strong>:</p><ul><li>If your infrastructure and the vector database support it, parallelize the data loading process. This means multiple streams of data can be loaded simultaneously, speeding up the entire operation.</li></ul><p><strong>3. Error Handling</strong>:</p><ul><li>Always anticipate potential issues during loading, such as data mismatches or server timeouts. Implement error handling mechanisms that can either retry, log, or notify about such disruptions.</li></ul><p><strong>4. Prioritization</strong>:</p><ul><li>If specific data segments are more critical than others, prioritize their loading. This ensures that the most vital data is available for querying even if the loading process isn’t complete.</li></ul><h3>4. Validation and Verification Procedures</h3><p>Loading data into a vector database might seem like the last step of the ETL journey, but in many ways, it’s just the beginning of realizing the true value of your data. Some checks can ensure you did the previous steps well.</p><h4><strong>Data Integrity Checks</strong>:</h4><ul><li>Once data is loaded, compare a sample against its transformed counterpart to ensure no data loss or corruption has occurred during the loading phase.</li></ul><h4><strong>Performance Benchmarks</strong>:</h4><ul><li>Conduct speed and performance tests to verify that data can be retrieved efficiently. This will help you gauge if the loading was not just successful but also optimized for future operations.</li></ul><h4><strong>User Feedback</strong>:</h4><ul><li>Allow a subset of users to interact with the newly loaded data. Their feedback can provide insights into any anomalies, errors, or inefficiencies that might have been overlooked.</li></ul><h4><strong>Auditing</strong>:</h4><ul><li>Maintain logs of the data loading process. This will not only aid in troubleshooting but also ensure compliance and offer transparency about the data’s lineage and any transformations it underwent.</li></ul><h3>5. Orchestrating ETL with GitLab</h3><p>This section will showcase how to set up a GitLab CI/CD pipeline to streamline the ETL process for data from Confluence, with additional stages for Testing and Resetting the environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6wx4DUUa5trqlaaB1L9xfQ.png" /></figure><h3>Stages Definition</h3><p>The stages keyword is used to define the order of execution:</p><pre>stages:<br>  - Extract<br>  - Transform<br>  - Load<br>  - Test<br>  - Reset</pre><h3>Extract Stage</h3><p>The “Extract” stage is defined by the job 💫 E-confluence. It is responsible for pulling data from a Confluence instance:</p><pre>💫 E-confluence:<br>  stage: Extract<br>  script:<br>    - npm install<br>    - npm run confluence:extract --option=$EXTRACT_OPTION<br>  variables:<br>    INSIGHT_URL: $INSIGHT_URL<br>    INSIGHT_PASSWORD: $INSIGHT_PASSWORD<br>    INSIGHT_USERNAME: $INSIGHT_USERNAME<br>  when: manual  # This line makes the job manual<br>  allow_failure: false  # If you want the job to be marked as &#39;failed&#39; if any script fails<br>  artifacts:<br>    paths:<br>      - data_raw.json<br>      - node_modules/   # Add the node_modules directory as an artifact<br>    expire_in: 24 hours  # Artifacts expire in 24 hours</pre><p>Key features:</p><ul><li>Installation of project dependencies using npm install.</li><li>Manual trigger (when: manual), which means this job runs when initiated by the user.</li><li>Use of project-specific variables like INSIGHT_URL, which are assumed to be set in the CI/CD settings.</li><li>Artifact creation for data_raw.json and the node_modules directory with a 24-hour expiry.</li></ul><h3>Transform Stage</h3><p>The “Transform” stage is defined by the job 🔧 T-confluence, which modifies the extracted data into a structured format:</p><pre>🔧 T-confluence:<br>  stage: Transform<br>  script:<br>    - npm run confluence:transform<br>  when: manual  # This line makes the job manual<br>  artifacts:<br>    paths:<br>      - data_transformed.json  # Assuming this file is produced by the transform.js script<br>  dependencies:<br>    - 💫 E-confluence</pre><p>Key features:</p><ul><li>The job is also manually triggered.</li><li>It depends on the successful completion of the 💫 E-confluence job.</li><li>The transformed data is saved in data_transformed.json, which is preserved as an artifact.</li></ul><h3>Load Stage</h3><p>The “Load” stage is defined by the job ✍ L-confluence, which loads the transformed data into a vector database:</p><pre>✍ L-confluence:<br>  stage: Load<br>  script:<br>    - npm install<br>    - npm run confluence:load<br>  when: manual  # This line makes the job manual<br>  dependencies:<br>    - 🔧 T-confluence</pre><p>Key features:</p><ul><li>This stage is manually triggered.</li><li>It depends on the 🔧 T-confluence job to ensure data is transformed before loading.</li></ul><h3>Test Stage</h3><p>The “Test” job 👨‍🎓 T-confluence handles the testing of the ETL process to ensure the integrity of the data:</p><pre>👨‍🎓 T-confluence:<br>  stage: Test<br>  script:<br>    - npm install<br>    - npm run confluence:test<br>  # ...other actions...</pre><p>Key features:</p><ul><li>The job is manually triggered.</li><li>It is dependent on the 💫 E-confluence job, suggesting that it tests the extraction process or the end-to-end ETL pipeline.</li></ul><h3>Reset Stage</h3><p>Finally, the “Reset” job ⚠⚠⚠ RESET ⚠⚠⚠ is defined as resetting the environment, cleaning up, or reinitializing as needed:</p><pre>⚠⚠⚠ RESET ⚠⚠⚠:<br>  stage: Reset<br>  script:<br>    - npm install<br>    - npm run confluence:reset<br>  # ...other configurations...</pre><p>Key features:</p><ul><li>Manually triggered for controlled cleanup operations.</li><li>This is typically used to clear databases, remove temporary files, or revert settings to a baseline state.</li></ul><h4><strong>Possible enhancements</strong></h4><p><strong>1. Trigger-based Workflows</strong>:</p><ul><li>Automate your ETL workflows to initiate based on specific triggers, such as data updates in Confluence or periodic time intervals.</li></ul><p><strong>2. Rollbacks and Error Handling</strong>:</p><ul><li>Configure your pipeline to handle errors gracefully, with potential rollback mechanisms or notifications for manual intervention.</li></ul><p><strong>3. Logging and Reporting</strong>:</p><ul><li>Ensure detailed logging of each ETL step, aiding in troubleshooting, performance benchmarking, and audit compliance.</li></ul><p><strong>4. Alerts and Notifications</strong>:</p><ul><li>Set up notifications to be alerted about any disruptions, failures, or successful completion of ETL jobs.</li></ul><h3>Conclusion</h3><p>In closing, remember that the integration of Confluence, vector databases, and GitLab is not just a technical upgrade but a step towards a more innovative and efficient future. This is an evolving field, and the possibilities are vast. Stay curious and keep exploring new ways to enhance data accessibility and knowledge sharing. Your willingness to innovate and adapt will not only benefit your organization but also contribute to the broader community’s growth in this exciting domain. Let’s embrace these tools and approaches with enthusiasm and a spirit of discovery, continually pushing the boundaries of what’s possible in knowledge management.</p><p>I’d love to hear your thoughts on this process. Have you embarked on similar journeys? Any challenges or successes you’d like to share? Let’s enrich this discussion with diverse experiences!</p><p>Passionate about shaping the future of SaaS products? At EQS Group, we’re on the hunt for enthusiastic individuals ready to bring their talents to our dynamic team. Discover opportunities tailored for you: <a href="https://eqs-group.personio.de/recruiting/positions">https://eqs-group.personio.de/recruiting/positions</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71b3ce5b343e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/eqs-tech-blog/etl-pipeline-for-chatbots-using-gitlab-71b3ce5b343e">Practical ETL Pipeline for Chatbots: From Confluence to ChromaDB using GitLab</a> was originally published in <a href="https://medium.com/eqs-tech-blog">EQS Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Art of LLM Prompting]]></title>
            <link>https://medium.com/eqs-tech-blog/the-art-of-llm-prompting-9d28300c4092?source=rss-67271b4d72af------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d28300c4092</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[prompt]]></category>
            <dc:creator><![CDATA[Jaouher Kharrat]]></dc:creator>
            <pubDate>Fri, 13 Oct 2023 12:18:35 GMT</pubDate>
            <atom:updated>2023-10-13T18:28:11.182Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>The Art of Prompting: A Deep Dive Into 5 Remarkable ChatGPT “Frameworks”</strong></h3><p>Navigating the nuanced pathways of ChatGPT/LLMs for around a year, both as a prompt explorer and a developer crafting an alternative at <a href="https://www.eqs.com/">EQS Group</a>, has rendered a rich tapestry of insights into the art and knowledge of effective prompting. The interplay between machine and human communication is a delicate dance, one where strategic prompting can provide a spectrum of possibilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dP06GtrS5C76Az1G2MYh6w.jpeg" /><figcaption>Mastering the art of prompting</figcaption></figure><p>In this article, I will share five personally tested prompt frameworks that have significantly enriched my interactions with ChatGPT. To illustrate each, I’ll harness the persona of a carpenter building a laptop stand.</p><h4>1. Simplifying Complexity: The RTF Framework</h4><p>Being the most widely-used framework due to its intuitive nature, RTF harnesses three pivotal points:</p><ul><li><strong>R</strong>ole</li><li><strong>T</strong>ask</li><li><strong>F</strong>ormat</li></ul><p>It functions as a universal tool for crafting prompts, simplifying them into a question, such as: “Act like a [role]. Can you [insert task] in [format] format?” Such a structure is not only easy to remember but also effortlessly applicable across varied scenarios, ensuring improved, tailored outputs.</p><blockquote><strong>Example:</strong><br>“Act like a skilled carpenter. Can you guide me through building a laptop stand using wood in a step-by-step instruction format?”</blockquote><p>Outcome:</p><p><a href="https://chat.openai.com/share/59e151fe-d02a-4b45-847c-e30b798a5883">Build Wooden Laptop Stand</a></p><h4>2. Meticulous Outputs with RODES</h4><p>The <strong>RODES </strong>framework shines, especially when examples similar to the anticipated output are at hand:</p><ul><li><strong>R</strong>ole</li><li><strong>O</strong>bjective</li><li><strong>D</strong>etails</li><li><strong>E</strong>xamples</li><li><strong>S</strong>ense Check</li></ul><p>Leveraging the <strong>RODES </strong>framework, the model is well-guided through the task with clear objectives, detailed information, real-life examples, and a final checkpoint to ensure the output aligns seamlessly with the expectations.</p><blockquote><strong>Example:</strong><br>Taking on the Role of a master woodworker, help me to define a clear Objective in creating a functional laptop stand, offering all relevant Details and Specifics, perhaps providing Examples of similar designs, and conducting a Sense Check to ensure practicality and feasibility in a home woodworking setting.</blockquote><p>Outcome:</p><p><a href="https://chat.openai.com/share/afc4a3f3-2c0e-48b4-91f5-bc9bedd3a8ae">Wooden Laptop Stand Guide</a></p><h4>3. Navigating Detailed Tasks: The RISEN Framework</h4><p><strong>RISEN </strong>lays down a structured path, especially when dealing with tasks that mandate a specific framework and discernible guidelines, such as writing tasks with constraints or crafting detailed plans:</p><ul><li><strong>R</strong>ole</li><li><strong>I</strong>nstructions</li><li><strong>S</strong>teps</li><li><strong>E</strong>nd Goal</li><li><strong>N</strong>arrowing (Constraints)</li></ul><p>By incorporating these elements, the model is offered a clear pathway to navigate through the task, aligning closely with predefined guidelines and achieving the desired end goal efficiently.</p><blockquote><strong>Example:</strong><br>Assuming the Role of a seasoned DIY expert, with clear Instructions, guide me through the Steps to create a wooden laptop stand, ensuring we achieve the End Goal of a sturdy and aesthetically pleasing stand, while Narrowing our focus to using readily available tools and materials.</blockquote><p>Outcome:</p><p><a href="https://chat.openai.com/share/4c7adb4e-0453-4096-a60f-c50bab5d3eb9">Using RISEN: Build Wooden Laptop Stand</a></p><h4>4. Step-wise Clarity: The Chain of Thought Method</h4><p>Achieving clarity and coherence in complex tasks like analytical endeavors, decision-making, and problem-solving becomes approachable with the Chain of Thought method. By merely appending, “Let’s think step-by-step” to your prompt, you invoke a sequentially reasoned output from the model, enabling it to demonstrate a visibly logical and structured thought process.</p><blockquote><strong>Example:</strong><br>Could you assist me in developing a design for a wooden laptop stand? Let’s think step-by-step about the materials, dimensions, and assembly process.</blockquote><p>Outcome:</p><p><a href="https://chat.openai.com/share/b84cee45-f819-471f-8e3f-6be492b5da64">Using Chain of Thoughts: Build Wooden Laptop Stand</a></p><h4>5. Recursive Excellence: The Chain of Density Method</h4><p>Navigating through tasks that necessitate a depth of recursion to produce progressively better outputs, the Chain of Density is a method to consider. Particularly potent for creating summaries, refining prompts, and generating valuable long-form content, this approach utilizes recursion to incrementally enhance and polish the outputs, optimizing them for usability and coherence.</p><blockquote><strong>Example:</strong><br>Could you help me refine and elaborate on this initial idea: ‘Create a sturdy laptop stand using standard wood planks and screws’, progressively improving and detailing each subsequent version of the prompt to finally provide a comprehensive guide on building a laptop stand?</blockquote><p>Outcome:</p><p><a href="https://chat.openai.com/share/f1c95dd4-81ab-409c-b3f4-2e54aa127db8">Using Chain of Density: Build Wooden Laptop Stand</a></p><h3>Conclusion</h3><p>Mastering ChatGPT or any other LLM involves not only understanding its capabilities but also effectively communicating tasks to it — and that’s where strategic prompting comes into play. The above frameworks have emerged as key allies in unlocking enhanced, targeted outputs from ChatGPT. Tailoring your prompts using these frameworks ensures that your interactions with ChatGPT are not only fruitful but also reliably consistent, optimizing your tasks and reducing the effort invested in refining outputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rsPnAVXAzvAdBaAgc-aR3w.jpeg" /><figcaption>Exchange knowledge for the future</figcaption></figure><p>Your insights and experiences matter to us. Engage in the dialogue — share with us other frameworks or personal prompts that have proven effective in your ChatGPT explorations. Let’s continue to unravel the mysteries and capabilities of ChatGPT together, building a community where knowledge and experiences are shared openly and constructively.</p><p>Passionate about shaping the future of SaaS products? At EQS Group, we’re on the hunt for enthusiastic individuals ready to bring their talents to our dynamic team. Discover opportunities tailored for you: <a href="https://eqs-group.personio.de/recruiting/positions">https://eqs-group.personio.de/recruiting/positions</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d28300c4092" width="1" height="1" alt=""><hr><p><a href="https://medium.com/eqs-tech-blog/the-art-of-llm-prompting-9d28300c4092">The Art of LLM Prompting</a> was originally published in <a href="https://medium.com/eqs-tech-blog">EQS Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Setup Paypal to get Tips on Medium.]]></title>
            <link>https://medium.com/@JaouherK/how-to-setup-paypal-to-get-tips-on-medium-a6bb87f79539?source=rss-67271b4d72af------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6bb87f79539</guid>
            <category><![CDATA[monetization]]></category>
            <category><![CDATA[paypal]]></category>
            <category><![CDATA[tipping]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[how-to]]></category>
            <dc:creator><![CDATA[Jaouher Kharrat]]></dc:creator>
            <pubDate>Thu, 29 Sep 2022 18:58:36 GMT</pubDate>
            <atom:updated>2022-09-29T18:58:36.151Z</atom:updated>
            <content:encoded><![CDATA[<h4>A How-to guide to Create a passive income through Medium tipping feature using Paypal</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HtRuGLc-SBgiU3oohhpYhA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@querysprout?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Marques Thomas</a> on <a href="https://unsplash.com/s/photos/paypal?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In addition to the <a href="https://help.medium.com/hc/en-us/categories/360000842234-Partner-Program">Partner program</a> and <a href="https://help.medium.com/hc/en-us/articles/4405927192215-Referred-memberships">referred Memberships</a>, Medium introduced <a href="https://help.medium.com/hc/en-us/articles/8177227023767-About-tipping">tipping</a>.</p><p>This feature gives you the opportunity to setup a customizable Call To Action (CTA) to all your published articles so you can receive direct support from your readers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*CJd2K2cttHLIKA3cYo2i6A.png" /><figcaption>Tipping Call To Action</figcaption></figure><p>Unfortunately Medium documentation is vague as it does not provide the proper how to. <br>Here is how it works:</p><h4>1. Enable tipping:</h4><ul><li>On your Homepage, click on your profile picture</li><li>Navigate to settings &gt; Audience development &gt; Manage tipping</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*thI14fzYSWdWcCPjEnc5Vw.png" /><figcaption>Manage tipping interface</figcaption></figure><ul><li>You now receive the instructions on how to set up the subscription system. The instructions are not helpful at this stage:</li></ul><blockquote>Allow readers to send a tip by adding a link to your preferred payment platform, which will appear at the bottom of your stories. Popular platforms include Ko-Fi, Patreon, or PayPal — or link to an organization for readers to donate on your behalf.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*Hns1RED63tsjZvlQZCd2Gw.png" /><figcaption>Instructions on how to enable tipping… Really?</figcaption></figure><p>You might get tempted to enter your paypal.me link, but it will not work. Instead you need to do the following phase.</p><h4>2. Setting up Paypal’s Donate Button functionnality:</h4><p>According to Paypal this feature is “<em>More than a page to donate</em>” as it helps you “<em>Accept donations securely through a campaign, a button on your website, or a social media link.</em>”<br>From my experience, this is an adequate tool that:</p><ul><li>is easy to setup in a couple of minutes,</li><li>provides customizable experience,</li><li>suggests donation amounts and recurring possibilities.</li></ul><p>The process is as follows:</p><ul><li>Navigate to the PayPal Donate Button <a href="https://www.paypal.com/donate/buttons">page</a> and Login (or Signup)</li><li>You will find your self in the Create a new donation page. Click on the first option: “Create a link”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OLhf2ftau7kAwl1j8iB68w.png" /><figcaption>Create a new donation page in Paypal</figcaption></figure><ul><li>In the wizard, start by uploading a logo (or your picture). Next, write an inspiring message or compelling story.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IDI4BsLeZ6N3vWg3DiUuGA.png" /><figcaption>Set up your donation page (step 1)</figcaption></figure><ul><li>Now, choose your currency, set an amount, or better provide predefined amounts for faster engagement.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_vyjpOXFYiT9fXCzibwGxA.png" /><figcaption>Set up your donation page (step 2)</figcaption></figure><ul><li>You will obtain a link to use in Medium. Paypal will send a copy to your email.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*dDr9qU3H_w7T5S7vLD1K7A.png" /><figcaption>Paypal’s Shareable link received by email</figcaption></figure><h4>3. Enable Tipping</h4><ul><li>Back to the “Tipping management” interface, you can enter your aquired link and save your changes.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*GY5m0dLYJ4mRnDFqPVKDpw.png" /><figcaption>Enter your link in the Tipping interface</figcaption></figure><ul><li>Voilà, Now you have it. Tipping is enabled on all of your stories.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*8puVvmi4q8EJJxFBBb7fZA.png" /><figcaption>Enabled Tipping feature</figcaption></figure><p>Do you like my articles? Please follow me here and on my <a href="https://www.linkedin.com/in/jaouher-kharrat/">LinkedIn account</a>. I regularly share Software Engineering, Engineering Management, Identity and Access Management, and various Tech tips and tutorials. You can also check other engaging stories here.</p><p><a href="https://medium.com/@JaouherK/creating-a-human-and-machine-freindly-logging-format-bb6d4bb01dca">The Art of Logging (Human and Machine Friendly Format)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6bb87f79539" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Art of Logging]]></title>
            <link>https://medium.com/better-programming/creating-a-human-and-machine-freindly-logging-format-bb6d4bb01dca?source=rss-67271b4d72af------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb6d4bb01dca</guid>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[logging]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Jaouher Kharrat]]></dc:creator>
            <pubDate>Sat, 17 Sep 2022 22:50:36 GMT</pubDate>
            <atom:updated>2022-10-12T16:09:13.109Z</atom:updated>
            <content:encoded><![CDATA[<h4>Creating a human- and machine-friendly logging format</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vKKPTh_3u2hLGyOiwwt_9w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@viktortalashuk?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Viktor Talashuk</a> on <a href="https://unsplash.com/s/photos/documents?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Historically, logs have been essential for troubleshooting application and infrastructure performance. Nowadays, it is used for business dashboards visualization and performance analysis.</p><p>The importance of structuring the data in those log files so it can be extracted, manipulated, and analyzed efficiently, in addition to being understandable by humans, is quickly moving up the priority list. The rise of (micro)services also gave birth to another challenge: tracing the propagation of the request throughout the system.</p><p>In this article, we will identify the optimal format for structuring our logs that is easy for humans and machines to parse and understand. Next, we will highlight the key info to log in addition to a proposal of data structure. Finally, we will try to provide some important notes to keep in mind for your own projects.</p><h3>Why Should Logs Be Human Readable?</h3><p>Although logs are originally meant to be parsed, processed, and stored by machines, they are actively being read, understood, and diagnosed by humans. Logs are our best indicators to investigate the murder scene caused by our arch enemy: The Bug! 🐛</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lljBOZwEXmN2Z3Cqwu6GfQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@elisa_ventur?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Elisa Ventur</a> on <a href="https://unsplash.com/s/photos/bug-computer?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Nothing can be more frustrating and time-consuming than trying to grasp the information lost within a long and unstructured logline. It is imperative to have a meaningful log that a person can easily understand and dig deeper into if the content is relevant to them.</p><pre>66.249.65.159 - - [06/Nov/2014:19:10:38 +0000] &quot;GET /news/53f8d72920ba2744fe873ebc.html HTTP/1.1&quot; 404 177 &quot;-&quot; &quot;Debian APT-HTTP/1.3 (0.8.16~exp12ubuntu10.16)&quot;</pre><p>Although we are used to the default Nginx format, the above example is still hard to read and process. It is even harder when it is part of a huge log file extracted in order to reproduce a bug in production, for example.</p><p>The advantages of JSON over other data exchange formats, such as XML, become very clear as it’s simple for us humans to read, write, and understand. How? Its structure is a simple syntax of key-value pairs ordered and nested within arrays.</p><p>So, what does a log message written in JSON look like? The following is the same previous example of the Nginx web server formatted in JSON:</p><pre>{<br>&quot;time&quot;: &quot;06/May/2022:19:10:38 +0100&quot;,<br>&quot;remote_ip&quot;: &quot;66.249.65.159&quot;,<br>&quot;remote_user&quot;: &quot;-&quot;,<br>&quot;request&quot;: &quot;GET /news/53f8d72920ba2744fe873ebc.html HTTP/1.1&quot;,<br>&quot;response&quot;: 404,<br>&quot;bytes&quot;: 177,<br>&quot;referrer&quot;: &quot;-&quot;,<br>&quot;agent&quot;: &quot;Debian APT-HTTP/1.3 (0.8.16~exp12ubuntu10.16)&quot;<br>}</pre><h3>Why Should Logs Be Machine Friendly?</h3><p>Let’s consider the above log line example again:</p><pre>66.249.65.159 - - [06/Nov/2014:19:10:38 +0000] &quot;GET /news/53f8d72920ba2744fe873ebc.html HTTP/1.1&quot; 404 177 &quot;-&quot; &quot;Debian APT-HTTP/1.3 (0.8.16~exp12ubuntu10.16)&quot;</pre><p>In order to make sense of it, we need to:</p><ul><li>decipher the syntax</li><li>write logic to parse the messages and extract the data we need</li></ul><p>Unfortunately, that logic is fragile. In case something changes in the log format (like a developer adds a new field or changes the items order), then the parser will break. I am sure anyone can face or relate to a similar situation.</p><p>That’s where a structured format such as JSON can help. The key-value pairs make it easy to extract specific values and filter and search across a data set. If new key-value pairs are added, the software parsing the log messages will just ignore those keys it doesn’t expect, rather than failing completely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xjPczWGV1HJMfUSibFYczw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@agk42?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Alex Knight</a> on <a href="https://unsplash.com/s/photos/machine-friendly?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The benefits of logging in JSON for machines are:</p><ul><li>It has a structured format, thus facilitating the analysis of application logs and querying each and every field.</li><li>Every programming language can parse it.</li></ul><p>Usually, we can aggregate our JSON data in a log parsing system (ELK, newRelic, Datadog, etc.) that gives us powerful reporting, searching, and insights into our data. These tools make it easier to index some fields, thus solving the issues of tracing requests through (micro)services environment.</p><h3>Which Information To Include?</h3><p>Here is a list of info we should include in any proper log message. Some elements could be optional. The (o) next to the field name indicates an optional field.</p><ul><li>message &lt;string&gt;: this is a human-readable message to describe the situation → easy to read when filtering to have an overview of the content.</li><li>level &lt;integer&gt;: This is a numerical presentation for the priority level (more details in the next section). Very useful to sort messages into different buckets of priority or to generate a dashboard with an overview of the system.</li><li>level_name &lt;string&gt;: This is a “string” presentation for the priority level (more details in the next section)</li><li>datetime_iso &lt;DateTime&gt;: This is an <a href="https://en.wikipedia.org/wiki/ISO_8601">iso8601 format</a>. It is a required field because we need it to correlate it with other events. Although we can use the server’s date-time, this could be misleading because these servers will use their server acquisition time of the logs which could be a few seconds different or even at a different timezone.</li><li>correlation_id &lt;string(uuidv4)&gt;: this is an important field for the microservices environment. We will use the correlation id of the parsed message/request to trace a request in the whole journey between services.</li><li>(o) hostname &lt;string&gt;: Useful to identify which machine generated this log. We recommend it in a microservices environment. It could be redundant when the server log maps already the original host from the docker’s service name.</li><li>(o) build_id &lt;string&gt;: this being the version of the software that logged the message. It can help track down incompatibility issues, especially those that happen during the deployment of server-side software.</li><li>(o) application&lt;string&gt;: Useful to identify which device or application generated this log.</li><li>(o) owner_id &lt;string(uuidv4)/null&gt;: this will report the user id or API key id if available. We can trace which steps a user has done to reproduce his actions.</li><li>(o) tenant_id &lt;string(uuidv4)/null&gt;: this will report the tenant id if available. Very helpful for multi-tenant systems</li><li>(o) tags &lt;string[]&gt;: Could be an array of elements. This element contains meta info about a request like the type, used protocol, etc.</li><li>(o) stacktrace: &lt;string/null&gt;: this is used to display the stack trace in a stringified online format if it exists</li><li>(o) exception: &lt;string/null&gt;: this is used to display the exception message if it exists</li></ul><h3>Log Levels and Associated Log Codes</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/05fecb8da548f031777a4892833f8dee/href">https://medium.com/media/05fecb8da548f031777a4892833f8dee/href</a></iframe><h3>The Proposed Format</h3><p>So what does a log message written in JSON look like?</p><p>The following is the proposed logging concept format through a sample log:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTLRKrOSpA937OvlyGQ0Cw.png" /><figcaption>Sample message generated using <a href="https://carbon.now.sh/">carbon</a></figcaption></figure><h4>Observations</h4><ul><li>In the log server, we should index the following elements for faster search: owner_id, tenant_id, correlation_id, level, level_name, and application.</li><li>The optional fields should be added to the logs when they are available. We can only omit them when they are not available. Their value will be visible when debugging our system.</li><li>The context element can contain other fields that can be useful (like a dump of the incoming request).</li><li>For security or compliance reasons (personal information protection), the logs should have some filters for key fields possibly present in a request (password). We should anonymize the content before outputting it.</li><li>Every service should forward the correlation_id it is receiving. If this value is not present, it should generate a new one and pass it to the next service. An API gateway (when existing) should always take care of the presence and generation of this field.</li></ul><h3>Best Practices</h3><ul><li>Invest time in designing your log structure. This format serves our needs and can easily be replicated. However, some teams might need a different one. Consider also the level of granularity that suits your needs. Usually, an internal “logging concept” article within your company can rally all teams to follow one pattern. It will be worth the time spent when onboarding new developers to your system.</li><li>Log as much as possible. Having the module and line number during a fatal exception or the IP/username when confronting a security breach is invaluable to resolving the issue faster and more accurately. You can still tune down the verbosity if you want to avoid some unwanted noise. Use a return of experience approach to get the perfect level for you!</li><li>Keeping consistency is everyone’s priority. Proper keys and accurate values in the JSON message make debugging easier and more efficient. Correlation Id and log levels are the obvious components to prove this point.</li><li>Log as you code. Like writing unit tests, try keeping the same discipline and log your system interactions. It is easier to do it on the spot than to add it later to avoid losing the context and edge cases of the function.</li></ul><h3>Final Notes</h3><ul><li>This story is not a push for a standard but rather an attempt to create a logically organized log format optimized for log parsing systems like newRelic or ELK, etc. It will help you generate useful dashboards, metrics, and event notifications (for example, trigger an alert if the percentage of errors exceeds 5%).</li><li>Implementing a standardized log system in your applications will cost you time and money. Debugging will cost you too, especially in edge cases where information is key. Your decision should consider both sides of the equation.</li><li>Logging is a very opinionated and sometimes divisive conversation. However, no matter which format you will use, it is always better than no logs at all.</li><li>I would recommend using asynchronous logging to avoid performance issues.</li></ul><h3>Acknowledgment</h3><p>I wanted to give a big shout-out to the tech team of <a href="https://www.eqs.com/">EQS Group</a> for building such a great concept to be shared with the world.</p><p>More from similar topics? Check out the following publication:</p><p><a href="https://medium.com/eqs-tech-blog">EQS Tech Blog</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb6d4bb01dca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/creating-a-human-and-machine-freindly-logging-format-bb6d4bb01dca">The Art of Logging</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interview with EQS Group CTO: Juan Antonio Galán Martínez]]></title>
            <link>https://medium.com/eqs-tech-blog/interview-with-eqs-group-cto-juan-antonio-gal%C3%A1n-mart%C3%ADnez-7ac39d379aba?source=rss-67271b4d72af------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ac39d379aba</guid>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Jaouher Kharrat]]></dc:creator>
            <pubDate>Tue, 28 Dec 2021 14:51:07 GMT</pubDate>
            <atom:updated>2022-01-03T08:57:03.873Z</atom:updated>
            <content:encoded><![CDATA[<p>I interviewed <a href="https://www.linkedin.com/in/juan-antonio-gal%C3%A1n-mart%C3%ADnez-38876621/">Juan Antonio Galán Martínez</a>, the CTO of <a href="https://www.eqs.com/">EQS Group</a> which is a leading international RegTech provider operating in the fields of Corporate Compliance and Investor Relations. He joined the company in October 2020. We talked about his career, his experience and challenges within EQS Group, and finally his preferred questions when doing some interviews.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rLgCSLXnzfWEIhQYjBBJXQ.jpeg" /></figure><h4><strong>Can you give us a small overview of your career, so far and how you ended up the CTO of EQS Group?</strong></h4><p>It has been quite a journey! I have always been interested in computers and programming. I had my 1st PC when I was not even 7 years old, it was a very limited 286, but it really got me into the world of PCs. I learned to program when I was around 9 years old, using QuickBasic in MS-Dos. For some reason, my uncle, who was a self-taught software engineer, left a book about QuickBasic at our home and I started using it to learn. At that time, I had no idea this was something one could do as a job, but the idea of being able to create software picked my interest. And it grew every day.</p><p>Eventually, I made the decision to study computer science and did that in Barcelona, although I dropped out in the last year for various reasons. One of them was that I got my first full-time software engineer job in a small company, in which I wrote some internal applications using PHP 4 (laughs). I had a few other jobs as a software engineer until one day I joined a company in 2009 and shortly after I got promoted all of a sudden to a leadership position. It was quite stressful but also a career-defining moment, I was leading a remotely distributed team working in a global e-commerce. That is quite normal now in 2021, but absolutely not in 2009. After that, I went on to take other leadership positions: Engineering Manager, Director of Engineering, CTO… in different locations including Canada, Munich, and Dublin.</p><p>Then, a series of coincidences took me to talk to EQS Group. I loved the team, the company, and the vision, so I accepted the job and moved to Munich for the second time in my life.</p><h4><strong>How many times have you been a CTO/Director before joining EQS Group?</strong></h4><p>I’ve been in a few senior management positions since 2010, all quite different. From Head of Engineering at early-stage startups to Director positions in scale-ups such as Westwing. But this is the first time that I lead a large engineering organization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SBi9zU2DL4CU_uAaqdWHIg.jpeg" /></figure><h4><strong>What were the defining points of your career?</strong></h4><p>The first one was my decision to leave the first company that I joined after university. I was happy but I was not really learning at a high pace. I moved to a small company and had the luck to work next to two great engineers from whom I learned a lot, which changed my views and opened my mind. The software engineering world was changing very fast and I was finally in an environment that allowed me to catch up with it.</p><p>After that, came my unexpected promotion to a leadership position, as I explained before. It was challenging, stressful, nerve-wracking, … but I managed. That probably made me who I am nowadays.</p><p>The other career-defining moment was joining Westing in its 4th year of life. There I learned a lot about how to work in a fast-paced environment. Before Westwing I was a technical guy but in there I became a more holistic leader. I see technology from a different angle, and I understand better how businesses are built and how important is to have an engineering strategy that is adapted to each stage.</p><h4><strong>You must have had some interview tasks in your career. Can you give us some of your favorite questions?</strong></h4><p>Lately, I am frequently not responsible for purely technical interviews, but rather to test what we call cultural fit. Following that pattern, my best question, hands down is “Tell me about yourself”. One of my best advantages is that I understand people very well and can quickly connect with them. To me, the best way to form an opinion is to ask what they did in life, what is important for them, etc. Just hearing them, what they highlight, what they omit, can give me a very good view of their personality and interests. It is not perfect, but it has been very precise for me</p><p>When I test technical skills, I like to deep dive into a certain topic that both I and the candidate are familiar with. I try to get beyond the candidate’s limit of knowledge to see where it is and how they react to that. Are they open-minded accepting other solutions? Are they quick in thinking when they find themselves out of their comfort zone? Do they feel comfortable challenging me if I throw at them a bad solution or idea?</p><h4><strong>Looking back to the first day you joined EQS Group, what were some of your biggest challenges leading the existing technical landscape?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESP4ePf3b3JGGx1k7Ic_0g.jpeg" /></figure><p>When I joined EQS Group, I was not asked specifically to take care of any topic in particular. The message was: “EQS Group is a very successful business, and we have a lot of ambition. But also a lot to do to get where we want to be, we need you to tell us how to get there from the technological point of view”.</p><p>In the first couple of weeks, the biggest challenge I saw or realized was the lack of engineering leadership at many levels. It was too big of a team for the number of leaders we had. We introduced the Engineering Manager role and the associated training. Luckily, we found a lot of them already in the teams, ready to take the step forward. I think we cannot move fast enough if our teams are not self-sufficient, so they can take care of everything related to their responsibilities. We also introduced roles to have individual contributor leadership, to clearly split leadership from management. That is allowing some very technically skilled engineers to adopt leadership positions, and have a much bigger impact at EQS Group, without the need to jump into management if they don’t want to. We all benefit from that.</p><blockquote>EQS Group is a solid, established business. We have very ambitious targets, for which we need new products, more features, etc. but there was no emergency. That is why I decided I needed to focus on building the team so that everybody could take their decisions accordingly.</blockquote><p>At our scale, we need an organization that is not dependent on a reduced group of people that takes decisions but rather one that can decide by itself when given the right context and expectations. I have worked a lot on that topic, and now we see strong leaders growing in the organization taking their decisions responsibly, challenging others, offering different points of view, changing their minds, etc.</p><p>We find ourselves in the situation now that most of our decisions are taken at the lowest level possible, which is the persons that are directly responsible for that matter. I am really happy with the progress we’ve made.</p><h4><strong>So your decision and time invested in the leadership program is already paying off, can you now focus more on company-level strategies?</strong></h4><p>Yes indeed. Sometimes the lowest level at which a decision can be taken is no other than myself, and I have the luxury to have the time to do that when needed. But as a CTO I also have the luxury to be just another opinion in the table most of the time and not a required decision-maker for every important decision. I make sure the right context and expectations are set before decisions are made, and then the rest is taken care of by the relevant people for every situation.</p><h4><strong>Nine months now since you joined, what are the emerging challenges?</strong></h4><p>We recently acquired our biggest European competitor in the compliance field, Business Keeper. They are a very respectable company and now that we join forces we can go way much further together. But we must first take care of the integration, which is always a complicated process. The better we do it, the further we are going to go and the sooner we’re going to do it. So far, I couldn’t be happier with the progress.</p><p>Does your heartbeat for developing exciting SaaS products? We are always looking for motivated new team members. Take a look at our vacancies: <a href="https://eqs-group.personio.de/recruiting/positions">https://eqs-group.personio.de/recruiting/positions</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ac39d379aba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/eqs-tech-blog/interview-with-eqs-group-cto-juan-antonio-gal%C3%A1n-mart%C3%ADnez-7ac39d379aba">Interview with EQS Group CTO: Juan Antonio Galán Martínez</a> was originally published in <a href="https://medium.com/eqs-tech-blog">EQS Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating to Keycloak from a 15 years Legacy system]]></title>
            <link>https://medium.com/eqs-tech-blog/migrating-to-keycloak-from-a-15-years-legacy-system-f3ef142347df?source=rss-67271b4d72af------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3ef142347df</guid>
            <dc:creator><![CDATA[Jaouher Kharrat]]></dc:creator>
            <pubDate>Wed, 26 May 2021 09:40:13 GMT</pubDate>
            <atom:updated>2021-05-26T09:40:13.650Z</atom:updated>
            <content:encoded><![CDATA[<p>Moving to a standard identity management systems can seem like a challenge if you have a microservices architecture. What if that microservice-based product was relying on authentication of a legacy system that made the dynasty of the company. This is the real challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Z1CVwreBHxzirOXPqRc0yQ.png" /></figure><h3>Challenges</h3><p>Relying on a very old legacy system for authentication came with a lot of challenges:</p><ul><li>The two systems count on two different ways to identify the session Cookies vs JWT</li><li>Custom build logic that was twisted for many years by sales team requests led to the creation of a Frankenstein that a shrinking number of developers understand and maintain.</li><li>The system was mixing authentication and Authorization by issuing the session after authentication, 2FA, and finally tenant selection.</li><li>The content of the legacy Database is the source of truth for the new microservices-based system.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3ef142347df" width="1" height="1" alt=""><hr><p><a href="https://medium.com/eqs-tech-blog/migrating-to-keycloak-from-a-15-years-legacy-system-f3ef142347df">Migrating to Keycloak from a 15 years Legacy system</a> was originally published in <a href="https://medium.com/eqs-tech-blog">EQS Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>