<?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 Dvir Cohen on Medium]]></title>
        <description><![CDATA[Stories by Dvir Cohen on Medium]]></description>
        <link>https://medium.com/@dvircohen?source=rss-6a08c691bb17------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4fWOfB4Ha3CmPw2p.jpg</url>
            <title>Stories by Dvir Cohen on Medium</title>
            <link>https://medium.com/@dvircohen?source=rss-6a08c691bb17------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:12:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dvircohen/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[Explaining OpenAI’s o1 Breakthrough: The Revolution of Test Time Compute]]></title>
            <link>https://medium.com/wix-engineering/explaining-openais-o1-breakthrough-the-revolution-of-test-time-compute-ecebe8ef9379?source=rss-6a08c691bb17------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecebe8ef9379</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Dvir Cohen]]></dc:creator>
            <pubDate>Sat, 28 Dec 2024 12:43:04 GMT</pubDate>
            <atom:updated>2025-02-20T13:22:36.848Z</atom:updated>
            <content:encoded><![CDATA[<p>OpenAI’s o3 model recently achieved a breakthrough 87.5% score on the ARC-AGI benchmark, which <a href="https://arcprize.org/blog/oai-o3-pub-breakthrough?utm_source=chatgpt.com">evaluates</a> AI&#39;s ability to solve novel reasoning tasks—an achievement that seemed impossible months ago.</p><p>The company <a href="https://openai.com/index/learning-to-reason-with-llms/">has revealed</a> that both o1 and o3 use Test Time Compute — allowing models to spend more time thinking about and refining their answers rather than committing to a single response. While OpenAI hasn’t published the technical details of its specific implementation, this approach represents a fundamental shift in how AI systems tackle complex problems.</p><p>This post explores the Test Time Compute paradigm and its various implementations. While we don’t know exactly how OpenAI has implemented this in o1 and o3, understanding the core concepts and current research in this field offers valuable insights into this transformative approach to AI reasoning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ok-RS42aL3-_W1vK" /><figcaption>The impact of compute time on OpenAI’s o1 model accuracy during training (left) and test time (right), highlighting the effectiveness of Test Time Compute. Credit: OpenAI.</figcaption></figure><h3>The New Paradigm: Think Longer, Not Bigger</h3><p>Imagine trying to write a perfect book without ever using the backspace key. Sounds challenging, right? This is essentially how traditional AI models work — they’re “committed” to their first answer. But what if, like humans, AI could take time to think, revise, and refine its responses?</p><p>This is where Test Time Compute comes in. Instead of training increasingly larger models (with their skyrocketing costs and diminishing returns), this approach lets smaller models “think longer” about tough problems. It’s like giving an AI the ability to draft, review, and revise its work — paying in computation time during the actual task rather than in training time.</p><h3>Why We Needed This Change</h3><p>The traditional approach to improving AI performance has been simple: make models bigger and train them on more data. But this strategy has hit two significant roadblocks:</p><ol><li><strong>Diminishing Returns</strong>: Training costs are skyrocketing, while performance improvements are plateauing. Each increment in model size brings smaller and smaller benefits.</li><li><strong>The One-Shot Problem</strong>: Traditional models give their best answer in one go, without the ability to refine or reconsider their responses. This limits their problem-solving capabilities, especially on complex tasks.</li></ol><h3>Current Approaches in Test Time Compute</h3><p>Modern Test Time Compute approaches include various strategies (such as Self-Refinement), but this blog post will focus on methods involving Process Reward Models (PRM). The key innovation in the PRM approach is the use of two distinct components: a generator model that produces potential solutions or steps, and a Process Reward Model (PRM) that evaluates and ranks these steps. Think of it as having one AI that generates ideas and another that acts as a critical reviewer. Here’s how different methods implement this concept:</p><h3>Majority Vote</h3><p>The simplest approach starts by generating multiple complete solutions with slight variations (using temperature sampling for diversity) and then selects the most frequent answer. While it doesn’t use a separate evaluator model, it relies on the wisdom of the crowd&#39;s principle: correct answers are more likely to appear repeatedly than incorrect ones.</p><p>For example:</p><pre>Question: What&#39;s 12 x 13?<br>Generated answers:<br>- &quot;Let me calculate: 12 x 13 = 156&quot; (appears 7 times)<br>- &quot;12 x 13 = 146&quot; (appears 2 times)<br>- &quot;The answer is 156&quot; (appears 5 times)<br>Result: 156 (most frequent answer)</pre><h3>Best-of-N with Process Reward</h3><p>This method takes evaluation to the next level by using a separate PRM to score each generated solution. The process looks like this:</p><ol><li>Generate N different complete solutions</li><li>Use the PRM to score each solution based on its reasoning quality</li><li>Either pick the highest-scoring solution or aggregate scores for similar answers</li></ol><p>The PRM doesn’t just look at the final answer but evaluates the quality of the reasoning steps, making it more sophisticated than simple majority voting.</p><h3>Beam Search with Process Reward</h3><p>This is where things get really interesting, and where researchers believe o1 may be operating. The concept hinges on leveraging “Chains of Thought” (CoTs) to guide the model in generating intermediate reasoning steps, ultimately leading to a complete solution. By exploring multiple paths of reasoning simultaneously, Beam Search enables a more structured and dynamic approach to problem-solving.</p><p>Instead of generating a complete solution in one go, Beam Search constructs solutions step by step, with each step evaluated and refined using a Process Reward Model (PRM). This iterative process ensures that the model follows the most promising reasoning paths. Here’s how it works:</p><ol><li><strong>Generate Initial Steps</strong>: The model generates N diverse first steps, representing different initial directions for solving the problem.</li><li><strong>Score Steps with PRM</strong>: Each step is scored by the PRM based on its potential to lead to a correct and logical solution.</li><li><strong>Keep Top Paths</strong>: Retain the top K highest-scoring paths (where K is the beam width), discarding less promising ones.</li><li><strong>Expand Promising Paths</strong>: For each retained path, generate M possible next steps, effectively building on the reasoning established so far.</li><li><strong>Iterate Until Completion</strong>: Repeat the process of scoring, selecting, and expanding until a complete solution is constructed.</li></ol><p>This approach takes full advantage of the “Chain of Thought” framework, ensuring that the model’s reasoning aligns with logical steps rather than guessing or diverging into unrelated paths. For instance, solving a math problem might involve decomposing it into smaller sub-problems, evaluating each, and refining the chain of reasoning with every iteration.</p><p>By structuring the problem-solving process into manageable and evaluable steps, Beam Search with PRM fosters better understanding and accuracy. It not only allows the model to identify the best steps but also mitigates errors by continuously evaluating and refining the reasoning path.</p><h3>Looking Ahead</h3><p>The success of o3 on the ARC benchmark (scoring an impressive 87.5%) demonstrates the power of this approach. A key difference between o1 and o3 is the use of reinforcement learning, which optimizes reasoning through iterative planning and a reward-based evaluation of steps. However, we don’t know the exact techniques OpenAI employed to achieve these results. It’s worth noting that this comes at a significant cost — around $3,460 per query in o3’s case. The future of Test Time Compute lies in making these methods more efficient while maintaining their effectiveness.</p><p>Test Time Compute represents a significant step forward in how AI systems approach complex problems. By combining this with reinforcement learning techniques, where o3 optimizes its reasoning through iterative planning and a reward-based evaluation of steps, the model moves beyond simple output generation to a more thoughtful, accurate problem-solving approach. It’s a reminder that sometimes the path forward isn’t about building bigger systems, but about letting our existing ones think more carefully about their answers.</p><p>The next time you hear about an AI breakthrough, remember: it might not be about how big the model is, but about how long it spent thinking about its answer.</p><h3>Further Reading</h3><p>To dive deeper into Test Time Compute and its implementations, here are some key resources:</p><ol><li><a href="https://arcprize.org/blog/oai-o3-pub-breakthrough"><strong>The ARC Prize O3 Breakthrough Analysis</strong></a> — François Chollet’s detailed analysis of o3’s performance on the ARC-AGI benchmark and its implications for AI development.</li><li><a href="https://huggingface.co/spaces/HuggingFaceH4/blogpost-scaling-test-time-compute"><strong>Scaling Test Time Compute</strong></a> — Hugging Face’s comprehensive exploration of various Test Time Compute strategies and their practical implementations.</li><li><a href="https://arxiv.org/pdf/2407.21787"><strong>Large Language Monkeys: Scaling Inference Compute with Repeated Sampling</strong></a> — Google DeepMind’s research paper on using majority voting and consensus mechanisms to improve model performance.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecebe8ef9379" width="1" height="1" alt=""><hr><p><a href="https://medium.com/wix-engineering/explaining-openais-o1-breakthrough-the-revolution-of-test-time-compute-ecebe8ef9379">Explaining OpenAI’s o1 Breakthrough: The Revolution of Test Time Compute</a> was originally published in <a href="https://medium.com/wix-engineering">Wix Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling the Future of RAG: The papers you don’t want to miss]]></title>
            <link>https://medium.com/wix-engineering/unveiling-the-future-of-knowledge-representation-the-papers-you-dont-want-to-miss-0a1937226b4c?source=rss-6a08c691bb17------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a1937226b4c</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[gpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Dvir Cohen]]></dc:creator>
            <pubDate>Sun, 04 Aug 2024 07:22:25 GMT</pubDate>
            <atom:updated>2024-08-04T13:20:50.756Z</atom:updated>
            <content:encoded><![CDATA[<p>In our rapidly evolving digital landscape, the way we enhance Retrieval-Augmented Generation (RAG) is crucial for advancing AI systems and large language models (LLMs). Join us as we explore cutting-edge methods shaping the future of RAG, featuring groundbreaking research from institutions like Carnegie Mellon, Stanford, and Microsoft Research. Prepare for a captivating journey into the techniques driving the next generation of intelligent information processing.</p><h3>The Quest for Optimal Knowledge Representation</h3><p>At the heart of AI advancement is a crucial challenge: “How can we optimally represent knowledge for LLMs?” This drives researchers to develop innovative methods, with many focusing on enhancing RAG.</p><p>RAG blends retrieval-based and generation-based models, enabling AI to fetch relevant data and generate coherent responses. The papers we’ll discuss showcase different improvements and usages of RAG, each pushing the boundaries of AI precision, efficiency, and versatility.</p><h4>The papers that I’m going to cover are:</h4><ol><li><a href="https://aclanthology.org/2023.acl-long.99.pdf">HyDE: Precise Zero-Shot Dense Retrieval</a> (2022)</li><li><a href="https://arxiv.org/abs/2401.18059">RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval</a> (2024)</li><li><a href="https://github.com/FullStackRetrieval-com/RetrievalTutorials/blob/main/tutorials/LevelsOfTextSplitting/5_Levels_Of_Text_Splitting.ipynb">Semantic Chunking</a> (2024)</li><li><a href="https://arxiv.org/abs/2312.06648">Propositions: Granular Knowledge Retrieval</a> (2024)</li><li><a href="https://arxiv.org/abs/2406.13372">Threads: Organizing How-To Knowledge</a> (2024)</li></ol><h3>HyDE: Precise Zero-Shot Dense Retrieval</h3><p><a href="https://aclanthology.org/2023.acl-long.99.pdf">HyDE, developed at Carnegie Mellon</a>, is an innovative method for zero-shot dense retrieval that transforms queries into hypothetical documents. This approach aligns queries and documents in the same embedding space, improving retrieval accuracy without the need for relevance labels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XgN6w6cYpzQp1e5G" /><figcaption>Image taken from <a href="https://aclanthology.org/2023.acl-long.99.pdf">the original paper</a></figcaption></figure><h4>How HyDE Works</h4><ol><li><strong>Generating Hypothetical Documents:</strong> HyDE uses an instruction-following language model like InstructGPT to generate a document that answers the query. This hypothetical document captures the relevance patterns of real documents, even if it contains some inaccuracies.</li><li><strong>Encoding and Retrieval:</strong> The generated document is encoded into an embedding vector. This vector is then used to retrieve real documents with similar embeddings, ensuring both queries and documents are in the same space.</li></ol><h4>Benefits and Applications</h4><ul><li><strong>Unified Embedding Space:</strong> By converting queries into documents, HyDE ensures that both are represented in the same space, enhancing retrieval accuracy.</li><li><strong>Unsupervised Learning:</strong> HyDE operates without labeled data, using out-of-the-box models without fine-tuning.</li><li><strong>Relevance without Labels:</strong> HyDE achieves high retrieval performance without the need for relevance labels, making it effective in zero-shot settings.</li><li><strong>Versatility Across Tasks and Languages:</strong> HyDE performs well in various tasks and languages, including web search and question answering, in languages like Swahili, Korean, Japanese, and Bengali.</li><li><strong>Improved Retrieval Accuracy:</strong> HyDE outperforms other unsupervised dense retrievers and matches the performance of fine-tuned models.</li></ul><h3>RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval</h3><p>Stanford’s RAPTOR, introduced in the 2024 paper “<a href="https://arxiv.org/abs/2401.18059">RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval</a>,” represents a leap forward in tree-organized retrieval. This method involves splitting text into chunks, creating embeddings for each chunk, and running clustering algorithms to group similar texts. The process is recursive, with clusters being re-embedded and re-clustered, resulting in a hierarchical structure that allows for more nuanced and contextually rich retrieval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cpC1XaqdF5bKZVmT" /><figcaption>Image taken from <a href="https://arxiv.org/abs/2401.18059">the original paper</a></figcaption></figure><h4>How RAPTOR Works</h4><p>RAPTOR begins by dividing a document into smaller chunks, which are then embedded. These embeddings are clustered based on their similarity, forming groups of related chunks. Each cluster is treated as a new chunk, and the embedding and clustering process is repeated, creating a tree-like structure. This hierarchical organization enables the system to retrieve information at various levels of granularity, from broad topics to specific details.</p><h4>Benefits and Applications</h4><p>RAPTOR’s hierarchical retrieval system is particularly useful for handling large, complex documents such as research papers, technical manuals, and legal texts. By allowing users to navigate through different levels of detail, RAPTOR facilitates a more intuitive and efficient information retrieval experience, enhancing the usability of extensive knowledge bases.</p><h3>Semantic Chunking: Three Methods</h3><p>Semantic chunking is another crucial technique for dividing text into meaningful segments. Those methods are detailed in the amazing blog post “<a href="https://github.com/FullStackRetrieval-com/RetrievalTutorials/blob/main/tutorials/LevelsOfTextSplitting/5_Levels_Of_Text_Splitting.ipynb">5 Levels of Text Splitting</a>” and involves three distinct approaches for creating semantically coherent chunks.</p><h4>Method 1: Breakpoint Detection</h4><p>The first method involves finding breakpoints between sequential sentences based on embedding differences. Each sentence or paragraph is embedded, and the differences between consecutive embeddings are measured. If the difference exceeds a certain threshold, a new chunk is started. This method ensures that each chunk represents a distinct segment of the text, capturing meaningful transitions between ideas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/0*Vr84B1g_DuexlXG7" /><figcaption>Image from <a href="https://github.com/FullStackRetrieval-com/RetrievalTutorials/blob/main/tutorials/LevelsOfTextSplitting/5_Levels_Of_Text_Splitting.ipynb">the blog post</a></figcaption></figure><h4>Method 2: Hierarchical Clustering with Positional Reward</h4><p>The second method uses hierarchical clustering with positional rewards to group closely related text. Sentences or paragraphs are embedded, and a hierarchical clustering algorithm is applied, incorporating positional information to cluster text that is not only similar in content but also close in proximity within the document. This approach helps maintain the contextual flow of the text, ensuring that related information is grouped together.</p><h4>Method 3: Using LLMs for Fact Extraction</h4><p>The third method employs LLMs to extract and cluster facts. The LLM identifies key facts within the text (Using Propositions which we will discuss in the next section), which are then clustered based on their semantic similarity. This method leverages the advanced capabilities of LLMs to understand and organize complex information, providing a flexible and dynamic approach to chunking.</p><h3>Propositions: Granular Knowledge Retrieval</h3><p>Carnegie Mellon’s 2023 paper, “<a href="https://arxiv.org/abs/2312.06648">Dense X Retrieval: What Retrieval Granularity Should We Use?</a>” offers a granular approach to knowledge retrieval through propositions. Propositions are minimal, self-contained units of meaning that, collectively, capture the full semantics of a text. This method ensures that each proposition is interpretable out of context, facilitating more precise and targeted information retrieval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dY_kZ7AI9AfbssQm" /><figcaption>Image taken from <a href="https://arxiv.org/abs/2312.06648">the original paper</a></figcaption></figure><h4>How Propositions Work</h4><p>Propositions decompose the content into clear and simple statements, ensuring they are interpretable out of context. This involves splitting compound sentences into simple sentences while maintaining the original phrasing, separating descriptive information about named entities into distinct propositions, and decontextualizing propositions by adding necessary modifiers and replacing pronouns with full names. The result is a list of concise, self-contained statements that capture the essence of the text.</p><h4>Benefits and Applications</h4><p>The proposition-based approach is ideal for applications requiring detailed and accurate information retrieval, such as legal document analysis, academic research, and knowledge management systems. By breaking down complex information into simple, interpretable units, propositions enable more effective querying and retrieval, enhancing the overall usability of knowledge repositories.</p><h3>Thread: Organizing How-To Knowledge</h3><p>Microsoft Research’s Threads, introduced in the 2024 paper “<a href="https://arxiv.org/abs/2406.13372">Thread: A Logic-Based Data Organization Paradigm for How-To Question Answering with Retrieval Augmented Generation</a>,” presents a logic-based data organization paradigm for how-to question answering. Instead of using chunks or propositions, Threads utilize complex entities called Logical Units (LUs) that connect to other LUs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JUo40x5TBcq23Qxs-ML7vQ.png" /><figcaption>Image taken from <a href="https://arxiv.org/abs/2406.13372">the original paper</a></figcaption></figure><h4>How Threads Work</h4><p>Each LU comprises components such as prerequisites, headers, bodies, linkers, and metadata. The prerequisite provides necessary context or filters, the header summarizes the LU or describes its intention, the body contains detailed information and actions, the linker acts as a bridge to generate new queries for subsequent retrieval rounds, and the metadata includes source information like document title, ID, and date.</p><h4>LU Example</h4><ol><li><strong>Prerequisite:</strong> Ensure you have a large pot and water.</li><li><strong>Header:</strong> Step 1: Boil the Water.</li><li><strong>Body:</strong> Fill a large pot with water, add a pinch of salt, and bring it to a boil.</li><li><strong>Linker:</strong> After the water boils, add the pasta.</li><li><strong>Meta Data:</strong> Source: ‘Cooking Basics’, Published: 2023–07–16.</li></ol><h4>Different LU Types</h4><ol><li><strong>Step:</strong> Provide detailed, sequential instructions for completing a particular task.</li><li><strong>Terminology:</strong> Define specific terms or concepts used within the article.</li><li><strong>FAQ:</strong> Address frequently asked questions and provide concise answers related to the topic.</li></ol><h4>Benefits and Applications</h4><p>The LU-based approach of Threads is particularly effective for how-to guides, instructional content, and procedural documentation. By organizing information into logical units that connect seamlessly, Threads facilitate a coherent and structured retrieval process, enabling users to follow detailed instructions and access relevant information efficiently.</p><h3>Comparing the Different Methods</h3><p>Luckily for us, the authors of the Threads paper provided a comprehensive comparison of many of the methods we’ve discussed, revealing some fascinating findings. According to their research, the best method is Threads, which isn’t surprising given it’s their innovation. However, their results also highlight other significant insights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XFxfXKw_xz4wQi7Va-c_Gw.png" /><figcaption>Image taken from <a href="https://arxiv.org/abs/2406.13372">the original paper</a></figcaption></figure><p>For instance, semantic chunking (method 1) significantly outperformed using the entire article as a single chunk. This demonstrates the effectiveness of breaking down text into more manageable and meaningful segments. Additionally, while propositions offer a granular approach to information retrieval, Threads excelled in organizing and answering how-to questions with higher accuracy and coherence. These comparisons underscore the importance of choosing the right method based on the specific application and desired outcomes.</p><h3>Embracing the Future of Knowledge Representation</h3><p>The landscape of knowledge representation is rapidly evolving, driven by groundbreaking research and innovative methodologies. From HyDE’s precise retrieval techniques to RAPTOR’s recursive processing, each method contributes to a more sophisticated and capable AI ecosystem. As we continue to explore and refine these techniques, we move closer to a future where knowledge is seamlessly integrated, effortlessly accessible, and profoundly impactful.</p><p>Hoped you enjoyed this review!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a1937226b4c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/wix-engineering/unveiling-the-future-of-knowledge-representation-the-papers-you-dont-want-to-miss-0a1937226b4c">Unveiling the Future of RAG: The papers you don’t want to miss</a> was originally published in <a href="https://medium.com/wix-engineering">Wix Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Anxiety to Confidence: How AI Can Build Confidence in Job Seekers]]></title>
            <link>https://medium.com/@dvircohen/from-anxiety-to-confidence-how-ai-can-build-confidence-in-job-seekers-90d9d76e7e8b?source=rss-6a08c691bb17------2</link>
            <guid isPermaLink="false">https://medium.com/p/90d9d76e7e8b</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[free-tools]]></category>
            <category><![CDATA[job-interview]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Dvir Cohen]]></dc:creator>
            <pubDate>Mon, 11 Mar 2024 11:28:04 GMT</pubDate>
            <atom:updated>2024-03-11T11:53:55.922Z</atom:updated>
            <content:encoded><![CDATA[<p>As a passionate advocate for innovation and a firm believer in the transformative power of technology, I embarked on a personal mission to address one of the most daunting aspects of job seeking: the interview process. My project, utilizing Large Language Models (LLMs), stands as a testament to the potential of AI in making the preparation for job interviews more accessible, interactive, and effective. This article will guide you through the journey of my project, from its conception to its realization, and how it’s paving the way for a new era of interview preparation, with a strong emphasis on maintaining user privacy.</p><figure><img alt="A screenshot of the LLM Interviewer in action." src="https://cdn-images-1.medium.com/max/1024/1*U62NsYMTni9_lnixWRL2GA.png" /><figcaption>A screenshot of the system in action.</figcaption></figure><h3>Introduction</h3><p>Understanding the anxiety and stress associated with job interviews, I developed an open-source, web-based interview simulation platform leveraging the capabilities of LLMs. My vision was to create a tool that not only helps job-seekers prepare for interviews but also demystifies the process, making it less intimidating. Integrating technologies like Streamlit for the UI, OpenAI’s Whisper for voice-to-text conversion, and Mixtral as the LLM backend, my platform offers a realistic and interactive environment for honing interview skills. Importantly, recognizing the sensitivity of the data involved, I ensured that the platform adheres to strict privacy standards, never saving any CVs or conversation data.</p><p><strong>The project can be found here: </strong><a href="http://interview.dvircohen.com/"><strong>http://interview.dvircohen.com/</strong></a></p><p>For those interested in exploring or contributing to this project, the GitHub repository can be found at <a href="https://github.com/dvircohen/LLM-interviewer">https://github.com/dvircohen/LLM-interviewer</a>.</p><h3>How It Works</h3><h4>Step 1: CV Upload and Parsing</h4><p>The journey begins when a user uploads their CV to the platform. The system then parses this document, extracting the text to understand the candidate’s background, skills, and experiences. This initial step ensures that the simulation is tailored to the specific profile of the job-seeker. To protect user privacy, this information is not stored or saved beyond the duration of the session.</p><h4>Step 2: Position Description Inclusion</h4><p>Next, users have the option to add a job position description, which can be copied from a job listing platform like LinkedIn. This addition enables the system to tailor the interview questions even further, aligning them with the requirements and expectations of the prospective role.</p><h4>Step 3: Interactive Interview Simulation</h4><p>The core of this project lies in its interactive interview simulation. The system uses the text from the CV and the position description to generate a prompt for Mixtral, a powerful LLM. This prompt instructs Mixtral to act as a job interviewer, basing its questions on the provided documents while maintaining professionalism and relevance.</p><p>Through a Streamlit-based UI, users can engage with the simulated interviewer either by typing responses or using their voice, Using OpenAI’s Whisper for translating spoken words into text. This flexibility enhances the realism of the simulation, making the experience as close to an actual interview as possible.</p><h4>Step 4: Real-time Feedback</h4><p>An essential feature of the platform is the real-time feedback provided after each user interaction. Another LLM, “Feedbacker,” assesses the conversation and delivers concise feedback on the user’s responses, identifying strengths and suggesting areas for improvement. In keeping with our commitment to privacy, this feedback is generated in real-time and not stored post-conversation.</p><h3>Impact and Benefits</h3><p>The impact of this project is profound, offering several benefits to job-seekers:</p><ul><li>Stress Reduction: By simulating the interview process, users become more accustomed to the format and types of questions asked, reducing anxiety and stress.</li><li>Skill Enhancement: The feedback provided by “Feedbacker” helps users understand their weaknesses and strengths, offering actionable advice to improve their responses.</li><li>Accessibility: Being open-source and web-based, the platform is accessible to a wide audience, democratizing interview preparation.</li><li>Privacy Protection: The commitment to not storing any personal information or conversation content reassures users about the confidentiality and security of their data.</li><li>Adaptability: The system’s ability to process both text and voice responses makes it a versatile tool for users with different preferences.</li></ul><h3>Conclusion</h3><p>This project marks a significant milestone in my journey to leverage AI for career development and personal growth. It exemplifies how innovative applications of technology can address real-world challenges, providing job-seekers with an invaluable tool for mastering the art of the job interview, all while placing a high priority on user privacy. As this technology continues to evolve, I look forward to further advancements that will redefine the landscape of job interview preparation.</p><h3>Use it here:</h3><p><a href="http://interview.dvircohen.com/">http://interview.dvircohen.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90d9d76e7e8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I used machine learning to predict when will my new-born baby poop]]></title>
            <link>https://medium.com/@dvircohen/how-i-used-machine-learning-to-predict-when-will-my-new-born-baby-poop-e72a1f6dd922?source=rss-6a08c691bb17------2</link>
            <guid isPermaLink="false">https://medium.com/p/e72a1f6dd922</guid>
            <category><![CDATA[lstm]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[personal-project]]></category>
            <category><![CDATA[baby]]></category>
            <dc:creator><![CDATA[Dvir Cohen]]></dc:creator>
            <pubDate>Mon, 27 Jan 2020 07:11:07 GMT</pubDate>
            <atom:updated>2020-01-27T14:35:54.729Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I used machine learning to predict when to change my baby girl’s diaper</h3><p>So, about a year ago, my first baby girl was born. Because I love data, and my wife loves knowledge, we decided to use an app called “<a href="https://play.google.com/store/apps/details?id=com.wachanga.babycare&amp;hl=en_US">BabyCare</a>” to track pretty much everything our new-born baby girl does. Sleeping, feeding, pooping, everything. Obsessive, I know.</p><p>After nine months, we decided that enough is enough and stopped using the app, but that is only the beginning of the story. As a data scientist, I am fascinated by data, and I wondered what can I extract from all the logs of the app. I decided to treat this as a small data science project, and thus begins the story of how I taught a simple neural network to predict whether my little treasure is going to require a diaper change.</p><p><strong>This post is meant for people with no prior knowledge in data science and machine learning. If you don’t care about the story and just want to play around with the data yourself, </strong><a href="https://www.kaggle.com/dvircohen/baby-logs"><strong>you can find it here</strong></a><strong>.</strong></p><p>First things first, I needed the data. The BabyCare app doesn’t provide any kind of API or method to extract our data, and so I had to contact <em>Wachanga</em> — the developer behind the application. The wonderful guys at Wachanga sent me the JSON file of my baby’s hard-collected data. Lesson learned: if you need cool data — sometimes, all you need to do is ask!</p><p>So now I have the JSON file, but there was a small problem: us data scientists really prefer our data to come in a tabular form. Therefore, before even approaching the challenge at hand, I had to write a simple python script to transform the data to CSV. I managed to do so by using <a href="https://pandas.pydata.org/">Pandas</a>, an open-source python library for data manipulation and structuring.</p><p>I then used an excellent visualization software called Tableau to work with the newly parsed data. I imported the table and played around a bit with it to see what I can find. It took me only a few minutes to create this beautiful dashboard:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R4RZJUI1YNaEiBbjJXffVg.png" /></figure><p>So there’s a lot to unpack here. First of all, the data seems to make sense, our baby mostly sleeps at night (thank god), and she breastfeeds from both sides pretty much equally. Also, the diapers, on the lower-left corner, is an issue, with an average of 7.38 diapers a day. This dashboard was exciting to look at, and I even showed it to our doctor!</p><p>I wanted to find a usage for this data, something that is both cool and useful. After some thinking, I chose to try to predict when will my baby poop, or in other words — “Given past information about activities such as feeding and sleeping, can I predict when will I need to change a diaper?”</p><p>Because this data is temporal, meaning it is a sequence of events in time, I decided to use a type of neural network called LSTM. I am not going to explain here how does the model works (mostly because you can find a great explanation <a href="https://medium.com/@purnasaigudikandula/recurrent-neural-networks-and-lstm-explained-7f51c7f6bbb9">here</a>), but basically, all you need to know is that you give the model a sequence of events (or in our case, multiple sequences, one for feeding, another for sleeping, etc.) and the model predicts what will be the next event. The event that I was interested in was diaper change, so the model should predict whether a diaper will need changing in the next hour, or not.</p><p>First, I had to transfer the data to something an LSTM can read. I change the dataset to describe the data hourly. For example, how many minutes of sleeping happened in each hour or how many diapers were changed. The final table looked like that:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/74d6c957e0fe7407989fd79e0a88d917/href">https://medium.com/media/74d6c957e0fe7407989fd79e0a88d917/href</a></iframe><p>I used those sequences as an input, and gave the model 24 hours of data, meaning the model was provided with sequences of length 24. The model’s task was to predict if there is going to be 1 or 0 in the “diaper” column in the next hour.<br>To test my new poop prediction model, I have hidden from the model the last month of data. The model never saw the sequences of the last month, and so we can use them to see how good the model is.<br>After a few minutes of training, the model got learned a lot and eventually, after about 15 minutes, got to an accuracy result 0.937. The model was right 93% of the time when predicting the last month! Because the data is imbalanced, meaning there are a lot more times when a changing is not needed, than times when it is, this should not be the only evaluation method we look at. So I also used an evaluation called a “precision score”. A precision score checks how many times the diaper was actually dirty, out of the time that the model said it is. At the beginning of the training, the precision score was about 0.43, meaning that most of the time, 57%, the model said a change is needed, it was wrong. After 15 minutes of training, the precision score got all the way up to 0.91, so only 9% of the time, the change was not needed! (For those of you who familiar with other evaluation methods, the recall was 0.87, and the f1 score was 0.88)</p><p>In conclusion, using a carefully collected data, I was able to predict with 93% accuracy, whether a diaper is going to need changing is the next hour. The small project was a lot of fun, and I highly encourage anyone to find cool usage for some data we have. Data is everywhere, and today it is easier than ever to put it into good use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e72a1f6dd922" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>