<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rajnish Raj</title>
    <description>The latest articles on DEV Community by Rajnish Raj (@rajnish_raj_7cd820516cd0d).</description>
    <link>https://dev.to/rajnish_raj_7cd820516cd0d</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1690202%2Fe7bd2605-9566-4869-9da0-07c41236d286.png</url>
      <title>DEV Community: Rajnish Raj</title>
      <link>https://dev.to/rajnish_raj_7cd820516cd0d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rajnish_raj_7cd820516cd0d"/>
    <language>en</language>
    <item>
      <title>Dask : Search through 2943 DSA problem using natural language</title>
      <dc:creator>Rajnish Raj</dc:creator>
      <pubDate>Sat, 26 Jul 2025 05:19:41 +0000</pubDate>
      <link>https://dev.to/rajnish_raj_7cd820516cd0d/dask-search-through-2943-dsa-problem-using-natural-language-59gi</link>
      <guid>https://dev.to/rajnish_raj_7cd820516cd0d/dask-search-through-2943-dsa-problem-using-natural-language-59gi</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/algolia-2025-07-09"&gt;Algolia MCP Server Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;I built an AI-powered search engine that search through a database of about 3,000 DSA problems using natural language queries. Used Gemini API for AI responses and Algolia JavaScript API for fast, relevant search results.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Features&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Search with a natural language query, not keywords&lt;/li&gt;
&lt;li&gt;automatic filter selection from query.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Live - &lt;a href="https://dask-omega.vercel.app/" rel="noopener noreferrer"&gt;https://dask-omega.vercel.app/&lt;/a&gt;&lt;br&gt;
Github - &lt;a href="https://github.com/Rajnish8292/dask" rel="noopener noreferrer"&gt;https://github.com/Rajnish8292/dask&lt;/a&gt;&lt;br&gt;
&lt;iframe src="https://player.vimeo.com/video/1104666226" width="710" height="399"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Utilized the Algolia MCP Server
&lt;/h2&gt;

&lt;p&gt;Algolia helps to filter search results based on facets and facetFilter and provide fast result.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;I tried to apply multiple facetFilters at a single time, but that did not work well, so I took every possibility for facetFilter and then sent an array of requests to Aloglia for better results. &lt;br&gt;
E.g&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// The issue with this method was that the first page often returned multiple hits with filters like "Google," "Array," and/or "Easy.
facetFilters = [['google', 'zomato'], ['array', 'graph'], ['easy', hard]]

// To overcome this problem, I break a single request into multiple requests
facetFilterArray = [
   [['google'], ['array'], ['easy']],
   [['google'], ['graph'], ['easy']],
   [['google'], ['array'], ['hard']],
   [['google'], ['graph'], ['hard']],
   [['Zomato'], ['array'], ['easy']],
   [['Zomato'], ['graph'], ['easy']],
   [['Zomato'], ['array'], ['hard']],
   [['Zomato'], ['graph'], ['hard']],
]

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>devchallenge</category>
      <category>algoliachallenge</category>
      <category>webdev</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
