<?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: Zayd Mulani</title>
    <description>The latest articles on DEV Community by Zayd Mulani (@zaydmulani09).</description>
    <link>https://dev.to/zaydmulani09</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%2F3939133%2Fa61f4cd3-0e64-4bac-9a1e-00ae898bf88f.png</url>
      <title>DEV Community: Zayd Mulani</title>
      <link>https://dev.to/zaydmulani09</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zaydmulani09"/>
    <language>en</language>
    <item>
      <title>I built a local-first hybrid vector database in Rust from scratch</title>
      <dc:creator>Zayd Mulani</dc:creator>
      <pubDate>Tue, 19 May 2026 01:29:22 +0000</pubDate>
      <link>https://dev.to/zaydmulani09/i-built-a-local-first-hybrid-vector-database-in-rust-from-scratch-3fd3</link>
      <guid>https://dev.to/zaydmulani09/i-built-a-local-first-hybrid-vector-database-in-rust-from-scratch-3fd3</guid>
      <description>&lt;p&gt;A few months ago I started building vecdb — a vector database that &lt;br&gt;
runs entirely on your own machine. No cloud, no API keys, no subscription.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Most vector databases make you choose — semantic search OR keyword search.&lt;br&gt;
Semantic search finds meaning but misses exact keywords. Keyword search &lt;br&gt;
finds exact matches but misses meaning.&lt;/p&gt;

&lt;p&gt;vecdb combines both in a two-stage pipeline:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;HNSW dense index retrieves candidates by meaning&lt;/li&gt;
&lt;li&gt;BM25 sparse index re-scores by keyword relevance
&lt;/li&gt;
&lt;li&gt;A fusion function combines both scores&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What it can do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Hybrid HNSW + BM25 retrieval&lt;/li&gt;
&lt;li&gt;SQL-like query language with VECTOR_SIM predicate&lt;/li&gt;
&lt;li&gt;Python and TypeScript SDKs&lt;/li&gt;
&lt;li&gt;Single binary, Docker support&lt;/li&gt;
&lt;li&gt;187 tests&lt;/li&gt;
&lt;li&gt;MIT license&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Example query
&lt;/h2&gt;

&lt;p&gt;SELECT * FROM documents&lt;br&gt;
WHERE VECTOR_SIM(vec, [0.1, 0.2, 0.3]) &amp;gt; 0.75&lt;br&gt;
AND payload-&amp;gt;&amp;gt;'region' = 'US'&lt;br&gt;
LIMIT 10;&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/zaydmulani09/vecdb" rel="noopener noreferrer"&gt;https://github.com/zaydmulani09/vecdb&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would love feedback from the community — especially on the &lt;br&gt;
architecture and what to tackle in v0.2.0.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>rust</category>
      <category>opensource</category>
      <category>database</category>
    </item>
  </channel>
</rss>
