<?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: duynguyendang</title>
    <description>The latest articles on DEV Community by duynguyendang (@duynguyendang).</description>
    <link>https://dev.to/duynguyendang</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%2F3702869%2F59433686-7076-4ff2-8484-34862b138076.png</url>
      <title>DEV Community: duynguyendang</title>
      <link>https://dev.to/duynguyendang</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/duynguyendang"/>
    <language>en</language>
    <item>
      <title>The Quest for a Native Neuro-Symbolic Database: Introducing MEB</title>
      <dc:creator>duynguyendang</dc:creator>
      <pubDate>Fri, 09 Jan 2026 16:02:34 +0000</pubDate>
      <link>https://dev.to/duynguyendang/the-quest-for-a-native-neuro-symbolic-database-introducing-meb-5ag</link>
      <guid>https://dev.to/duynguyendang/the-quest-for-a-native-neuro-symbolic-database-introducing-meb-5ag</guid>
      <description>&lt;p&gt;In the rapidly evolving landscape of AI, we are witnessing the rise of &lt;strong&gt;Graph RAG&lt;/strong&gt; and &lt;strong&gt;Neuro-Symbolic&lt;/strong&gt; systems. These architectures promise something profound: the ability to combine the cold, hard logic of knowledge graphs with the fluid, semantic intuition of vector embeddings.&lt;/p&gt;

&lt;p&gt;When we began our journey into this space, we had a clear vision of what we needed. We wanted a database that could reason like a person but scale like a machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Inspiration and the Friction
&lt;/h2&gt;

&lt;p&gt;Any discussion about neuro-symbolic databases must acknowledge &lt;strong&gt;CozoDB&lt;/strong&gt;. It is a magnificent piece of engineering—a pioneer that proved you could successfully bridge the gap between Datalog and vectors. For many, it is the gold standard.&lt;/p&gt;

&lt;p&gt;However, as a team deeply invested in the &lt;strong&gt;Go ecosystem&lt;/strong&gt;, we encountered a practical friction point: &lt;strong&gt;CGO&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;CozoDB is powerful, but its reliance on CGO and external libraries made our deployment pipelines increasingly complex. When you are targeting a wide range of environments—from ephemeral &lt;strong&gt;Cloud Run&lt;/strong&gt; instances to constrained &lt;strong&gt;IoT edge devices&lt;/strong&gt;—the "Single Binary" promise of Go becomes more than just a preference; it becomes a necessity. We wanted the simplicity of &lt;code&gt;go build&lt;/code&gt; resulting in a portable, native binary that runs everywhere without shared library headaches.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why We Built MEB: The Pure Go Philosophy
&lt;/h2&gt;

&lt;p&gt;MEB (Mangle Extension for Badger) was born from a simple question: &lt;strong&gt;Can we build a massively performant neuro-symbolic engine in Pure Go?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We believed that by carefully selecting the right building blocks, we could achieve production-grade performance without ever leaving the Go safety zone.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The Reasoning: Google Mangle
&lt;/h3&gt;

&lt;p&gt;We chose &lt;strong&gt;Google Mangle&lt;/strong&gt; for the logic layer. It brings &lt;strong&gt;Datalog&lt;/strong&gt; to Go, allowing for the kind of recursive, structured reasoning that modern knowledge graphs require. It’s elegant, declarative, and—most importantly—written in native Go.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The Storage: BadgerDB
&lt;/h3&gt;

&lt;p&gt;For the storage engine, &lt;strong&gt;BadgerDB&lt;/strong&gt; was the only choice. Its &lt;strong&gt;WiscKey&lt;/strong&gt; architecture, which separates keys from values, is a masterpiece of SSD optimization. It allowed us to manage a billion graph facts on disk while maintaining the high throughput needed for real-time applications.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The Semantics: Native Vector Search
&lt;/h3&gt;

&lt;p&gt;The "Neuro" in Neuro-Symbolic comes from our native vector layer. We implemented &lt;strong&gt;Matryoshka Representation Learning (MRL)&lt;/strong&gt; and &lt;strong&gt;Scalar Quantization (SQ8)&lt;/strong&gt; to compress -dimensional embeddings into compact -byte signatures. This allows us to perform similarity searches across millions of records with sub-millisecond latency, all within the Go runtime.&lt;/p&gt;

&lt;h2&gt;
  
  
  Massive Performance, Universal Portability
&lt;/h2&gt;

&lt;p&gt;A common misconception is that "Pure Go" means sacrificing performance. Our benchmarks tell a different story. By leveraging the latest features in &lt;strong&gt;Go 1.23&lt;/strong&gt;, such as new iterators and improved compiler optimizations, MEB delivers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sub-millisecond&lt;/strong&gt; query latency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;10M+ documents&lt;/strong&gt; indexed on a single NVMe node.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Seamless portability&lt;/strong&gt; across AMD64 and ARM64 architectures.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By avoiding CGO, we made MEB "Universal." It doesn't matter if you are deploying to an &lt;strong&gt;AWS Graviton&lt;/strong&gt; server, a &lt;strong&gt;MacBook M3&lt;/strong&gt;, or a &lt;strong&gt;Raspberry Pi&lt;/strong&gt;; the binary is the same, and the performance remains massive.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Tool for the Modern AI Stack
&lt;/h2&gt;

&lt;p&gt;MEB is an embedded database. It lives inside your application, eliminating the "database tax" of network latency and complex infrastructure management.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;For RAG:&lt;/strong&gt; Isolate knowledge contexts using our multi-tenant "Graph" support.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;For Code Intelligence:&lt;/strong&gt; Traverse complex call graphs using Datalog.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;For Edge AI:&lt;/strong&gt; Perform local reasoning on-device without a cloud connection.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;We didn't build MEB because the world lacked powerful databases. We built it because we believed that the future of Neuro-Symbolic AI should be &lt;strong&gt;accessible&lt;/strong&gt;, &lt;strong&gt;portable&lt;/strong&gt;, and &lt;strong&gt;native&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;MEB is our contribution to the Go community—a tool for those who want to build the next generation of intelligent applications without the friction of complex deployments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check out the project on GitHub:&lt;/strong&gt; &lt;a href="https://github.com/duynguyendang/meb" rel="noopener noreferrer"&gt;https://github.com/duynguyendang/meb&lt;/a&gt;****&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>rag</category>
      <category>graphdb</category>
    </item>
  </channel>
</rss>
