<?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: Luis M</title>
    <description>The latest articles on DEV Community by Luis M (@synapcores).</description>
    <link>https://dev.to/synapcores</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2755752%2Fdd461b87-63a4-40f2-ba19-59333b8f06e0.jpg</url>
      <title>DEV Community: Luis M</title>
      <link>https://dev.to/synapcores</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/synapcores"/>
    <language>en</language>
    <item>
      <title>Your Fraud Model Missed a 5-Account Ring. One Graph Query Found It.</title>
      <dc:creator>Luis M</dc:creator>
      <pubDate>Tue, 24 Nov 2026 15:03:01 +0000</pubDate>
      <link>https://dev.to/synapcores/your-fraud-model-missed-a-5-account-ring-one-graph-query-found-it-6dc</link>
      <guid>https://dev.to/synapcores/your-fraud-model-missed-a-5-account-ring-one-graph-query-found-it-6dc</guid>
      <description>&lt;p&gt;Fraud models have a blind spot built into how they work: they score &lt;strong&gt;one row at a time&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That's exactly right for the lone fraudster, whose payments are huge, at 3am, from abroad. It does nothing against a &lt;strong&gt;fraud ring&lt;/strong&gt;: five accounts that each spend like a normal customer but share one phone and a couple of stolen card numbers. The ring isn't in any row. It's in the &lt;strong&gt;connections between rows&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here's a worked example with real numbers. I re-ran every query below this morning on a fresh install, and the data, model and queries are all in a recipe you can run yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup: 40 ordinary accounts, one lone fraudster, one hidden ring
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;123 transactions.&lt;/strong&gt; Every account makes three ordinary payments ($20–$199, daytime, domestic).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One lone fraudster.&lt;/strong&gt; &lt;code&gt;ACC-33&lt;/code&gt; also makes three large 3am cross-border payments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One ring.&lt;/strong&gt; &lt;code&gt;ACC-11&lt;/code&gt; to &lt;code&gt;ACC-15&lt;/code&gt; behave exactly like everyone else, but they share two devices and two card numbers in a chain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One confirmed chargeback&lt;/strong&gt;, on &lt;code&gt;ACC-13&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No fraud labels anywhere.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: the machine-learning view
&lt;/h2&gt;

&lt;p&gt;Train an isolation forest (unsupervised, so no labels needed) on amount, hour and a cross-border flag:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="no"&gt;EXPERIMENT&lt;/span&gt; &lt;span class="n"&gt;recipe_ring_exp&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt;
  &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hour_of_day&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cross_border&lt;/span&gt;
  &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;recipe_ring_tx&lt;/span&gt;
&lt;span class="k"&gt;WITH&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;task_type&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'anomaly_detection'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;algorithms&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'isolation_forest'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;max_trials&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;random_seed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;42&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="no"&gt;DEPLOY&lt;/span&gt; &lt;span class="no"&gt;MODEL&lt;/span&gt; &lt;span class="n"&gt;recipe_ring_model&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="no"&gt;EXPERIMENT&lt;/span&gt; &lt;span class="n"&gt;recipe_ring_exp&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then score every transaction, right inside a &lt;code&gt;SELECT&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;account_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hour_of_day&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cross_border&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="no"&gt;ANOMALY_SCORE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'recipe_ring_model'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hour_of_day&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cross_border&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;score&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;recipe_ring_tx&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;score&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;
&lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;account_id&lt;/th&gt;
&lt;th&gt;amount&lt;/th&gt;
&lt;th&gt;hour&lt;/th&gt;
&lt;th&gt;cross_border&lt;/th&gt;
&lt;th&gt;score&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ACC-33&lt;/td&gt;
&lt;td&gt;2840&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.817&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ACC-33&lt;/td&gt;
&lt;td&gt;3120&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.817&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ACC-33&lt;/td&gt;
&lt;td&gt;2975&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.806&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ACC-36&lt;/td&gt;
&lt;td&gt;198&lt;/td&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0.527&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ACC-39&lt;/td&gt;
&lt;td&gt;23&lt;/td&gt;
&lt;td&gt;17&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0.518&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;…&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The model nails the lone fraudster. Now ask it about the ring:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;account_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hour_of_day&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="no"&gt;ANOMALY_SCORE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'recipe_ring_model'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hour_of_day&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cross_border&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;score&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;recipe_ring_tx&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;account_id&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'ACC-11'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'ACC-12'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'ACC-13'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'ACC-14'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'ACC-15'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;score&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All 15 ring payments score between &lt;strong&gt;0.445 and 0.508&lt;/strong&gt;, the same band as honest customers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The model isn't wrong.&lt;/strong&gt; Each of those payments &lt;em&gt;is&lt;/em&gt; ordinary. A ring isn't a property of any single transaction, so a per-transaction model can't see it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: the graph view
&lt;/h2&gt;

&lt;p&gt;Model the same accounts as a graph: accounts, devices and cards as nodes, &lt;code&gt;USES&lt;/code&gt; and &lt;code&gt;PAYS_WITH&lt;/code&gt; as relationships. The ring chains together: &lt;code&gt;ACC-11&lt;/code&gt; and &lt;code&gt;ACC-12&lt;/code&gt; share a phone, &lt;code&gt;ACC-12&lt;/code&gt; and &lt;code&gt;ACC-13&lt;/code&gt; share a card, and so on. As a control, two honest accounts (&lt;code&gt;ACC-21&lt;/code&gt;, &lt;code&gt;ACC-22&lt;/code&gt;) share a household tablet.&lt;/p&gt;

&lt;p&gt;Start from the one thing you know for sure, the chargeback on &lt;code&gt;ACC-13&lt;/code&gt;, and walk outward 2 to 4 hops:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cypher"&gt;&lt;code&gt;&lt;span class="k"&gt;MATCH&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nc"&gt;Account&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'ACC-13'&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nc"&gt;Account&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'ACC-13'&lt;/span&gt;
&lt;span class="k"&gt;RETURN&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;linked_account&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="nf"&gt;nodes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;via&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="nb"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;linked_account&lt;/th&gt;
&lt;th&gt;via&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ACC-14&lt;/td&gt;
&lt;td&gt;ACC-13 → DEV-778 → ACC-14&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ACC-12&lt;/td&gt;
&lt;td&gt;ACC-13 → CARD-4242 → ACC-12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ACC-15&lt;/td&gt;
&lt;td&gt;ACC-13 → DEV-778 → ACC-14 → CARD-9001 → ACC-15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ACC-11&lt;/td&gt;
&lt;td&gt;ACC-13 → CARD-4242 → ACC-12 → DEV-777 → ACC-11&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;One seed, the whole ring,&lt;/strong&gt; each with the exact path that links it. The household pair isn't returned: sharing a device isn't fraud, but being connected to a chargeback is worth a look.&lt;/p&gt;

&lt;p&gt;In plain SQL this would be a recursive CTE over a union of account–device and account–card link tables. Here it's one pattern.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: one review queue
&lt;/h2&gt;

&lt;p&gt;Neither signal is enough alone, so merge them. Save the graph hits in a table (&lt;code&gt;recipe_ring_members&lt;/code&gt;), then keep every account the model &lt;strong&gt;or&lt;/strong&gt; the graph flagged:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;account_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;ROUND&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;max_anomaly&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;max_anomaly&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;linked_via&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;account_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;MAX&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;score&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;max_anomaly&lt;/span&gt;
  &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;account_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
           &lt;span class="no"&gt;ANOMALY_SCORE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'recipe_ring_model'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hour_of_day&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cross_border&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;score&lt;/span&gt;
    &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;recipe_ring_tx&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;
  &lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;account_id&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;
&lt;span class="k"&gt;LEFT&lt;/span&gt; &lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;recipe_ring_members&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;account_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;account_id&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;max_anomaly&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mf"&gt;0.7&lt;/span&gt; &lt;span class="k"&gt;OR&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;account_id&lt;/span&gt; &lt;span class="k"&gt;IS&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;max_anomaly&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;account_id&lt;/th&gt;
&lt;th&gt;max_anomaly&lt;/th&gt;
&lt;th&gt;linked_via&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ACC-33&lt;/td&gt;
&lt;td&gt;0.82&lt;/td&gt;
&lt;td&gt;&lt;em&gt;(caught by the model)&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ACC-15&lt;/td&gt;
&lt;td&gt;0.51&lt;/td&gt;
&lt;td&gt;DEV-778 &amp;gt; CARD-9001&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ACC-12&lt;/td&gt;
&lt;td&gt;0.51&lt;/td&gt;
&lt;td&gt;CARD-4242&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ACC-13&lt;/td&gt;
&lt;td&gt;0.49&lt;/td&gt;
&lt;td&gt;chargeback&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ACC-14&lt;/td&gt;
&lt;td&gt;0.48&lt;/td&gt;
&lt;td&gt;DEV-778&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ACC-11&lt;/td&gt;
&lt;td&gt;0.48&lt;/td&gt;
&lt;td&gt;CARD-4242 &amp;gt; DEV-777&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Six accounts to review instead of 40, each with a reason. Five of the six would never have crossed a 0.7 threshold. &lt;strong&gt;The model found one fraudster; the graph found five.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ML vs graph, side by side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Anomaly model&lt;/th&gt;
&lt;th&gt;Graph traversal&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Catches&lt;/td&gt;
&lt;td&gt;Unusual behaviour: amount, time, location&lt;/td&gt;
&lt;td&gt;Collusion: shared devices, cards, addresses&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Doesn't see&lt;/td&gt;
&lt;td&gt;Rings that look normal row by row&lt;/td&gt;
&lt;td&gt;Fraudsters with no links to known fraud&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Needs labels?&lt;/td&gt;
&lt;td&gt;No (isolation forest)&lt;/td&gt;
&lt;td&gt;No (one seed)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Output&lt;/td&gt;
&lt;td&gt;A score per transaction&lt;/td&gt;
&lt;td&gt;The accounts and the path linking them&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Practical notes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Seed traversals from confirmed fraud.&lt;/strong&gt; Known cases plus shared-infrastructure links surface new candidates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Send graph hits to review, not to auto-block.&lt;/strong&gt; Families share devices.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Calibrate thresholds on your own data.&lt;/strong&gt; 0.7 fits this dataset; check your own score distribution first.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Run it yourself
&lt;/h2&gt;

&lt;p&gt;Most fraud stacks put these two signals in separate systems: a feature pipeline and model server for the ML, a graph database for the links, and a sync job between them. I ran all of the above in one engine, &lt;a href="https://synapcores.com/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=fraud-ring-ml-vs-graph" rel="noopener noreferrer"&gt;SynapCores&lt;/a&gt;, against the same tables: &lt;code&gt;ANOMALY_SCORE()&lt;/code&gt; in SQL and the traversal in Cypher. No AI model or labels are needed for this demo.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSL https://get.synapcores.com &lt;span class="o"&gt;|&lt;/span&gt; sh
&lt;span class="c"&gt;# or&lt;/span&gt;
docker pull synapcores/community:v2.5.1-ce
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's the free, self-hosted Community Edition. The full dataset, graph setup and cleanup are in the recipe: &lt;a href="https://synapcores.com/recipes/anomaly-detection/012_fraud_rings_ml_misses?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=fraud-ring-ml-vs-graph" rel="noopener noreferrer"&gt;Fraud rings your ML model misses&lt;/a&gt; (about 12 minutes). There's also a browser &lt;a href="https://synapcores.com/playground?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=fraud-ring-ml-vs-graph" rel="noopener noreferrer"&gt;Playground&lt;/a&gt; if you'd rather not install anything yet.&lt;/p&gt;

&lt;p&gt;Here's the 3-minute walkthrough:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/papkZbIGfMU" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The original write-up is on &lt;a href="https://synapcores.com/blog/fraud-detection-machine-learning-vs-graph?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=fraud-ring-ml-vs-graph" rel="noopener noreferrer"&gt;synapcores.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How does your team catch collusion today: graph queries, rules on shared identifiers, or a second model?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>datascience</category>
      <category>sql</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Ollama Runs Your Model. Who's Running Everything Else?</title>
      <dc:creator>Luis M</dc:creator>
      <pubDate>Tue, 17 Nov 2026 15:03:56 +0000</pubDate>
      <link>https://dev.to/synapcores/ollama-runs-your-model-whos-running-everything-else-2ola</link>
      <guid>https://dev.to/synapcores/ollama-runs-your-model-whos-running-everything-else-2ola</guid>
      <description>&lt;p&gt;Everyone has the same week with Ollama.&lt;/p&gt;

&lt;p&gt;On Monday you run &lt;code&gt;ollama run llama3.2&lt;/code&gt; and it feels like magic: a real model on your own hardware, no API bill, nothing leaving the machine. By Wednesday you want the model to answer questions about your own documents. By Friday your "local AI" is five pieces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ollama, for inference.&lt;/li&gt;
&lt;li&gt;A vector database, because Ollama can create an embedding but has nowhere to keep it.&lt;/li&gt;
&lt;li&gt;Postgres or SQLite, for the actual data.&lt;/li&gt;
&lt;li&gt;LangChain or LlamaIndex, to glue the three together.&lt;/li&gt;
&lt;li&gt;An nginx config, because your teammate wants to use it too.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of that is Ollama's fault. Ollama set out to run models well, and it does. But if you've ever sat in that Friday mess wondering why "local AI" needs so much plumbing, this post is for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where a model runner stops
&lt;/h2&gt;

&lt;p&gt;These come straight from Ollama's own docs, and each one is a reasonable design choice for a model runner. Each one is also a job that falls to you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. It doesn't keep anything.&lt;/strong&gt; &lt;code&gt;/api/embed&lt;/code&gt; returns a vector, and then it's your problem. There's no storage, index or search, so every RAG tutorial starts with "now install a vector database".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. It can't see your data.&lt;/strong&gt; The model knows what it was trained on, plus whatever you paste into the prompt. Finding the right rows, deciding what goes into the context window and citing where an answer came from is all code you write and maintain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. It lets anyone in, or no one.&lt;/strong&gt; By default Ollama listens only on &lt;code&gt;127.0.0.1:11434&lt;/code&gt;. Its FAQ shows how to open it up with &lt;code&gt;OLLAMA_HOST=0.0.0.0&lt;/code&gt;, nginx, ngrok or a Cloudflare Tunnel, and none of those sections mentions authentication, because the server doesn't have any. Most teams either keep it on one laptop or put it behind a proxy and hope.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep your Ollama code, change the server
&lt;/h2&gt;

&lt;p&gt;SynapCores is a single-binary database for AI apps: SQL, vectors, graph, agent memory and local inference in one process. It also serves the &lt;strong&gt;Ollama API&lt;/strong&gt; (&lt;code&gt;/api/chat&lt;/code&gt;, &lt;code&gt;/api/embed&lt;/code&gt;, &lt;code&gt;/api/tags&lt;/code&gt;, &lt;code&gt;/api/ps&lt;/code&gt;, &lt;code&gt;/api/version&lt;/code&gt;) and pulls models from the same Ollama registry, so your model names stay the same.&lt;/p&gt;

&lt;p&gt;This is the official &lt;code&gt;ollama&lt;/code&gt; Python client (0.6.3), unchanged except for the host and an API key. I ran it this morning against SynapCores 2.5:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ollama&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ollama&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:8080"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                    &lt;span class="c1"&gt;# SynapCores&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer aidb_..."&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;    &lt;span class="c1"&gt;# an API key&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;models&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# ['all-minilm:latest', 'd1:latest', 'qwen2.5-coder:7b']&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"qwen2.5-coder:7b"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Reply with just the word OK."&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# → "OK."&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look again at that auth header. Every request carries a key, and a call without one gets a &lt;code&gt;401&lt;/code&gt;. Keys can be read-only, scoped to specific databases and set to expire, so "this key can read the support docs but not the payroll table" is a setting, not a proxy project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Answers grounded in your data
&lt;/h2&gt;

&lt;p&gt;Here's a three-row support knowledge base, stored as an ordinary SQL table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;kbtext&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="kt"&gt;INT&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="kt"&gt;TEXT&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;kbtext&lt;/span&gt; &lt;span class="k"&gt;VALUES&lt;/span&gt;
 &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Orbit Pro refunds: customers can request a full refund within 45 days of purchase.'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Orbit Pro support hours are 7am to 7pm Eastern, Monday through Saturday.'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Error code E-221 means the sync token expired; sign out and sign back in.'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now call the Ollama chat endpoint the way you always have, and add one field, &lt;code&gt;rag&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl localhost:8080/api/chat -H &lt;span class="s2"&gt;"Authorization: Bearer $KEY"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"content-type: application/json"&lt;/span&gt; -d &lt;span class="s1"&gt;'{
  "model": "qwen2.5-coder:7b", "stream": false,
  "rag": {"source": "collection:kbtext", "mode": "inject", "top_k": 2},
  "messages": [{"role":"user","content":"How many days do I have to get a refund on Orbit Pro?"}]
}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"You have 45 days to request a full refund on Orbit Pro after your purchase."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The response headers say where the answer came from:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;x-synapcores-grounding: grounded
x-synapcores-citations: ["collection:kbtext/row-0","collection:kbtext/row-1"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's the same model and the same endpoint. The difference is that the model now runs inside the database that holds the answer: no vector database to deploy, no glue code and no second copy of your data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your model, used directly in SQL
&lt;/h2&gt;

&lt;p&gt;Because inference runs inside the engine, the model is also available in a query:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;GENERATE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Summarize in 6 words: '&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;kbtext&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;-- 3 | 'Sync token expired. Sign out, then sign back in.'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That turns "summarize every ticket", "tag every row" or "draft a reply per customer" into a single &lt;code&gt;SELECT&lt;/code&gt; statement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before you switch
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SynapCores is a database, not a lighter Ollama.&lt;/strong&gt; If all you need is a model in a terminal, Ollama is great. SynapCores is for when the model needs to work with your data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Point clients at port 8080 and add a bearer key.&lt;/strong&gt; Auth is on by default, so that's the only change in your client code.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it in five minutes
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSL https://get.synapcores.com &lt;span class="o"&gt;|&lt;/span&gt; sh
&lt;span class="c"&gt;# or&lt;/span&gt;
docker pull synapcores/community:v2.5.1-ce
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's the free, self-hosted Community Edition.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/ZTyk7vSzIu4" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The full write-up is on &lt;a href="https://synapcores.com/blog/ollama-runs-your-model?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=ollama-runs-your-model" rel="noopener noreferrer"&gt;synapcores.com&lt;/a&gt;. Install options are at &lt;a href="https://synapcores.com/download?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=ollama-runs-your-model" rel="noopener noreferrer"&gt;synapcores.com/download&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's the piece of your local-AI stack you'd most like to delete: the vector DB, the glue code or the proxy?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>ollama</category>
      <category>rag</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Build a Local RAG App With Citations in One Database (28 Lines of Python)</title>
      <dc:creator>Luis M</dc:creator>
      <pubDate>Sat, 14 Nov 2026 16:16:31 +0000</pubDate>
      <link>https://dev.to/synapcores/build-a-local-rag-app-with-citations-in-one-database-28-lines-of-python-i1f</link>
      <guid>https://dev.to/synapcores/build-a-local-rag-app-with-citations-in-one-database-28-lines-of-python-i1f</guid>
      <description>&lt;p&gt;We built the same RAG app twice, with the same documents, the same models and the same five questions, and we counted everything. The first version is the stack most tutorials use: Postgres with pgvector, Ollama for embeddings and chat, an ingest job and a query API, all in Docker Compose. The second version is one database, SynapCores, and one Python file.&lt;/p&gt;

&lt;p&gt;This post walks you through the second version from a fresh Mac to cited answers. Every command and every answer below comes from a real run on SynapCores v2.4.0 Community Edition, which is free.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/YqEEyNLEJ4Q" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  What you'll build
&lt;/h2&gt;

&lt;p&gt;You'll build a support bot for a made-up router company, Orbit Networks. It answers questions from four short policy documents, cites the file each answer came from, and says it doesn't know when the documents don't cover something. When you drop a new document into the folder, the bot can answer questions about it a few seconds later, with no re-indexing step.&lt;/p&gt;

&lt;p&gt;Here is how the two versions compared on the same Mac, on the same day:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;The usual stack&lt;/th&gt;
&lt;th&gt;SynapCores&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Services to run&lt;/td&gt;
&lt;td&gt;4 (Postgres + pgvector, Ollama, ingest job, query API)&lt;/td&gt;
&lt;td&gt;1 database process&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Container images&lt;/td&gt;
&lt;td&gt;3 pulled + 1 built&lt;/td&gt;
&lt;td&gt;0 (one native binary)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Files you write&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lines of glue code (Python + SQL)&lt;/td&gt;
&lt;td&gt;92&lt;/td&gt;
&lt;td&gt;28&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lines of config&lt;/td&gt;
&lt;td&gt;57&lt;/td&gt;
&lt;td&gt;0 (you change two model names in the installed config)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Code + config total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;149&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;28&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cold setup to first answer, including model downloads&lt;/td&gt;
&lt;td&gt;5:34&lt;/td&gt;
&lt;td&gt;3:35&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Correct answers&lt;/td&gt;
&lt;td&gt;5/5&lt;/td&gt;
&lt;td&gt;5/5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Right source cited&lt;/td&gt;
&lt;td&gt;5/5&lt;/td&gt;
&lt;td&gt;5/5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New file in the docs folder&lt;/td&gt;
&lt;td&gt;re-run the ingest job&lt;/td&gt;
&lt;td&gt;picked up automatically in about 3 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both stacks used &lt;code&gt;qwen2.5:7b&lt;/code&gt; for chat and &lt;code&gt;nomic-embed-text&lt;/code&gt; for embeddings, with temperature 0, seed 7 and the top 3 chunks. Lines are counted without blank lines, comments or docstrings.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;An Apple silicon Mac. We used an M-series MacBook with 24 GB of memory.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://brew.sh" rel="noopener noreferrer"&gt;Homebrew&lt;/a&gt;. The installer uses it for three media libraries (ffmpeg, tesseract and leptonica).&lt;/li&gt;
&lt;li&gt;Python 3.9 or newer (&lt;code&gt;python3 --version&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;About 6 GB of free disk space and a few minutes of download time for the two models.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: Install SynapCores
&lt;/h2&gt;

&lt;p&gt;Open Terminal and run the official installer. &lt;code&gt;SYNAPCORES_USER_INSTALL=1&lt;/code&gt; installs everything for your user only, so you don't need &lt;code&gt;sudo&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSL https://get.synapcores.com &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nv"&gt;SYNAPCORES_USER_INSTALL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The installer asks three questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Install the Homebrew dependencies?&lt;/strong&gt; Answer &lt;code&gt;Y&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pre-pull the default LLM?&lt;/strong&gt; Answer &lt;code&gt;n&lt;/code&gt;. You'll pick the models for this tutorial in the next step, and SynapCores downloads them on first start.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enable semantic verification (NLI)?&lt;/strong&gt; Press Enter to skip it. You don't need it for this tutorial.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When it finishes you have:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;~/.local/bin/synapcores          the database (one binary)
~/.local/bin/synapcores-start    a small start helper
~/.synapcores/gateway.toml       the config file
~/.synapcores/synapcores.env     private secrets the installer generated for you
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: Choose the models
&lt;/h2&gt;

&lt;p&gt;Open &lt;code&gt;~/.synapcores/gateway.toml&lt;/code&gt; in any text editor, find the &lt;code&gt;[query.ai_service]&lt;/code&gt; section and set the two model lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[query.ai_service]&lt;/span&gt;
&lt;span class="na"&gt;provider&lt;/span&gt;        &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"local"&lt;/span&gt;
&lt;span class="na"&gt;model&lt;/span&gt;           &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"qwen2.5:7b"&lt;/span&gt;
&lt;span class="na"&gt;embedding_model&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"nomic-embed-text"&lt;/span&gt;
&lt;span class="na"&gt;auto_pull&lt;/span&gt;       &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or make the same change from the terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sed -i &lt;span class="s1"&gt;''&lt;/span&gt; \
  -e &lt;span class="s1"&gt;'s|^# model omitted.*|model           = "qwen2.5:7b"|'&lt;/span&gt; \
  -e &lt;span class="s1"&gt;'s|^embedding_model = .*|embedding_model = "nomic-embed-text"|'&lt;/span&gt; \
  ~/.synapcores/gateway.toml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These are the same two models the usual stack runs in Ollama, so the comparison is like for like. SynapCores runs them in-process, on the Mac's GPU, and pulls them from the same Ollama registry. You don't install Ollama.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Start the database
&lt;/h2&gt;

&lt;p&gt;Start SynapCores in the foreground. Leave this terminal window open while you work through the tutorial:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;~/.local/bin/synapcores-start \
  --env-file ~/.synapcores/synapcores.env \
  --binary ~/.local/bin/synapcores \
  --config ~/.synapcores/gateway.toml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the first start it prints a &lt;strong&gt;FIRST-BOOT CREDENTIALS&lt;/strong&gt; box. Copy the admin password from it, because you'll need it in a moment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;===============================================================
  FIRST-BOOT CREDENTIALS
===============================================================
  ADMIN LOGIN
  username: admin
  password: ••••••••••••••••
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then it downloads both models:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  ┃ downloading model 'nomic-embed-text' …
  ┃ downloading model 'qwen2.5:7b' …

    SynapCores HTTP server is ready.
    AI model: qwen2.5:7b — downloading
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open a &lt;strong&gt;second terminal window&lt;/strong&gt; and check whether the models are ready. While they download you'll see &lt;code&gt;"state":"downloading"&lt;/code&gt;. Run it again until it says &lt;code&gt;"ready":true&lt;/code&gt;. That takes a few minutes, depending on your connection:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s localhost:8080/health
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"ok"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="err"&gt;...&lt;/span&gt; &lt;span class="nl"&gt;"ai"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"model"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"state"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"ready"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"ready"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 4: Create an API key
&lt;/h2&gt;

&lt;p&gt;Every request to SynapCores carries an API key. In the second terminal, paste your admin password between the quotes, then run the block. It logs in as admin and asks for a key that can read and write, valid for 30 days:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;ADMIN_PW&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'paste-the-admin-password-here'&lt;/span&gt;

&lt;span class="nv"&gt;TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;curl -s -X POST localhost:8080/v1/auth/login \
  -H &lt;span class="s1"&gt;'content-type: application/json'&lt;/span&gt; \
  -d &lt;span class="s2"&gt;"{\"username\":\"admin\",\"password\":\"$ADMIN_PW\"}"&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; python3 -c &lt;span class="s1"&gt;'import sys,json; print(json.load(sys.stdin)["access_token"])'&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;

curl -s -X POST localhost:8080/v1/api-keys \
  -H &lt;span class="s2"&gt;"Authorization: Bearer $TOKEN"&lt;/span&gt; \
  -H &lt;span class="s1"&gt;'content-type: application/json'&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"name":"rag-demo","permission":"FullAccess","expires_in_days":30}'&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; python3 -c &lt;span class="s1"&gt;'import sys,json; print(json.load(sys.stdin)["raw_key"])'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It prints your new key, which starts with &lt;code&gt;aidb_&lt;/code&gt;. Save it somewhere safe, because it's shown only once. Then put it in an environment variable for this terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;SC_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'aidb_...'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 5: Get the sample docs
&lt;/h2&gt;

&lt;p&gt;Create a project folder, a Python virtual environment, and the one library the app uses (&lt;a href="https://www.python-httpx.org/" rel="noopener noreferrer"&gt;httpx&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mkdir -p ~/rag-demo/docs &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; ~/rag-demo
python3 -m venv .venv
&lt;span class="nb"&gt;source&lt;/span&gt; .venv/bin/activate
pip install httpx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Download the four sample documents:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;B&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://synapcores.com/demos/two-stacks
&lt;span class="k"&gt;for&lt;/span&gt; f &lt;span class="k"&gt;in&lt;/span&gt; returns-and-refunds shipping troubleshooting-error-codes warranty&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  curl -fsSL -o docs/&lt;span class="nv"&gt;$f&lt;/span&gt;.md &lt;span class="nv"&gt;$B&lt;/span&gt;/docs/&lt;span class="nv"&gt;$f&lt;/span&gt;.md
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;They're short. Here they are in full, so you can see what the bot knows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;docs/returns-and-refunds.md&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;# Orbit Networks: Returns and Refunds Policy (rev. 2026-09)
&lt;/span&gt;
Hardware purchased directly from Orbit Networks can be returned within &lt;span class="gs"&gt;**45 days of delivery**&lt;/span&gt; for a full refund.
Opened software licenses (Orbit Shield, Orbit Mesh Manager) are not refundable.
Refurbished units are returnable within 14 days only.
Restocking fee: none for unopened items; 10% for opened items without the original box.
Refunds are issued to the original payment method within 5 business days of the item arriving at our Reno warehouse.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;docs/shipping.md&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;# Orbit Networks: Shipping
&lt;/span&gt;
Orders over $120 ship free within the contiguous US (3 to 5 business days).
Alaska and Hawaii: 6 to 9 business days, flat $15.
Express shipping (2 business days): $24.
We do not ship to PO boxes for routers due to carrier signature requirements.
International shipping is not available as of September 2026.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;docs/troubleshooting-error-codes.md&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;# Orbit X2 / X2 Pro: Status light and error codes
&lt;/span&gt;
&lt;span class="k"&gt;- &lt;/span&gt;&lt;span class="gs"&gt;**E-417**&lt;/span&gt;: WAN negotiation failed. Unplug the modem for 60 seconds, then power on the modem first and the router second.
&lt;span class="k"&gt;- &lt;/span&gt;&lt;span class="gs"&gt;**E-418**&lt;/span&gt;: DHCP lease not received. Set WAN mode to "Dynamic IP" in the app under Internet &amp;gt; Connection Type.
&lt;span class="k"&gt;- &lt;/span&gt;&lt;span class="gs"&gt;**E-512**&lt;/span&gt;: Firmware signature mismatch. Do NOT power off. Wait 10 minutes; the router rolls back automatically. If the light stays red, hold the reset button for 30 seconds.
&lt;span class="k"&gt;- &lt;/span&gt;&lt;span class="gs"&gt;**E-700**&lt;/span&gt;: Mesh backhaul too weak. Move the M1 node within 10 meters of the router or use a wired backhaul.
&lt;span class="k"&gt;- &lt;/span&gt;Blinking amber light: firmware update in progress (normal, up to 8 minutes).
&lt;span class="k"&gt;- &lt;/span&gt;Solid red light: hardware fault. File a warranty claim.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;docs/warranty.md&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;# Orbit Networks: Limited Warranty
&lt;/span&gt;
| Product | Warranty |
|---|---|
| Orbit X2 router | 3 years |
| Orbit X2 Pro router | 5 years |
| Orbit Mesh node M1 | 2 years |
| Orbit Power Adapter PA-30 | 1 year |

Not covered: water damage, lightning/power surges without an Orbit surge protector, and units with a removed serial sticker.
To file a claim, open a ticket with your serial number (format ORB-XXXX-XXXX) at support.orbit.example.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 6: The app, rag_app.py
&lt;/h2&gt;

&lt;p&gt;Download the app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSLO https://synapcores.com/demos/two-stacks/rag_app.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the whole thing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="s2"&gt;"""The same rag app on SynapCores: point it at the folder once, then ask with `rag`."""&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;httpx&lt;/span&gt;

&lt;span class="n"&gt;db&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;httpx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"SC_URL"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"http://127.0.0.1:8080"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"SC_KEY"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;600&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;index&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;folder&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/v1/filesystem-collections"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"orbit_support"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"filesystem_path"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;folder&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"file_types"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"md"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"watch"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;ask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/api/chat"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"model"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"qwen2.5:7b"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"stream"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"messages"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"options"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"temperature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"seed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"rag"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"filesystem:orbit_support"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"top_k"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"strict"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"x-synapcores-citations"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"[]"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"index"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;index&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;abspath&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"watching"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"filesystem_path"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"| embeddings:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"embedding_model"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;answer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sources&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;ask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;answer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"\nsources:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sources&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here's what each block does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The client.&lt;/strong&gt; &lt;code&gt;db&lt;/code&gt; is a plain HTTP client pointed at SynapCores on port 8080. Every request sends your API key as a bearer token. The timeout is generous because the first answer after a start loads the model.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;index(folder)&lt;/code&gt;.&lt;/strong&gt; This registers the folder as a &lt;em&gt;filesystem collection&lt;/em&gt;, named &lt;code&gt;orbit_support&lt;/code&gt;, for Markdown files. SynapCores reads each file, splits it into chunks, embeds the chunks with &lt;code&gt;nomic-embed-text&lt;/code&gt; and keeps the vectors right next to the text. &lt;code&gt;"watch": True&lt;/code&gt; tells it to keep watching the folder, so a new file gets indexed without you doing anything. In the usual stack, this one call is &lt;code&gt;ingest.py&lt;/code&gt;, &lt;code&gt;schema.sql&lt;/code&gt; and a Postgres container.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;ask(question)&lt;/code&gt;.&lt;/strong&gt; This is SynapCores' Ollama-compatible &lt;code&gt;/api/chat&lt;/code&gt; endpoint, with the same body you'd send to Ollama plus one extra field, &lt;code&gt;rag&lt;/code&gt;. That field tells the database to retrieve the top 3 chunks from &lt;code&gt;filesystem:orbit_support&lt;/code&gt;, put them in the prompt, and (because of &lt;code&gt;strict&lt;/code&gt;) answer only from them. The answer comes back in &lt;code&gt;message.content&lt;/code&gt;, the same as with Ollama. The sources come back in the &lt;code&gt;x-synapcores-citations&lt;/code&gt; response header. In the usual stack, this one call is &lt;code&gt;api.py&lt;/code&gt;, &lt;code&gt;rag.py&lt;/code&gt;, a FastAPI container and an Ollama container.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The command line.&lt;/strong&gt; &lt;code&gt;python rag_app.py index &amp;lt;folder&amp;gt;&lt;/code&gt; indexes a folder, and &lt;code&gt;python rag_app.py ask "&amp;lt;question&amp;gt;"&lt;/code&gt; asks a question.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Index the docs and ask
&lt;/h2&gt;

&lt;p&gt;Index the folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python rag_app.py index docs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;watching /Users/you/rag-demo/docs | embeddings: nomic-embed-text
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;SynapCores indexes the four files in the background, which takes about a second. Then ask the five test questions. Four of them are answered by the docs. The fifth is about price matching, which the docs don't cover, so the right answer is "I don't know".&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python rag_app.py ask &lt;span class="s2"&gt;"My Orbit X2 router shows error E-512. What should I do? Should I unplug it?"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;For error code **E-512** on your Orbit X2 router, which indicates a firmware signature mismatch, you should not power off the device immediately. Instead, follow these steps:

1. Wait for 10 minutes to see if the issue resolves itself as the router attempts an automatic rollback.
2. If the light remains red after 10 minutes, hold down the reset button on the router for 30 seconds. This can help trigger a firmware reset.

If the problem persists after these steps, it might be advisable to contact Orbit Networks support with your serial number and describe the issue in detail. They may provide further guidance or request that you file a warranty claim if necessary.
sources: ['filesystem:orbit_support/troubleshooting-error-codes.md#0', 'filesystem:orbit_support/warranty.md#0', 'filesystem:orbit_support/returns-and-refunds.md#0']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python rag_app.py ask &lt;span class="s2"&gt;"How many years of warranty does the Orbit X2 Pro router have?"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The Orbit X2 Pro router comes with a 5-year warranty.
sources: ['filesystem:orbit_support/warranty.md#0', 'filesystem:orbit_support/troubleshooting-error-codes.md#0', 'filesystem:orbit_support/returns-and-refunds.md#0']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python rag_app.py ask &lt;span class="s2"&gt;"How long do I have to return a refurbished unit?"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You have 14 days from the delivery date to return a refurbished unit if you wish to do so according to Orbit Networks' returns and refunds policy.
sources: ['filesystem:orbit_support/returns-and-refunds.md#0', 'filesystem:orbit_support/warranty.md#0', 'filesystem:orbit_support/troubleshooting-error-codes.md#0']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python rag_app.py ask &lt;span class="s2"&gt;"How much does shipping to Hawaii cost, and how long does it take?"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Shipping to Hawaii from Orbit Networks costs $15 with a delivery time of 6 to 9 business days.
sources: ['filesystem:orbit_support/shipping.md#0', 'filesystem:orbit_support/returns-and-refunds.md#0', 'filesystem:orbit_support/warranty.md#0']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python rag_app.py ask &lt;span class="s2"&gt;"Do you offer price matching?"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The provided context does not contain any information about price matching policies. Therefore, based on the given information alone, I cannot confirm whether Orbit Networks offers a price matching policy or not.
sources: ['filesystem:orbit_support/shipping.md#0', 'filesystem:orbit_support/returns-and-refunds.md#0', 'filesystem:orbit_support/warranty.md#0']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's 5 out of 5. Each answer is correct, and the first source listed is the file that holds the answer: error codes, warranty, returns, shipping. For price matching, the bot says the docs don't cover it instead of inventing a policy. With temperature 0 and a fixed seed you should see the same answers. We got them word for word on three separate runs.&lt;/p&gt;

&lt;p&gt;The list of sources is the top 3 chunks that were retrieved, ranked best first. Each document here is short enough to be a single chunk, which is why every source ends in &lt;code&gt;#0&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 8: Add a file and ask about it
&lt;/h2&gt;

&lt;p&gt;The folder is watched, so you can add a document and ask about it straight away. Create a fifth doc:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cat &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; docs/orbit-care-plus.md &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="s1"&gt;'EOF'&lt;/span&gt;
&lt;span class="c"&gt;# Orbit Care+&lt;/span&gt;

Orbit Care+ extended protection costs &lt;span class="nv"&gt;$4&lt;/span&gt;9 per year and adds accidental damage cover.
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Wait about three seconds, then ask:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python rag_app.py ask &lt;span class="s2"&gt;"How much does Orbit Care+ cost?"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Orbit Care+ costs $49 per year and adds accidental damage coverage.
sources: ['filesystem:orbit_support/orbit-care-plus.md#0', 'filesystem:orbit_support/shipping.md#0', 'filesystem:orbit_support/warranty.md#0']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You didn't re-run anything. SynapCores noticed the new file, chunked and embedded it, and the very next question cited it. In our run the collection went from 4 files to 5 in 2.7 seconds. With the usual stack, this is the point where you run the ingest job again.&lt;/p&gt;

&lt;h2&gt;
  
  
  The usual stack, for comparison
&lt;/h2&gt;

&lt;p&gt;The other half of the video is the same app built the way most RAG tutorials build it. You can download it, along with everything from this post, in one zip: &lt;strong&gt;&lt;a href="https://synapcores.com/demos/two-stacks/two-stacks-demo.zip" rel="noopener noreferrer"&gt;two-stacks-demo.zip&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It's a clean, typical setup that runs well:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;db&lt;/code&gt;&lt;/strong&gt;: &lt;code&gt;pgvector/pgvector:pg17&lt;/code&gt;, with a &lt;code&gt;chunks&lt;/code&gt; table and an HNSW cosine index (&lt;code&gt;schema.sql&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;ollama&lt;/code&gt;&lt;/strong&gt;: &lt;code&gt;ollama/ollama&lt;/code&gt;, serving both the embedding model and the chat model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;ingest&lt;/code&gt;&lt;/strong&gt;: a one-shot job (&lt;code&gt;ingest.py&lt;/code&gt;) that chunks each file with overlap, embeds the chunks with nomic's document prefix, and replaces that file's rows in a transaction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;api&lt;/code&gt;&lt;/strong&gt;: a FastAPI service (&lt;code&gt;api.py&lt;/code&gt;) that embeds the question, runs the vector search, builds a "use only this context" prompt, calls the chat model and returns the sources.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Shared code lives in &lt;code&gt;rag.py&lt;/code&gt;, and the container is described by &lt;code&gt;Dockerfile&lt;/code&gt; and &lt;code&gt;requirements.txt&lt;/code&gt;. With &lt;code&gt;docker-compose.yml&lt;/code&gt; and &lt;code&gt;.env&lt;/code&gt;, that's 8 files and 149 lines. It also answered 5 out of 5 with the right sources. The difference is everything you build and run to get there: start the services, pull the two models into Ollama, run the ingest job, then ask. The zip's &lt;code&gt;README.md&lt;/code&gt; has the exact commands.&lt;/p&gt;

&lt;h2&gt;
  
  
  Next steps
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Try it in your browser first.&lt;/strong&gt; The &lt;a href="https://synapcores.com/playground?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=rag-one-db" rel="noopener noreferrer"&gt;SynapCores Playground&lt;/a&gt; runs SQL against a live engine with nothing to install.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Point it at your own docs.&lt;/strong&gt; Swap &lt;code&gt;docs&lt;/code&gt; for any folder of Markdown files, or change &lt;code&gt;file_types&lt;/code&gt; to match yours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Go further with grounded answers:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://synapcores.com/recipes/agents/rag-with-citations?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=rag-one-db" rel="noopener noreferrer"&gt;RAG with citations&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://synapcores.com/recipes/agents/rag-ground-any-agent-answers-in-your-data?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=rag-one-db" rel="noopener noreferrer"&gt;Ground any agent's answers in your data&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://synapcores.com/recipes/ml/029_rag_answer_gate?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=rag-one-db" rel="noopener noreferrer"&gt;Gate a RAG answer in one SQL query&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read more:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/blog/ollama-runs-your-model?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=rag-one-db" rel="noopener noreferrer"&gt;Ollama runs your model. Who's running everything else?&lt;/a&gt;, which covers the rest of SynapCores' Ollama-compatible API.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://synapcores.com/blog/synapcores-vs-pgvector?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=rag-one-db" rel="noopener noreferrer"&gt;SynapCores vs pgvector&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Get SynapCores
&lt;/h2&gt;

&lt;p&gt;SynapCores Community Edition is free and self-hosted, with no signup. &lt;strong&gt;&lt;a href="https://synapcores.com/download?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=two-stacks" rel="noopener noreferrer"&gt;Download SynapCores&lt;/a&gt;&lt;/strong&gt; and build the app above in a few minutes. Then point it at your own docs.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://synapcores.com/blog/build-a-rag-app-in-one-database?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=rag-one-db" rel="noopener noreferrer"&gt;synapcores.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>rag</category>
      <category>ollama</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Your Ollama App Is Guessing. Three Ways to Make It Answer From Data</title>
      <dc:creator>Luis M</dc:creator>
      <pubDate>Tue, 27 Oct 2026 16:15:34 +0000</pubDate>
      <link>https://dev.to/synapcores/your-ollama-app-is-guessing-three-ways-to-make-it-answer-from-data-4n11</link>
      <guid>https://dev.to/synapcores/your-ollama-app-is-guessing-three-ways-to-make-it-answer-from-data-4n11</guid>
      <description>&lt;p&gt;Your local Ollama app is confident, fast, and wrong about your product.&lt;/p&gt;

&lt;p&gt;Ask &lt;code&gt;qwen2.5:7b&lt;/code&gt; what error E-700 means on a router it has never seen, and it will tell you to factory-reset the device. Ask it about your warranty and it says "typically one year". It isn't lying on purpose; it just has nothing of yours to read.&lt;/p&gt;

&lt;p&gt;The usual fix is a weekend of glue: a document loader, a chunker, a vector database, a prompt template. Then a second weekend when someone asks to point the same bot at the CRM, and a third conversation with security about what the model can see.&lt;/p&gt;

&lt;p&gt;Below are three short demos of a different approach. The app keeps the &lt;strong&gt;official &lt;code&gt;ollama&lt;/code&gt; Python client&lt;/strong&gt; and the &lt;strong&gt;same model&lt;/strong&gt;; only the server changes. The server is SynapCores v2.4.0, which serves the Ollama API (&lt;code&gt;/api/chat&lt;/code&gt;, &lt;code&gt;/api/generate&lt;/code&gt;, &lt;code&gt;/api/embed&lt;/code&gt;, &lt;code&gt;/api/tags&lt;/code&gt;…) and adds grounding behind it.&lt;/p&gt;

&lt;p&gt;Every output in this post is pasted from a real run. The router docs and CRM rows are synthetic.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. One option, and the answers come from your docs
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/ZTyk7vSzIu4" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The engine watches a folder (&lt;code&gt;orbit_support&lt;/code&gt;, four markdown files) and indexes it. The app adds one option to its chat call:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ollama&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ollama&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;SYNAPCORES_URL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                       &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Authorization&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Bearer &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;API_KEY&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;

&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;qwen2.5:7b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;role&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;user&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;content&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;}],&lt;/span&gt;
    &lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;rag&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;source&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;filesystem:orbit_support&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;top_k&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;}},&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;"How many years of warranty does the Orbit X2 Pro router have?"&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;--- BEFORE  (plain Ollama call)
...Typically, consumer routers come with a one-year warranty as standard...
  grounding: (none: plain model)

--- AFTER   (+ rag: filesystem:orbit_support)
The Orbit X2 Pro router has a 5-year warranty.
  grounding: grounded
  source:    filesystem:orbit_support/warranty.md#0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The sources come back in response headers, so the app can show them without parsing the answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Ask the database in plain English, and the PII stays private
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/3Za0jzLzJU4" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Pointing an LLM at a CRM is where most teams stop: one prompt injection away from "list every customer's email". Here the boundary is the API key, not the prompt.&lt;/p&gt;

&lt;p&gt;The key is ReadOnly and granted three columns of one table: &lt;code&gt;orbit_crm.customers(company, plan, mrr_usd)&lt;/code&gt;. The app uses the same client with that key and one option, &lt;code&gt;"rag": {"source": "database:orbit_crm"}&lt;/code&gt;. The engine writes the SQL, runs it under the key's grants, and returns the SQL it ran.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;raw SQL with this key: HTTP 403 This API key can only ask questions from its permitted database data

Q: What is the total monthly recurring revenue of our Enterprise customers?
Result: 14500. [SQL 1]
  ran: SELECT SUM(mrr_usd) AS total_mrr FROM customers WHERE plan = 'Enterprise'

Q: Which customer pays us the most per month?
The customer that pays us the most per month is Harbor Logistics [SQL 1].
  ran: SELECT company FROM customers ORDER BY mrr_usd DESC LIMIT 1

Q: Give me the contact email and card last 4 digits for Harbor Logistics.
Cannot answer from the permitted data.

Q: Which customers have a high churn risk?
Cannot answer from the permitted data.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The last one matters: the &lt;code&gt;churn_risk&lt;/code&gt; column exists, the key just doesn't include it. It's per-column permissions enforced by the engine, not a keyword filter on the question.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Ship a support bot as just a model name
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/mF608gh62wk" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Sometimes you can't touch the apps at all: a chat UI on the support desk, a script someone else owns. So the operator adds an alias to the engine config instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[&lt;/span&gt;&lt;span class="n"&gt;ollama&lt;/span&gt;&lt;span class="k"&gt;.&lt;/span&gt;&lt;span class="n"&gt;aliases&lt;/span&gt;&lt;span class="k"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orbit-support&lt;/span&gt;&lt;span class="k"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;model&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"qwen2.5:7b"&lt;/span&gt;

&lt;span class="k"&gt;[&lt;/span&gt;&lt;span class="n"&gt;ollama&lt;/span&gt;&lt;span class="k"&gt;.&lt;/span&gt;&lt;span class="n"&gt;aliases&lt;/span&gt;&lt;span class="k"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orbit-support&lt;/span&gt;&lt;span class="k"&gt;.&lt;/span&gt;&lt;span class="n"&gt;grounding&lt;/span&gt;&lt;span class="k"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;source&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"filesystem:orbit_support"&lt;/span&gt;
&lt;span class="n"&gt;mode&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"inject"&lt;/span&gt;
&lt;span class="n"&gt;top_k&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;
&lt;span class="n"&gt;strict&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;orbit-support&lt;/code&gt; now shows up in the client's model list next to the real models:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   nomic-embed-text:latest
   orbit-support
   qwen2.5-coder:7b
   qwen2.5:7b
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;"What does error E-700 mean on the Orbit X2 Pro?"&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;--- model=qwen2.5:7b
Error E-700 on the Orbit X2 Pro typically indicates an issue with the device's firmware...
2. **Perform a Factory Reset**: ... this will erase all data on your device...

--- model=orbit-support
Error E-700 on the Orbit X2 Pro indicates that the mesh backhaul signal is too weak.
To resolve this issue, you should move the M1 node within 10 meters of the router
or use a wired backhaul to strengthen the connection.
  grounding: grounded
  source:    filesystem:orbit_support/troubleshooting-error-codes.md#0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And for a question the docs don't cover (&lt;em&gt;"Do you price match other retailers?"&lt;/em&gt;), &lt;code&gt;orbit-support&lt;/code&gt; says the context doesn't contain that, instead of inventing a policy. Because the grounding is pinned by the operator, it stays on in every client, and with &lt;code&gt;strict = true&lt;/code&gt; a retrieval failure returns an error rather than an answer from model memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd take away
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Grounding belongs on the server.&lt;/strong&gt; If every app has to remember to do rag right, some won't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permissions belong in the key, not the prompt.&lt;/strong&gt; "Don't reveal emails" in a system prompt is a suggestion; a column grant is a wall.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"I don't know" is a feature.&lt;/strong&gt; Both the database and docs demos refuse instead of guessing when the data isn't there.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The demos were recorded on the v2.4.0 release candidate (the on-screen tag reads v2.3.4) and behave the same on v2.4.0. The free Community Edition is at &lt;a href="https://synapcores.com/download?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=ollama-series" rel="noopener noreferrer"&gt;synapcores.com/download&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I work on SynapCores.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Which would you hand to your team first: grounded answers over docs, or plain-English questions over a database with column-level keys? And what's the first thing you'd try to make it leak?&lt;/p&gt;

</description>
      <category>ollama</category>
      <category>rag</category>
      <category>ai</category>
      <category>python</category>
    </item>
    <item>
      <title>GraphRAG vs Neo4j (2026): Which Do You Actually Need?</title>
      <dc:creator>Luis M</dc:creator>
      <pubDate>Sun, 11 Oct 2026 01:40:46 +0000</pubDate>
      <link>https://dev.to/synapcores/graphrag-vs-neo4j-which-do-you-actually-need-3ln1</link>
      <guid>https://dev.to/synapcores/graphrag-vs-neo4j-which-do-you-actually-need-3ln1</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj7cnsa499buehcoodi0k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj7cnsa499buehcoodi0k.png" alt="GraphRAG is a retrieval pattern; Neo4j is a graph database. Different layers." width="539" height="346"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The comparison in the title is one I've been asked maybe twenty times in the last six months, and the framing is wrong every time. &lt;strong&gt;GraphRAG and Neo4j aren't competitors.&lt;/strong&gt; GraphRAG is a &lt;em&gt;retrieval pattern&lt;/em&gt; — a way of combining vector similarity with graph traversal to feed better context into an LLM. Neo4j is a &lt;em&gt;graph database&lt;/em&gt; — a piece of infrastructure where you store and query graphs. You can implement GraphRAG on Neo4j. You can also implement it on SynapCores, on Postgres+Apache AGE, on TigerGraph, or on a custom engine. The right question isn't "which one wins" — it's "for my workload, what's the right architecture?"&lt;/p&gt;

&lt;p&gt;This post is that decision. I'll walk through what Neo4j is genuinely excellent at, what implementing GraphRAG on top of it looks like, where the dual-store sync cost (Neo4j + vector DB) starts to hurt, and when a unified engine is the better choice. The examples use Cypher on both sides: on Neo4j for the multi-store path, and on SynapCores for the unified-engine path. The conclusion isn't "pick SynapCores" — it's "pick the architecture that matches your operational appetite."&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Try the architecture before expanding your stack.&lt;/strong&gt; Reproduce the knowledge-base example in this article with sample runbooks, system relationships, and an expected result. &lt;a href="https://synapcores.com/download?recipe=graph%2Fgraphrag-vs-neo4j-knowledge-base&amp;amp;ref=graphrag-body-intro" rel="noopener noreferrer"&gt;Install free and run the example →&lt;/a&gt; or &lt;a href="https://synapcores.com/recipes/graph/graphrag-vs-neo4j-knowledge-base?ref=graphrag-body-intro" rel="noopener noreferrer"&gt;inspect the step-by-step recipe first →&lt;/a&gt;. Community Edition needs no signup or credit card.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What Neo4j is
&lt;/h2&gt;

&lt;p&gt;Neo4j is the dominant native graph database. It was the first commercially successful one, it invented or popularized Cypher (the graph query language that most other engines now speak), and it has fifteen-plus years of production deployments behind it. The data model is property graphs — typed nodes with properties, typed edges with properties — and the query language is among the most ergonomic any database has ever shipped.&lt;/p&gt;

&lt;p&gt;Comparing Neo4j with Oracle? See &lt;a href="https://synapcores.com/compare/oracle-graph-vs-neo4j" rel="noopener noreferrer"&gt;Oracle vs Neo4j&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What Neo4j does excellently:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Native property-graph storage.&lt;/strong&gt; Indexes on labels, properties, relationships. Designed for graphs, not retrofitted from rows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cypher.&lt;/strong&gt; The query language is genuinely good. &lt;code&gt;MATCH (a)-[r:KNOWS]-&amp;gt;(b) WHERE a.name = 'Alice' RETURN b&lt;/code&gt; is the right level of abstraction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mature traversal performance.&lt;/strong&gt; Multi-hop walks at millisecond latency on graphs of hundreds of millions of nodes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Production tooling.&lt;/strong&gt; Clustering, backups, multi-tenancy, monitoring. The boring stuff is solved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The ecosystem.&lt;/strong&gt; Graph data science library, visualization tools (Bloom, Neo4j Browser), integrations with everything.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What Neo4j doesn't do natively:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Vector search.&lt;/strong&gt; Neo4j added vector indexes in 5.11 (~2023). They work. They are not at parity with dedicated vector databases for high-recall workloads at scale. If your vectors are the primary access pattern, Neo4j's vector index is the secondary citizen of the engine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM integration.&lt;/strong&gt; No &lt;code&gt;GENERATE()&lt;/code&gt; function inside Cypher. You call out to Python/LangChain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Relational joins at scale.&lt;/strong&gt; Neo4j is great at graph traversals; it's not optimized for "JOIN three tables on big indexed keys."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AutoML or in-DB training.&lt;/strong&gt; Out of scope.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This isn't a knock. Neo4j is a graph database. It does graphs. The tradeoff is that everything &lt;em&gt;not&lt;/em&gt; graph (vectors, LLMs, ML training) lives somewhere else — and you become responsible for keeping those somewhere-elses in sync with Neo4j.&lt;/p&gt;

&lt;h2&gt;
  
  
  What GraphRAG is
&lt;/h2&gt;

&lt;p&gt;GraphRAG is a retrieval pattern, not a piece of software. The pattern:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Embed the user's question.&lt;/li&gt;
&lt;li&gt;Find the top-k chunks (or nodes) by vector similarity.&lt;/li&gt;
&lt;li&gt;Walk the graph N hops out from those seeds along typed edges.&lt;/li&gt;
&lt;li&gt;Feed the resulting subgraph (chunks + nodes + edges) into the LLM context.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can read the long-form on this, including how it differs from plain vector RAG and how to implement it step by step, in &lt;a href="https://synapcores.com/blog/what-is-graphrag" rel="noopener noreferrer"&gt;what GraphRAG is and how to implement it&lt;/a&gt;. The relevant point for this post: &lt;strong&gt;GraphRAG requires a vector index AND a graph engine.&lt;/strong&gt; Two capabilities. How you provision them is the architectural decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  Neo4j GraphRAG (the neo4j-graphrag package): how it works
&lt;/h2&gt;

&lt;p&gt;"Neo4j GraphRAG" usually means Neo4j's official Python package, &lt;a href="https://neo4j.com/docs/neo4j-graphrag-python/current/" rel="noopener noreferrer"&gt;&lt;code&gt;neo4j-graphrag&lt;/code&gt;&lt;/a&gt; (&lt;code&gt;pip install neo4j-graphrag&lt;/code&gt;, Apache 2.0, the renamed successor of &lt;code&gt;neo4j-genai&lt;/code&gt;). It is a first-party toolkit for building GraphRAG on a Neo4j database (5.18.1 or later, or Aura), and it has three parts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; documents ──► KG builder pipeline ──► Neo4j (nodes, relationships, chunk embeddings + vector index)
                (LLM entity/relation extraction)                     │
                                                                     ▼
 question ──► Retriever ──► context (chunks + graph neighbourhood) ──► LLM ──► answer
            (vector, vector+Cypher, hybrid, text-to-Cypher)          GraphRAG class
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Knowledge graph builder.&lt;/strong&gt; A pipeline that splits documents into chunks, embeds them, asks an LLM to extract entities and relationships, resolves duplicates and writes the result to Neo4j.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retrievers.&lt;/strong&gt; &lt;code&gt;VectorRetriever&lt;/code&gt; (similarity search on a Neo4j vector index), &lt;code&gt;VectorCypherRetriever&lt;/code&gt; (similarity search, then a Cypher query that walks out from each hit: the GraphRAG step), &lt;code&gt;HybridRetriever&lt;/code&gt; and &lt;code&gt;HybridCypherRetriever&lt;/code&gt; (vector plus full-text), and &lt;code&gt;Text2CypherRetriever&lt;/code&gt; (an LLM writes the Cypher). External retrievers can keep the vectors in Weaviate, Pinecone or Qdrant instead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generation.&lt;/strong&gt; The &lt;code&gt;GraphRAG&lt;/code&gt; class passes the retrieved context and the question to an LLM (OpenAI, Anthropic, Ollama, Vertex AI and others).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So with the package, the graph and the vectors can both live in Neo4j: the retriever does the similarity step against Neo4j's vector index and the expansion step in Cypher, and Python orchestrates the LLM calls. What stays outside Neo4j is the embedding model, the LLM and, usually, your relational system of record, which still has to be synced into the graph.&lt;/p&gt;

&lt;p&gt;The same retrieval shape on SynapCores runs as one Cypher statement inside the database, shown in the unified-engine section below.&lt;/p&gt;

&lt;h2&gt;
  
  
  Implementing GraphRAG on Neo4j (the multi-store path)
&lt;/h2&gt;

&lt;p&gt;The most common architecture for GraphRAG on Neo4j is the &lt;em&gt;dual-store&lt;/em&gt; pattern: Neo4j for the graph, a separate vector database (Pinecone, Chroma, Weaviate, pgvector) for the embeddings.&lt;/p&gt;

&lt;p&gt;The flow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User question
    -&amp;gt; embed via OpenAI/sentence-transformers
    -&amp;gt; top-k vector search in Pinecone
    -&amp;gt; get node IDs back
    -&amp;gt; Cypher query in Neo4j: MATCH (n) WHERE n.id IN [...] -[*1..2]- ()
    -&amp;gt; assemble chunks + subgraph
    -&amp;gt; stuff into LLM context
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Code-wise (Python + LangChain-ish pseudocode):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Step 1: vector search&lt;/span&gt;
&lt;span class="n"&gt;seeds&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pinecone&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;vector&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nf"&gt;embed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;top_k&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;seed_ids&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'id'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;seeds&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="c1"&gt;# Step 2: graph traversal in Neo4j&lt;/span&gt;
&lt;span class="n"&gt;cypher&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"""
MATCH (n:Chunk) WHERE n.id IN $ids
MATCH (n)-[r*1..2]-(m)
RETURN n, r, m
"""&lt;/span&gt;
&lt;span class="n"&gt;subgraph&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;neo4j&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cypher&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ids&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;seed_ids&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Step 3: feed to LLM&lt;/span&gt;
&lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;format_subgraph&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;subgraph&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;question&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;"\n\nContext:\n"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This works. It's the canonical pattern, and there's nothing wrong with it on a small scale. Neo4j's vector index is also an option — keeps everything in one engine, gives up some vector-search performance, simplifies operations. Both are valid.&lt;/p&gt;

&lt;p&gt;The cost shows up at scale. Specifically:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Two stores, one source of truth (sort of)
&lt;/h3&gt;

&lt;p&gt;Every node in Neo4j has a corresponding vector in Pinecone. When the node's content changes, both stores need to update. The write path becomes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;update_chunk&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;chunk_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;new_content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;new_emb&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;embed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;new_content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;pinecone&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;upsert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;chunk_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;new_emb&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;neo4j&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"MATCH (n:Chunk {id: $id}) SET n.content = $c"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;chunk_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;new_content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two writes, no transaction across them. If the Pinecone write succeeds and the Neo4j write fails (or vice versa), you have drift. Every team I've seen running this pattern at scale has built some kind of reconciliation job — usually as a nightly cron — to scan for divergence. The reconciliation works. It's tax.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Two operational footprints
&lt;/h3&gt;

&lt;p&gt;Neo4j has its own cluster topology, backup story, monitoring story, version cadence, IAM model. Pinecone (or your chosen vector DB) has another. Your on-call rotation now covers two clusters. Your DR plan covers two clusters. Your version bumps are coordinated.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The retrieval round-trip
&lt;/h3&gt;

&lt;p&gt;The flow above does two network round-trips per query: app → Pinecone → app → Neo4j → app. At 10ms each, that's 20ms of pure overhead before the LLM is called. This is fixable with batching and connection pooling, but it's a real cost that disappears when both indexes share a process.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Schema divergence
&lt;/h3&gt;

&lt;p&gt;This is the subtle one. Pinecone has a different notion of "filter" than Neo4j has of "property." When you want a hybrid query — "vectors close to X &lt;em&gt;and&lt;/em&gt; nodes connected to Y" — the filtering happens in two places and the semantics don't always line up cleanly. The application becomes the merge layer, which means bugs live in the merge logic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Implementing GraphRAG on a unified engine (the single-store path)
&lt;/h2&gt;

&lt;p&gt;The alternative: an engine where the graph and the vector index share storage and the planner. SynapCores does this; so do a few other unified engines now. In SynapCores the similarity step is a hop inside Cypher: nodes carry an &lt;code&gt;embedding&lt;/code&gt; property, and &lt;code&gt;[:SIMILAR_TO &amp;gt; 0.8]&lt;/code&gt; walks to their nearest neighbours through an HNSW index. The same GraphRAG retrieval becomes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cypher"&gt;&lt;code&gt;&lt;span class="c1"&gt;// From the runbook an engineer is reading: related runbooks (vector hop),&lt;/span&gt;
&lt;span class="c1"&gt;// the systems they cover and the team that owns them (graph hops).&lt;/span&gt;
&lt;span class="k"&gt;MATCH&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nc"&gt;KbDoc&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"DOC-101"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;SIMILAR_TO&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mf"&gt;0.8&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nc"&gt;KbDoc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;MATCH&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;COVERS&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nc"&gt;KbSystem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;OWNED_BY&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;team&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nc"&gt;KbTeam&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"database"&lt;/span&gt;
&lt;span class="k"&gt;RETURN&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;runbook&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;team&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;owning_team&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;team&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oncall&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On SynapCores 2.5.1, with the knowledge base from &lt;a href="https://synapcores.com/recipes/graph/graphrag-vs-neo4j-knowledge-base" rel="noopener noreferrer"&gt;this recipe&lt;/a&gt; loaded, it returns one row: &lt;code&gt;Database connection pool exhaustion | Core Data | core-data-oncall&lt;/code&gt;. The sample uses fixed demo vectors, so this retrieval step does not require an embedding API or an LLM. It exercises connected retrieval rather than complete answer generation. After that first result, configure a model and add the recipe’s optional &lt;code&gt;llm_score()&lt;/code&gt; ranking step.&lt;/p&gt;

&lt;p&gt;You can inspect a larger implementation in the &lt;a href="https://github.com/SynapCores/synapcores-agent" rel="noopener noreferrer"&gt;SynapCores support-agent reference application&lt;/a&gt;: follow memory, retrieval, and tool routing through the source. It is a SynapCores-built reference application. To see how teams use SynapCores beyond this sample, &lt;a href="https://synapcores.com/use-cases?ref=graphrag-reference#production-deployments" rel="noopener noreferrer"&gt;read the anonymized production deployment summaries&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Neo4j brings a long track record and a broad ecosystem of drivers, tools and experienced practitioners, and a team that already runs Neo4j well keeps that operational investment. The unified engine's advantage is structural: the embedding model, the LLM calls and the SQL tables live in the same engine as the vector hop and the graph hops, so there is no second system to keep in sync. &lt;a href="https://synapcores.com/blog/why-traditional-databases-fail-modern-ai" rel="noopener noreferrer"&gt;Why Traditional Databases Fail Modern AI Workloads&lt;/a&gt; makes the full case — it is about architecture, not "Neo4j bad."&lt;/p&gt;

&lt;h2&gt;
  
  
  A decision matrix
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvk86sdp70acdz36j6rtw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvk86sdp70acdz36j6rtw.png" alt="Decision quadrant: Neo4j vs unified engine by workload weight" width="799" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Real talk, here's how I actually advise teams:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;th&gt;Choose Neo4j + vector DB&lt;/th&gt;
&lt;th&gt;Choose unified engine&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;You're already deeply on Neo4j&lt;/td&gt;
&lt;td&gt;Strong yes&lt;/td&gt;
&lt;td&gt;Switching cost is real&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Graphs are the &lt;em&gt;dominant&lt;/em&gt; workload, vectors are a side feature&lt;/td&gt;
&lt;td&gt;Yes — Neo4j is purpose-built&lt;/td&gt;
&lt;td&gt;Unified engine is unnecessary&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vectors are dominant, graph is for occasional relationship queries&lt;/td&gt;
&lt;td&gt;Dual-store sync is overkill&lt;/td&gt;
&lt;td&gt;Yes — one engine is simpler&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Both vector and graph are equally first-class&lt;/td&gt;
&lt;td&gt;Sync cost real; pay it consciously&lt;/td&gt;
&lt;td&gt;Yes — designed for this case&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Greenfield project, no existing investment&lt;/td&gt;
&lt;td&gt;Possible but operationally heavier&lt;/td&gt;
&lt;td&gt;Yes — fewer moving parts on day one&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You need mature graph data science library (PageRank at scale, community detection, etc.)&lt;/td&gt;
&lt;td&gt;Yes — Neo4j ecosystem is unmatched here&lt;/td&gt;
&lt;td&gt;Unified engines have less in this area&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You need &lt;code&gt;GENERATE()&lt;/code&gt; and &lt;code&gt;EMBED()&lt;/code&gt; callable from queries&lt;/td&gt;
&lt;td&gt;Need a Python layer&lt;/td&gt;
&lt;td&gt;Native — see &lt;a href="https://synapcores.com/blog/what-is-sqlv2" rel="noopener noreferrer"&gt;SQLv2&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Team has graph-DB ops experience&lt;/td&gt;
&lt;td&gt;Strong yes&lt;/td&gt;
&lt;td&gt;Either&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Small team without graph-DB ops experience&lt;/td&gt;
&lt;td&gt;Operational tax is high&lt;/td&gt;
&lt;td&gt;Lower tax&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A summary: &lt;strong&gt;Neo4j is the right answer when graphs are the workload.&lt;/strong&gt; A &lt;strong&gt;unified engine is the right answer when AI workloads (vectors + graphs + LLMs) are the workload and you'd rather not assemble five services.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Neo4j genuinely wins, in detail
&lt;/h2&gt;

&lt;p&gt;I want to give Neo4j its due. There are workloads where it's the cleanest choice and where adding a unified engine to the comparison is silly.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pure graph workloads.&lt;/strong&gt; Knowledge graphs in life sciences, social network analysis, supply chains. The vector dimension is incidental; the graph is the whole game.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graph data science.&lt;/strong&gt; GDS library — community detection, centrality algorithms, link prediction, embeddings &lt;em&gt;of&lt;/em&gt; graph nodes (Node2Vec, GraphSAGE). Mature, fast, well-supported.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cypher mastery on the team.&lt;/strong&gt; If you have Cypher experts, leaning into Neo4j amortizes that expertise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The ecosystem.&lt;/strong&gt; Bloom for visualization, integrations with every BI tool, a fifteen-year corpus of patterns and conference talks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If those bullets describe your project, the dual-store sync cost is a price worth paying. The vector dimension is the secondary concern, not the primary.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where a unified engine genuinely wins
&lt;/h2&gt;

&lt;p&gt;The flip side. Where I'd default to a unified engine:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Agent memory / GraphRAG as the &lt;em&gt;primary&lt;/em&gt; product feature.&lt;/strong&gt; Both layers (vectors and graph) are first-class. Sync is friction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want LLM calls inside the query.&lt;/strong&gt; &lt;code&gt;GENERATE()&lt;/code&gt; in SQL collapses three round-trips into one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want in-DB ML training.&lt;/strong&gt; &lt;code&gt;CREATE MODEL&lt;/code&gt; + &lt;code&gt;PREDICT()&lt;/code&gt; are first-class — see &lt;a href="https://synapcores.com/blog/what-is-in-database-machine-learning" rel="noopener noreferrer"&gt;What Is In-Database Machine Learning?&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You don't have graph-DB ops budget.&lt;/strong&gt; Running one engine is meaningfully cheaper than running two, especially at small team size.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Latency budget is tight on relational queries.&lt;/strong&gt; One round-trip vs two matters.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A worked migration scenario
&lt;/h2&gt;

&lt;p&gt;Let's say you're already on Neo4j and you're evaluating whether to move to a unified engine. Here's the honest assessment:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;If your graph is well under 100M nodes and you have light vector volume:&lt;/strong&gt; the unified engine usually pays back inside a quarter. The sync code you can delete is bigger than the migration cost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If your graph is large and graph-native (deep traversals, complex algorithms, GDS dependency):&lt;/strong&gt; stay on Neo4j. Add a vector DB. The unified engine isn't worth the migration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you're net-new and the requirements include both layers:&lt;/strong&gt; start unified. Adopt Neo4j if and when the graph workload outgrows the unified engine.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The same advice in one line: &lt;strong&gt;migrate when the sync tax exceeds the migration cost.&lt;/strong&gt; Don't migrate for ideology.&lt;/p&gt;

&lt;h2&gt;
  
  
  How GraphRAG-the-pattern translates between the two
&lt;/h2&gt;

&lt;p&gt;Just to be concrete: the GraphRAG pattern itself is portable. You can implement it on either side. The architectural choice is about &lt;em&gt;the operational shape of the implementation&lt;/em&gt;, not about whether GraphRAG is possible.&lt;/p&gt;

&lt;p&gt;On Neo4j (dual-store):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;seeds&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;vector_db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;embed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;subgraph&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;neo4j&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"MATCH (n) WHERE n.id IN $ids MATCH (n)-[*1..2]-(m) RETURN ..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ids&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;seeds&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;answer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;llm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;complete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;subgraph&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On a unified engine (SynapCores), the similarity hop and the traversal are one Cypher statement:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cypher"&gt;&lt;code&gt;&lt;span class="k"&gt;MATCH&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nc"&gt;KbDoc&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"DOC-101"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;SIMILAR_TO&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mf"&gt;0.8&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nc"&gt;KbDoc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;MATCH&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;COVERS&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nc"&gt;KbSystem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;OWNED_BY&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;team&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nc"&gt;KbTeam&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;RETURN&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;team&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same pattern. Different operational story.&lt;/p&gt;

&lt;h3&gt;
  
  
  Want the guided version?
&lt;/h3&gt;

&lt;p&gt;If you'd rather follow a step-by-step build than read pseudocode, we put&lt;br&gt;
together &lt;a href="https://synapcores.com/build-agents" rel="noopener noreferrer"&gt;Build AI Agents with SynapCores&lt;/a&gt; — a runnable&lt;br&gt;
tutorial that goes from importing data, to your first agent in Python, to&lt;br&gt;
your first agent in Node.js, to wiring in exactly this GraphRAG pattern, to&lt;br&gt;
shipping a durable production agent with &lt;code&gt;CREATE AGENT&lt;/code&gt;. Every step runs on&lt;br&gt;
the free Community Edition.&lt;/p&gt;

&lt;h3&gt;
  
  
  Run these GraphRAG patterns yourself
&lt;/h3&gt;

&lt;p&gt;Each is a copy-paste recipe you can run on the free Community Edition:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/recipes/graph/016_graphrag_qna" rel="noopener noreferrer"&gt;GraphRAG: hybrid vector + graph multi-hop Q&amp;amp;A&lt;/a&gt; — the pattern above, end to end&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/recipes/graph/013_money_laundering" rel="noopener noreferrer"&gt;Multi-hop money-laundering layering detection&lt;/a&gt; — graph traversal for AML&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/recipes/graph/030_meeting_minutes_kg" rel="noopener noreferrer"&gt;Knowledge graph from meeting minutes&lt;/a&gt; — build the graph from raw text&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/recipes/graph/007_supply_chain_impact" rel="noopener noreferrer"&gt;Supply-chain blast radius of a vendor failure&lt;/a&gt; — impact analysis over relationships&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The "GraphRAG vs Neo4j" how-to cluster
&lt;/h3&gt;

&lt;p&gt;If you're weighing the two architectures in this post, these five certified how-to&lt;br&gt;
guides make it concrete. Each builds a real GraphRAG use case on a unified engine&lt;br&gt;
with a single &lt;code&gt;[:SIMILAR_TO]&lt;/code&gt; semantic hop plus &lt;code&gt;llm_score&lt;/code&gt; inline ranking — and&lt;br&gt;
shows, side by side, what the &lt;em&gt;same&lt;/em&gt; capability costs on a Neo4j + vector-DB stack&lt;br&gt;
(four systems and a sync job). All run on the free Community Edition:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/recipes/graph/graphrag-vs-neo4j-knowledge-base" rel="noopener noreferrer"&gt;GraphRAG vs Neo4j: a knowledge base that answers multi-hop questions&lt;/a&gt; — &lt;strong&gt;start here&lt;/strong&gt;, the core pattern end to end&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/recipes/graph/graphrag-vs-neo4j-fraud-ring-detection" rel="noopener noreferrer"&gt;Fraud-ring detection across accounts, devices, and behavior&lt;/a&gt; — catch collusion single-account rules miss&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/recipes/graph/graphrag-vs-neo4j-supply-chain-impact" rel="noopener noreferrer"&gt;Supply-chain impact analysis and part substitution&lt;/a&gt; — "what breaks if this supplier fails, and what substitutes?"&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/recipes/graph/graphrag-vs-neo4j-customer-360-qa" rel="noopener noreferrer"&gt;A customer-360 knowledge graph that recommends the next action&lt;/a&gt; — account context + similar resolved cases&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/recipes/graph/graphrag-vs-neo4j-product-recommendations" rel="noopener noreferrer"&gt;Product recommendations that blend co-purchase and semantics&lt;/a&gt; — cold-start cross-sell in one query&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  GraphRAG alternatives in 2026
&lt;/h2&gt;

&lt;p&gt;"GraphRAG" covers several different tools. They split into libraries that build and query a knowledge graph on top of a store you choose, and databases that store and traverse it. A short map:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;What it is&lt;/th&gt;
&lt;th&gt;Where the graph and vectors live&lt;/th&gt;
&lt;th&gt;Pick it when&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Microsoft GraphRAG&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Open-source library (MIT). An LLM extracts entities and relationships, groups them into communities and writes community summaries&lt;/td&gt;
&lt;td&gt;Files or a store you configure&lt;/td&gt;
&lt;td&gt;You want global, summary-style answers over a large document set&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;LightRAG&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Open-source library (MIT) for graph-based RAG with a lighter indexing pipeline&lt;/td&gt;
&lt;td&gt;Pluggable storage, including Neo4j, PostgreSQL, MongoDB and OpenSearch&lt;/td&gt;
&lt;td&gt;You want a simpler, cheaper-to-index GraphRAG pipeline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;LlamaIndex PropertyGraphIndex&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Framework index that extracts a property graph from chunks and retrieves paths plus source text&lt;/td&gt;
&lt;td&gt;A graph store and an optional vector store&lt;/td&gt;
&lt;td&gt;Your app is already built on LlamaIndex&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Neo4j + &lt;code&gt;neo4j-graphrag&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Official Neo4j package: KG builder, retrievers and a GraphRAG class (Apache 2.0)&lt;/td&gt;
&lt;td&gt;Neo4j (graph + vector index), or vectors in Weaviate, Pinecone or Qdrant&lt;/td&gt;
&lt;td&gt;You run Neo4j or want the largest graph ecosystem&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;FalkorDB GraphRAG-SDK&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;FalkorDB's open-source SDK (Apache 2.0) for building and querying knowledge graphs&lt;/td&gt;
&lt;td&gt;FalkorDB&lt;/td&gt;
&lt;td&gt;You want low-latency, in-memory graphs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;SynapCores&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;One self-hosted engine with SQL, Cypher, HNSW vector search and LLM functions&lt;/td&gt;
&lt;td&gt;One engine: the vector hop and the traversal run in one Cypher statement&lt;/td&gt;
&lt;td&gt;You want GraphRAG without a separate graph, vector and relational store to sync&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The libraries and the databases combine: you can run Microsoft GraphRAG or LightRAG and load the graph into a database to query it. If you are weighing graph databases for this rather than libraries, see &lt;a href="https://synapcores.com/compare/redisgraph-vs-neo4j" rel="noopener noreferrer"&gt;how FalkorDB and Neo4j compare for GenAI and vector search&lt;/a&gt; and &lt;a href="https://synapcores.com/compare/tigergraph-vs-neo4j" rel="noopener noreferrer"&gt;how TigerGraph and Neo4j compare for GenAI and knowledge graphs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  GraphRAG vs Neo4j: FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is GraphRAG better than Neo4j?&lt;/strong&gt;&lt;br&gt;
They are not alternatives. GraphRAG is a retrieval pattern: find entry points by vector similarity, then walk relationships to collect connected context for an LLM. Neo4j is a graph database you can use to store and traverse that graph. The real choice is where GraphRAG runs: on Neo4j plus a separate vector and relational stack, or on one engine that holds vectors, graph, and SQL together.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use GraphRAG with Neo4j?&lt;/strong&gt;&lt;br&gt;
Yes. Neo4j is one of the most common backends for GraphRAG: it stores the knowledge graph, and its vector indexes or an external vector database supply the similarity step. The trade-off is operational: you typically also run a relational system of record and an embedding pipeline, and keep them in sync with the graph.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the difference between Microsoft GraphRAG and Neo4j?&lt;/strong&gt;&lt;br&gt;
Microsoft GraphRAG is an open-source library that uses an LLM to extract entities and relationships from documents, groups them into communities, and summarizes them for retrieval. Neo4j is a database. You can load the graph a library like Microsoft GraphRAG produces into Neo4j (or another graph-capable engine) to query and traverse it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Neo4j GraphRAG?&lt;/strong&gt;&lt;br&gt;
Neo4j GraphRAG usually refers to neo4j-graphrag, Neo4j's official Python package (Apache 2.0). It builds a knowledge graph from documents with an LLM, retrieves context with vector, hybrid, vector-plus-Cypher or text-to-Cypher retrievers, and passes it to an LLM through a GraphRAG class. The graph and the vector index live in Neo4j; the embedding model and the LLM run outside it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need a graph database for GraphRAG?&lt;/strong&gt;&lt;br&gt;
You need graph traversal, not necessarily a separate graph database. Any engine that can store typed relationships and walk them in the same query as vector similarity can run GraphRAG; a unified engine avoids keeping a graph store, a vector store, and a relational store in sync.&lt;/p&gt;

&lt;h2&gt;
  
  
  Comparing Neo4j with other graph databases?
&lt;/h2&gt;

&lt;p&gt;If you're choosing a graph database rather than a retrieval pattern, these head-to-head comparisons cover the usual shortlist:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/compare/dgraph-vs-neo4j" rel="noopener noreferrer"&gt;The full Dgraph comparison&lt;/a&gt;: distributed and GraphQL-native, against the mature Cypher standard&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/compare/oracle-graph-vs-neo4j" rel="noopener noreferrer"&gt;Oracle vs Neo4j, the full Oracle Graph comparison&lt;/a&gt;: graph queries inside an existing Oracle Database, against a purpose-built graph database&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/compare/tigergraph-vs-neo4j" rel="noopener noreferrer"&gt;The full TigerGraph comparison&lt;/a&gt;: GSQL, scale-out analytics and GenAI support&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/compare/redisgraph-vs-neo4j" rel="noopener noreferrer"&gt;The full FalkorDB comparison&lt;/a&gt;: low-latency agent memory, and what happened to RedisGraph&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/compare/pgvector-vs-neo4j" rel="noopener noreferrer"&gt;Whether you need Neo4j or PostgreSQL with pgvector&lt;/a&gt;, and &lt;a href="https://synapcores.com/compare/pinecone-vs-neo4j" rel="noopener noreferrer"&gt;choosing between Pinecone vector search and Neo4j graph traversal&lt;/a&gt;: when you need vectors, graph, or both&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://synapcores.com/blog/graphrag-vs-neo4j" rel="noopener noreferrer"&gt;synapcores.com&lt;/a&gt; — SynapCores is a free, single-binary AI-native database (vector + graph + SQL + LLM).&lt;/em&gt;&lt;/p&gt;

</description>
      <category>graphrag</category>
      <category>neo4j</category>
      <category>ai</category>
      <category>database</category>
    </item>
    <item>
      <title>9 Best AI-Native Databases for AI Agents &amp; Apps (2026)</title>
      <dc:creator>Luis M</dc:creator>
      <pubDate>Sun, 11 Oct 2026 01:40:42 +0000</pubDate>
      <link>https://dev.to/synapcores/best-ai-native-databases-in-2026-9-options-compared-3opn</link>
      <guid>https://dev.to/synapcores/best-ai-native-databases-in-2026-9-options-compared-3opn</guid>
      <description>&lt;p&gt;&lt;strong&gt;Pick by situation&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;If you need&lt;/th&gt;
&lt;th&gt;Pick&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AI-ready app platform: transactional data + vector search for agents&lt;/td&gt;
&lt;td&gt;PostgreSQL + pgvector; SynapCores when one engine must mix vector, graph, SQL and ML&lt;/td&gt;
&lt;td&gt;Postgres gives you mature transactions, every driver and ORM, and vectors in a column. SynapCores adds &lt;code&gt;EMBED()&lt;/code&gt; similarity search with SQL filters, Cypher-style graph traversal and in-database models (&lt;code&gt;ANOMALY_SCORE&lt;/code&gt;) to the same engine, so there is no separate vector store, graph DB or model server. &lt;a href="https://synapcores.com/compare/pgvector-vs-neo4j" rel="noopener noreferrer"&gt;pgvector vs Neo4j, and when you need both →&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Postgres alternative for agents with high write concurrency&lt;/td&gt;
&lt;td&gt;Stay on PostgreSQL (distributed Postgres-compatible if you outgrow one node)&lt;/td&gt;
&lt;td&gt;Many agents writing at once is a transaction-engine problem, and Postgres is the proven answer; Postgres-compatible products let you scale out, so test extensions and isolation under your real load. &lt;a href="https://synapcores.com/blog/ai-native-database-vs-postgresql" rel="noopener noreferrer"&gt;Native Postgres vs Postgres-compatible →&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cheapest self-hosted graph database for AI agents&lt;/td&gt;
&lt;td&gt;Apache AGE on your Postgres; Neo4j Community if graph is the product&lt;/td&gt;
&lt;td&gt;AGE (Apache-2.0) adds openCypher to the Postgres you already run. Neo4j Community (GPLv3) is free with the largest graph ecosystem. If the agent also needs vector search over the same data, SynapCores Community Edition (free to use, not open source) runs graph, vectors and SQL in one binary. &lt;a href="https://synapcores.com/compare/neo4j-vs-postgresql" rel="noopener noreferrer"&gt;Graph in PostgreSQL vs Neo4j →&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best agent tooling (MCP / LangChain)&lt;/td&gt;
&lt;td&gt;PostgreSQL + pgvector for breadth; SynapCores for MCP built into the database&lt;/td&gt;
&lt;td&gt;Postgres has first-party LangChain packages and many MCP servers. SynapCores serves MCP from the engine (&lt;code&gt;/v1/mcp&lt;/code&gt;, nothing to install): Claude Code can list tables, run SQL with meaning search and query the graph, under the same key permissions as REST. &lt;a href="https://synapcores.com/blog/ai-native-database-for-agentic-systems" rel="noopener noreferrer"&gt;What an agent needs from its database →&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Start small, scale without a migration&lt;/td&gt;
&lt;td&gt;An open-source engine that runs the same on a laptop and in production&lt;/td&gt;
&lt;td&gt;PostgreSQL + pgvector, Qdrant, Milvus and Weaviate run the same code everywhere. Managed-only services keep you on their meter. SynapCores Community is one free self-hosted binary for macOS, Linux and Docker, from laptop to server. &lt;a href="https://synapcores.com/learn/ai-native-databases" rel="noopener noreferrer"&gt;What an AI-native database is →&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flk632owdxvzwiidxflhr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flk632owdxvzwiidxflhr.png" alt="One engine: vector, graph, SQL, AutoML and LLM in a single SynapCores binary" width="800" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The pick-by-situation table above is the short version. The rest of this page explains the categories, scores all nine against seven criteria, and lists the price and licence of each.&lt;/p&gt;

&lt;p&gt;"Best AI-native database" is a search people type with a specific anxiety behind it: the category is new, the marketing is loud, and almost everything claims to be AI-native whether or not the architecture earns the label. This page gives you the short answer first — a shortlist of the nine databases worth evaluating in 2026 and what each is best for — and then the criteria that separate a genuinely AI-native engine from a traditional database wearing the label, so you can decide for your own workload.&lt;/p&gt;

&lt;p&gt;I will be upfront that SynapCores is our engine, so treat that entry accordingly. The criteria, though, are the ones I would give a friend with no stake in the answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is an AI-native database?
&lt;/h2&gt;

&lt;p&gt;An &lt;strong&gt;AI-native database&lt;/strong&gt; is a database where the data models AI applications need — &lt;strong&gt;vectors, graphs, and relational rows&lt;/strong&gt; — and &lt;strong&gt;model inference&lt;/strong&gt; (embeddings, predictions, LLM calls) live inside one engine and one query plan, instead of being spread across a relational database, a vector store, a graph database, and a model server glued together with sync jobs. A database that only "added a vector column" is AI-ready, not AI-native. For a plain-language primer, see &lt;a href="https://synapcores.com/learn/ai-native-databases" rel="noopener noreferrer"&gt;what an AI-native database is (and 9 problems it solves)&lt;/a&gt;. For evaluating a platform for large-scale AI workloads, see &lt;a href="https://synapcores.com/blog/ai-native-database-guide" rel="noopener noreferrer"&gt;the guide to AI-powered database software for large-scale AI workloads&lt;/a&gt;; for how the engine is built, see &lt;a href="https://synapcores.com/blog/ai-native-database-architecture" rel="noopener noreferrer"&gt;AI-native database architecture&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shortlist: best AI-native databases in 2026
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Database&lt;/th&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;th&gt;Vector&lt;/th&gt;
&lt;th&gt;Graph&lt;/th&gt;
&lt;th&gt;SQL&lt;/th&gt;
&lt;th&gt;In-database ML&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;SynapCores&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Unified AI-native engine&lt;/td&gt;
&lt;td&gt;One self-hosted engine for vector + graph + SQL + ML, agent memory, MCP&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;td&gt;Native (AutoML, &lt;code&gt;EMBED()&lt;/code&gt;, &lt;code&gt;PREDICT()&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;PostgreSQL + pgvector&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Relational + extension&lt;/td&gt;
&lt;td&gt;AI as a feature inside an existing Postgres app&lt;/td&gt;
&lt;td&gt;Extension&lt;/td&gt;
&lt;td&gt;Add-on&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;td&gt;External&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Neo4j&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Graph database&lt;/td&gt;
&lt;td&gt;Graph-centric problems, knowledge graphs&lt;/td&gt;
&lt;td&gt;Secondary&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;td&gt;Cypher&lt;/td&gt;
&lt;td&gt;Limited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Pinecone&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Managed vector database&lt;/td&gt;
&lt;td&gt;Fully managed vector search at scale&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Weaviate&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Vector database&lt;/td&gt;
&lt;td&gt;Open-source vector search with hybrid (keyword + vector) search&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Via modules&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Qdrant&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Vector database&lt;/td&gt;
&lt;td&gt;Fast, filter-heavy vector search, self-hosted or cloud&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Milvus&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Vector database&lt;/td&gt;
&lt;td&gt;Very large-scale vector collections&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;MongoDB Atlas Vector Search&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Document DB + vectors&lt;/td&gt;
&lt;td&gt;Teams already on MongoDB&lt;/td&gt;
&lt;td&gt;Integrated&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;External&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Snowflake (Cortex)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Cloud warehouse + AI functions&lt;/td&gt;
&lt;td&gt;AI over historical analytics data&lt;/td&gt;
&lt;td&gt;Analytical&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;td&gt;Functions&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Try SynapCores without installing it.&lt;/strong&gt; The &lt;a href="https://synapcores.com/playground" rel="noopener noreferrer"&gt;Playground&lt;/a&gt; runs real queries in your browser against a live engine: score 123 payments with an in-database anomaly model (&lt;code&gt;ANOMALY_SCORE&lt;/code&gt; inside a &lt;code&gt;SELECT&lt;/code&gt;), walk the account/device/card graph with Cypher to find the fraud ring the model misses, then search case notes by meaning with &lt;code&gt;EMBED&lt;/code&gt;. &lt;strong&gt;&lt;a href="https://synapcores.com/playground" rel="noopener noreferrer"&gt;Try it in the Playground →&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick answer — what is the best database for AI-native application development?&lt;/strong&gt; If your hardest queries combine similarity search, relationships, filters, and predictions, a &lt;strong&gt;unified AI-native engine&lt;/strong&gt; such as SynapCores is the lowest-glue option, because one engine answers them in one query. If vector search alone is your whole problem, a dedicated vector database (Pinecone, Qdrant, Weaviate, Milvus) is the right specialist. If AI is a small feature on an existing transactional app, PostgreSQL + pgvector is the pragmatic choice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SynapCores&lt;/strong&gt; unifies vector, graph, SQL, and in-database AutoML in a &lt;strong&gt;single self-hosted binary&lt;/strong&gt;, with native &lt;strong&gt;MCP&lt;/strong&gt; support and an &lt;strong&gt;OpenClaw long-term-memory&lt;/strong&gt; plugin. The Community Edition is &lt;strong&gt;free&lt;/strong&gt; for macOS, Linux, and Docker. &lt;strong&gt;&lt;a href="https://synapcores.com/download" rel="noopener noreferrer"&gt;Download the free Community Edition →&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  All-in-one database for AI applications
&lt;/h2&gt;

&lt;p&gt;An all-in-one database for AI applications keeps relational rows, vector embeddings, graph relationships and model calls in one engine, so one query can filter, rank by similarity and walk relationships with no sync job between stores. SynapCores does this in one self-hosted binary: SQL tables, &lt;code&gt;EMBED()&lt;/code&gt; with vector similarity, Cypher graph queries, AutoML training (&lt;code&gt;CREATE EXPERIMENT&lt;/code&gt;) and agent memory run in the same engine. On PostgreSQL you assemble it from extensions instead: &lt;a href="https://github.com/pgvector/pgvector" rel="noopener noreferrer"&gt;pgvector&lt;/a&gt; for vector similarity search and &lt;a href="https://age.apache.org/" rel="noopener noreferrer"&gt;Apache AGE&lt;/a&gt; for graph queries. How the single engine is built: &lt;a href="https://synapcores.com/blog/ai-native-database-architecture" rel="noopener noreferrer"&gt;vector, graph and relational in one engine&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best database for AI agent memory
&lt;/h2&gt;

&lt;p&gt;An agent's memory has to answer two questions: what is true now about this user, and what happened before. SynapCores answers both in SQL: &lt;code&gt;REMEMBER&lt;/code&gt; stores an episode and the facts it states, &lt;code&gt;CURRENT&lt;/code&gt; returns the current value of an attribute (or &lt;code&gt;not_found&lt;/code&gt; when nothing is recorded), &lt;code&gt;RECALL&lt;/code&gt; assembles current state, facts and episodes for the prompt, and &lt;code&gt;TRACE&lt;/code&gt; shows which episode a value came from; you run them through &lt;code&gt;/v1/query/execute&lt;/code&gt; or over REST at &lt;code&gt;/v1/memory/*&lt;/code&gt;. If you would rather not run anything, Mem0 Platform is a managed memory layer that extracts facts from conversations and runs the vector store for you (&lt;a href="https://docs.mem0.ai/platform/overview" rel="noopener noreferrer"&gt;Mem0 docs&lt;/a&gt;). The full walk-through, with runnable SQL: &lt;a href="https://synapcores.com/learn/ai-agents/ai-agent-memory" rel="noopener noreferrer"&gt;AI agent memory: types, architecture and how to build it&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI agent platform with a native database and backend
&lt;/h2&gt;

&lt;p&gt;SynapCores puts the agent next to its data: &lt;code&gt;CREATE AGENT&lt;/code&gt; defines the agent in SQL and binds it to a memory object (&lt;code&gt;WITH (memory_object = ...)&lt;/code&gt;), in the same engine that holds the tables, vectors and graph it works on, and the same server exposes a REST API, the MySQL wire protocol and role-bound API keys. If you need a full application backend with end-user sign-in, file storage and edge functions, Supabase documents a Postgres platform with &lt;a href="https://supabase.com/docs" rel="noopener noreferrer"&gt;Auth, Storage, Realtime and Edge Functions&lt;/a&gt;, and &lt;a href="https://supabase.com/docs/guides/ai" rel="noopener noreferrer"&gt;vector search through pgvector&lt;/a&gt;. How one engine serves an agent's memory, tools and state: &lt;a href="https://synapcores.com/blog/ai-native-database-for-agentic-systems" rel="noopener noreferrer"&gt;AI-native database for agentic systems&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best transactional database for AI agent applications
&lt;/h2&gt;

&lt;p&gt;If your agents mostly do transactional work, with many of them writing the same tables at once, a dedicated OLTP database is the better fit: PostgreSQL offers &lt;a href="https://www.postgresql.org/docs/current/transaction-iso.html" rel="noopener noreferrer"&gt;Read Committed, Repeatable Read and Serializable isolation&lt;/a&gt;, and &lt;a href="https://github.com/pgvector/pgvector" rel="noopener noreferrer"&gt;pgvector&lt;/a&gt; keeps vector search next to Postgres's ACID compliance, point-in-time recovery and JOINs. SynapCores fits when the agent's state and its AI data belong in one engine: multi-statement SQL transactions commit or roll back table rows together with their stored embeddings, in the same engine that runs vector search, graph queries, in-database ML and agent memory. On v2.5.1, run &lt;code&gt;EMBED()&lt;/code&gt;, model and memory calls before or after an explicit transaction, and build retries into the agent's write path: concurrent writes to the same table under repeatable read, and an &lt;code&gt;INSERT&lt;/code&gt; and an &lt;code&gt;UPDATE&lt;/code&gt; that run at the same time on a table with foreign keys or &lt;code&gt;UNIQUE&lt;/code&gt; constraints, can return the retryable SQLSTATE &lt;code&gt;40001&lt;/code&gt;. &lt;strong&gt;&lt;a href="https://synapcores.com/download" rel="noopener noreferrer"&gt;Download the free Community Edition →&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Production-ready database for AI features
&lt;/h2&gt;

&lt;p&gt;Whether SynapCores is production-ready for your AI features depends on the edition. The free Community Edition runs SQL tables, vector search with &lt;code&gt;EMBED()&lt;/code&gt;, graph queries, in-database ML and agent memory in one self-hosted engine, with multi-statement SQL transactions and role-bound API keys. Enterprise Edition adds cluster mode (replication and failover), scheduled backups with point-in-time recovery, encryption at rest, SSO and row- and column-level access policies (&lt;a href="https://docs.synapcores.com/enterprise" rel="noopener noreferrer"&gt;Community vs Enterprise&lt;/a&gt;). Test your workload on the Community Edition first: &lt;a href="https://synapcores.com/docs/quickstart" rel="noopener noreferrer"&gt;the quickstart&lt;/a&gt; goes from one install command to a first query.&lt;/p&gt;

&lt;h2&gt;
  
  
  What "AI-native" actually has to mean (and what it doesn't)
&lt;/h2&gt;

&lt;p&gt;The label gets diluted because "we added a vector column" is enough for some vendors to claim it. A useful definition is stricter. An AI-native database treats the data models AI workloads need — vectors, graphs, and relational data — as first-class citizens in one engine, and brings model inference inside the database rather than shipping data out to it. We make the negative case in detail in &lt;a href="https://synapcores.com/blog/why-vector-databases-are-not-ai-native-databases" rel="noopener noreferrer"&gt;Why Vector Databases Are Not AI-Native Databases&lt;/a&gt;; the short version is that a single capability, however good, is not the same as an AI-native architecture.&lt;/p&gt;

&lt;h2&gt;
  
  
  The seven criteria that matter
&lt;/h2&gt;

&lt;p&gt;When you evaluate any candidate, score it honestly against these:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Unified data models.&lt;/strong&gt; Does it hold vectors, graph, and relational data in one engine, or are you assembling separate stores? One engine means one consistency boundary instead of sync jobs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Native vector search.&lt;/strong&gt; Is approximate-nearest-neighbor indexing (typically &lt;a href="https://synapcores.com/blog/hnsw-explained" rel="noopener noreferrer"&gt;HNSW&lt;/a&gt;) built into the storage and visible to the query planner, or bolted on as an extension?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In-database ML.&lt;/strong&gt; Can it train and run models where the data lives — &lt;code&gt;EMBED()&lt;/code&gt;, &lt;code&gt;PREDICT()&lt;/code&gt;, AutoML — or does every prediction require an external pipeline? See &lt;a href="https://synapcores.com/blog/in-database-ml-vs-external-ml-pipelines" rel="noopener noreferrer"&gt;In-Database ML vs External ML Pipelines&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graph traversal for GraphRAG.&lt;/strong&gt; Can it walk typed relationships natively, so &lt;a href="https://synapcores.com/blog/what-is-graphrag" rel="noopener noreferrer"&gt;GraphRAG&lt;/a&gt; runs in one engine rather than a dual-store setup?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent and LLM integration.&lt;/strong&gt; Does it speak a standard like &lt;strong&gt;MCP&lt;/strong&gt; so agents can use it as a tool directly, and does it offer durable memory for agentic systems?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment and data control.&lt;/strong&gt; Can you self-host on your own hardware, or are you locked into a managed cloud with consumption pricing? This drives both cost and compliance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Operational simplicity.&lt;/strong&gt; How many systems do you actually run in production to deliver the feature — one binary, or five services plus glue?&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The landscape, grouped honestly
&lt;/h2&gt;

&lt;p&gt;The field sorts into a few categories, and naming the categories is more useful than a leaderboard.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dedicated vector databases&lt;/strong&gt; — Pinecone, Weaviate, Qdrant, Chroma, Milvus. Excellent at one thing: high-recall similarity search at scale. They are the right tool when vector search genuinely is your whole problem. They are not AI-native databases by the strict definition, because graph, relational, and in-database ML are out of scope, and you assemble the rest of the stack around them. See &lt;a href="https://synapcores.com/blog/vector-database" rel="noopener noreferrer"&gt;What Is a Vector Database?&lt;/a&gt; for where they fit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Relational databases with AI extensions&lt;/strong&gt; — PostgreSQL + pgvector, and similar. The pragmatic choice when AI is a feature at the edge of a transactional app. The cost shows up as you add capabilities and rebuild a multi-store stack one extension at a time, covered in &lt;a href="https://synapcores.com/blog/ai-native-database-vs-postgresql" rel="noopener noreferrer"&gt;AI-Native Database vs PostgreSQL&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Graph databases adding vectors&lt;/strong&gt; — Neo4j and peers. Superb for graph-centric problems; the vector and ML sides are secondary, so AI workloads needing more than graph end up dual-store. See &lt;a href="https://synapcores.com/blog/ai-native-database-vs-neo4j" rel="noopener noreferrer"&gt;AI-Native Database vs Neo4j&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cloud warehouses with AI functions&lt;/strong&gt; — Snowflake, BigQuery and similar. Built for analytics over historical data, not low-latency operational AI in the request path. The distinction is in &lt;a href="https://synapcores.com/blog/ai-native-database-vs-snowflake" rel="noopener noreferrer"&gt;AI-Native Database vs Snowflake&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unified AI-native engines&lt;/strong&gt; — the smallest and newest category, where vector, graph, relational, and in-database ML genuinely share one engine. SynapCores sits here. The trade-off is honest: a unified engine does not match a specialist's depth on that specialist's single axis, but it removes the multi-store assembly problem entirely.&lt;/p&gt;

&lt;h2&gt;
  
  
  A scoring table to copy
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Criterion&lt;/th&gt;
&lt;th&gt;Vector DB&lt;/th&gt;
&lt;th&gt;Postgres + ext&lt;/th&gt;
&lt;th&gt;Graph DB&lt;/th&gt;
&lt;th&gt;Cloud warehouse&lt;/th&gt;
&lt;th&gt;Unified AI-native&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Unified data models&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Partial (glue)&lt;/td&gt;
&lt;td&gt;Partial&lt;/td&gt;
&lt;td&gt;Partial&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Native vector search&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Extension&lt;/td&gt;
&lt;td&gt;Secondary&lt;/td&gt;
&lt;td&gt;Analytical&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;In-database ML&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;External&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Functions&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Graph for GraphRAG&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Add-on&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent / MCP integration&lt;/td&gt;
&lt;td&gt;Varies&lt;/td&gt;
&lt;td&gt;Manual&lt;/td&gt;
&lt;td&gt;Manual&lt;/td&gt;
&lt;td&gt;Manual&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-host / data control&lt;/td&gt;
&lt;td&gt;Varies&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Systems to operate&lt;/td&gt;
&lt;td&gt;1 of many&lt;/td&gt;
&lt;td&gt;3–5+&lt;/td&gt;
&lt;td&gt;2+&lt;/td&gt;
&lt;td&gt;1 (cloud)&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Pricing, licensing &amp;amp; starting small
&lt;/h2&gt;

&lt;p&gt;Capabilities are only half the decision. The other half is what it costs to try, what licence you are accepting, and whether the free tier is the same product you will run in production. The prices below are the entry points listed on each vendor's public pricing or licence page as of October 26, 2026. They change often, so follow the link before you budget, and treat "see vendor" as "not published as a single number".&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Database&lt;/th&gt;
&lt;th&gt;Licence (self-hosted)&lt;/th&gt;
&lt;th&gt;Free way to start&lt;/th&gt;
&lt;th&gt;Paid entry point (managed or commercial)&lt;/th&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;SynapCores&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Community Edition is free to use under the SynapCores Community Edition License (not open source)&lt;/td&gt;
&lt;td&gt;Community Edition: single self-hosted binary for macOS, Linux and Docker&lt;/td&gt;
&lt;td&gt;Enterprise Edition (Raft clustering, CDC inbound, fine-grained RBAC, SSO, encryption at rest) and paid support for CE: see vendor&lt;/td&gt;
&lt;td&gt;&lt;a href="https://synapcores.com/download" rel="noopener noreferrer"&gt;Download&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;PostgreSQL + pgvector&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;PostgreSQL License for both (permissive, BSD/MIT-like)&lt;/td&gt;
&lt;td&gt;Self-host for free&lt;/td&gt;
&lt;td&gt;Managed Postgres is sold by many providers: see vendor&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://www.postgresql.org/about/licence/" rel="noopener noreferrer"&gt;PostgreSQL licence&lt;/a&gt;, &lt;a href="https://github.com/pgvector/pgvector/blob/master/LICENSE" rel="noopener noreferrer"&gt;pgvector licence&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Neo4j&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;GPL v3 for the open-source code; commercial licence for Enterprise&lt;/td&gt;
&lt;td&gt;AuraDB Free ($0, no credit card) or self-hosted Community&lt;/td&gt;
&lt;td&gt;AuraDB Professional from $0.09/GB/hour (1 GB minimum); Business Critical from $0.20/GB/hour (2 GB minimum)&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://neo4j.com/pricing/" rel="noopener noreferrer"&gt;Neo4j pricing&lt;/a&gt;, &lt;a href="https://github.com/neo4j/neo4j/blob/dev/LICENSE.txt" rel="noopener noreferrer"&gt;Neo4j licence&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Pinecone&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Managed service only (BYOC runs it in your own cloud account)&lt;/td&gt;
&lt;td&gt;Starter plan: free&lt;/td&gt;
&lt;td&gt;Builder $20/month flat; Standard $50/month minimum usage; Enterprise $500/month minimum usage&lt;/td&gt;
&lt;td&gt;&lt;a href="https://www.pinecone.io/pricing/" rel="noopener noreferrer"&gt;Pinecone pricing&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Weaviate&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;BSD-3-Clause, except enterprise features under a separate Weaviate licence&lt;/td&gt;
&lt;td&gt;Self-host, or Weaviate Cloud Free (100,000 objects)&lt;/td&gt;
&lt;td&gt;Flex from $45/month pay-as-you-go; Premium is a prepaid contract (minimum from $400/month)&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://weaviate.io/pricing" rel="noopener noreferrer"&gt;Weaviate pricing&lt;/a&gt;, &lt;a href="https://github.com/weaviate/weaviate/blob/main/LICENSE" rel="noopener noreferrer"&gt;Weaviate licence&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Qdrant&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Apache 2.0&lt;/td&gt;
&lt;td&gt;Self-host, or Qdrant Cloud Free Tier (1 GB RAM, 4 GB disk)&lt;/td&gt;
&lt;td&gt;Standard is usage-based (vCPU, memory, storage); Premium has a minimum spend: see vendor&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://qdrant.tech/pricing/" rel="noopener noreferrer"&gt;Qdrant pricing&lt;/a&gt;, &lt;a href="https://github.com/qdrant/qdrant/blob/master/LICENSE" rel="noopener noreferrer"&gt;Qdrant licence&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Milvus&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Apache 2.0&lt;/td&gt;
&lt;td&gt;Self-host, or Zilliz Cloud Free (5 GB storage)&lt;/td&gt;
&lt;td&gt;Zilliz Cloud (managed Milvus): Standard from $0/month serverless; Enterprise from $197/month dedicated&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://zilliz.com/pricing" rel="noopener noreferrer"&gt;Zilliz Cloud pricing&lt;/a&gt;, &lt;a href="https://github.com/milvus-io/milvus/blob/master/LICENSE" rel="noopener noreferrer"&gt;Milvus licence&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;MongoDB Atlas Vector Search&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Community Server under SSPL v1; Enterprise Advanced under a commercial licence&lt;/td&gt;
&lt;td&gt;Atlas Free cluster (M0, 512 MB)&lt;/td&gt;
&lt;td&gt;Flex clusters $8 to $30/month by usage; dedicated clusters from $0.08/hour (M10)&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://www.mongodb.com/pricing" rel="noopener noreferrer"&gt;MongoDB pricing&lt;/a&gt;, &lt;a href="https://github.com/mongodb/mongo/blob/master/LICENSE-Community.txt" rel="noopener noreferrer"&gt;MongoDB licence&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Snowflake (Cortex)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Managed service only&lt;/td&gt;
&lt;td&gt;See vendor&lt;/td&gt;
&lt;td&gt;Consumption-based (credits and storage) across Standard, Enterprise, Business Critical and Virtual Private editions: see vendor&lt;/td&gt;
&lt;td&gt;&lt;a href="https://www.snowflake.com/en/pricing-options/" rel="noopener noreferrer"&gt;Snowflake pricing&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Starting small without a migration later.&lt;/strong&gt; The question to ask of each free tier is whether production is the same engine with more resources, or a different system you will have to move to. Open-source engines (PostgreSQL + pgvector, Qdrant, Milvus, Weaviate) let you run the same code on a laptop and in production. Managed-only services (Pinecone, Snowflake) start free or cheap, but production means staying on their cloud and their meter. Neo4j and MongoDB sit in between: the open-source editions and free cloud tiers run the same database, and some enterprise features (for Neo4j, clustering) need a commercial edition or a paid tier. SynapCores Community Edition is a single self-hosted binary, and Enterprise Edition adds clustering and enterprise security when you need them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best AI database for cloud deployment
&lt;/h2&gt;

&lt;p&gt;If you want nothing to operate below the database, pick a managed service: Pinecone for vector search alone, Neo4j AuraDB for graph, MongoDB Atlas if you already run MongoDB, Snowflake Cortex for AI over warehouse data, or a hosted Postgres that includes pgvector. If the data has to stay in your own cloud account, run an engine that ships as a container on infrastructure you control, such as PostgreSQL + pgvector, Qdrant, Weaviate, Milvus, Neo4j or SynapCores. SynapCores runs vector search, graph, SQL and in-database ML in one container, so the AI data tier is one service instead of a vector store, a graph database and a sync job. Pinecone BYOC, Qdrant Hybrid Cloud and Zilliz BYOC sit in between: the vendor manages the software inside your account.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Database&lt;/th&gt;
&lt;th&gt;Managed option&lt;/th&gt;
&lt;th&gt;Self-hosted option&lt;/th&gt;
&lt;th&gt;What you operate&lt;/th&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;SynapCores&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Self-hosted: the Community Edition runs on your own infrastructure&lt;/td&gt;
&lt;td&gt;Docker image (&lt;code&gt;ghcr.io/synapcores/community&lt;/code&gt;, linux/amd64 and arm64) on any VM or container host, or the one-line installer (Linux systemd service, macOS)&lt;/td&gt;
&lt;td&gt;One service and its data volume. Enterprise Edition adds clustering, scheduled backups and point-in-time recovery&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://docs.synapcores.com/quickstart/" rel="noopener noreferrer"&gt;Quickstart&lt;/a&gt;, &lt;a href="https://docs.synapcores.com/enterprise/" rel="noopener noreferrer"&gt;CE vs EE&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;PostgreSQL + pgvector&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Many hosted Postgres providers include pgvector&lt;/td&gt;
&lt;td&gt;Extension on your own Postgres; official Docker image&lt;/td&gt;
&lt;td&gt;Self-hosted: Postgres and its backups. Managed: schema and indexes&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/pgvector/pgvector#hosted-postgres" rel="noopener noreferrer"&gt;pgvector README&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Neo4j&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;AuraDB on AWS, Google Cloud or Azure&lt;/td&gt;
&lt;td&gt;Linux packages, Docker, cloud deployments&lt;/td&gt;
&lt;td&gt;Managed: the database. Self-hosted: servers, backups and (Enterprise) clusters&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://neo4j.com/docs/aura/" rel="noopener noreferrer"&gt;Aura docs&lt;/a&gt;, &lt;a href="https://neo4j.com/docs/aura/managing-instances/regions/" rel="noopener noreferrer"&gt;Aura regions&lt;/a&gt;, &lt;a href="https://neo4j.com/docs/operations-manual/current/installation/" rel="noopener noreferrer"&gt;installation&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Pinecone&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Pinecone's managed cloud; BYOC runs the data plane in your AWS, GCP or Azure account&lt;/td&gt;
&lt;td&gt;No self-hosted edition&lt;/td&gt;
&lt;td&gt;Managed: indexes only. BYOC: the cloud account and VPC, while Pinecone handles upgrades and scaling&lt;/td&gt;
&lt;td&gt;&lt;a href="https://docs.pinecone.io/guides/production/bring-your-own-cloud" rel="noopener noreferrer"&gt;BYOC overview&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Weaviate&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Weaviate Cloud, also sold through AWS and GCP marketplaces&lt;/td&gt;
&lt;td&gt;Docker or Kubernetes (same database as the cloud service)&lt;/td&gt;
&lt;td&gt;Self-hosted: the Kubernetes or Docker deployment&lt;/td&gt;
&lt;td&gt;&lt;a href="https://docs.weaviate.io/deploy" rel="noopener noreferrer"&gt;Deploying Weaviate&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Qdrant&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Qdrant Cloud on AWS, GCP or Azure; Hybrid Cloud in your own Kubernetes cluster, managed through Qdrant Cloud&lt;/td&gt;
&lt;td&gt;Open source, self-hosted&lt;/td&gt;
&lt;td&gt;Managed: collections. Hybrid: the Kubernetes cluster&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://qdrant.tech/documentation/cloud/" rel="noopener noreferrer"&gt;Managed Cloud&lt;/a&gt;, &lt;a href="https://qdrant.tech/documentation/hybrid-cloud/" rel="noopener noreferrer"&gt;Hybrid Cloud&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Milvus&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Zilliz Cloud (Serverless, Dedicated, BYOC)&lt;/td&gt;
&lt;td&gt;Standalone on one machine, or distributed on Kubernetes&lt;/td&gt;
&lt;td&gt;Self-hosted distributed: a Kubernetes deployment of Milvus services&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/milvus-io/milvus#readme" rel="noopener noreferrer"&gt;Milvus README&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;MongoDB Atlas Vector Search&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Atlas on AWS, Google Cloud or Azure&lt;/td&gt;
&lt;td&gt;Local Atlas deployment (&lt;code&gt;atlas local&lt;/code&gt;) with Vector Search&lt;/td&gt;
&lt;td&gt;Managed: clusters and indexes&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://www.mongodb.com/docs/atlas/reference/cloud-providers/" rel="noopener noreferrer"&gt;Atlas cloud providers&lt;/a&gt;, &lt;a href="https://www.mongodb.com/docs/atlas/cli/current/atlas-cli-deploy-local/" rel="noopener noreferrer"&gt;local Atlas deployment&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Snowflake (Cortex)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Managed only; the account is hosted on AWS, Google Cloud or Azure&lt;/td&gt;
&lt;td&gt;No self-hosted edition&lt;/td&gt;
&lt;td&gt;Warehouses and credit usage&lt;/td&gt;
&lt;td&gt;&lt;a href="https://docs.snowflake.com/en/user-guide/intro-cloud-platforms" rel="noopener noreferrer"&gt;Supported cloud platforms&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;To run SynapCores in your own cloud, &lt;a href="https://synapcores.com/download" rel="noopener noreferrer"&gt;download the Community Edition&lt;/a&gt; or follow the &lt;a href="https://docs.synapcores.com/quickstart/#docker" rel="noopener noreferrer"&gt;Docker quickstart&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to actually pick
&lt;/h2&gt;

&lt;p&gt;Do not pick from a list — pick from your workload. Write down your two or three hardest queries, the ones that combine similarity, relationships, filters, and maybe a prediction. Score each candidate on how many separate systems it would take to answer them and how much glue you would own. If a specialist answers your whole problem, use the specialist. If your hardest queries cross data models, a unified AI-native engine is usually the lower-total-cost answer.&lt;/p&gt;

&lt;p&gt;The cheapest way to test the unified option is to run it. The free Community Edition installs with one command (or one &lt;code&gt;docker run&lt;/code&gt;) and lets you throw your real queries at one binary.&lt;/p&gt;

&lt;p&gt;Start from a working example — each is a runnable recipe:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/recipes/112_semantic_document_search" rel="noopener noreferrer"&gt;Semantic document search&lt;/a&gt; — vector search in plain SQL&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/recipes/graph/016_graphrag_qna" rel="noopener noreferrer"&gt;GraphRAG multi-hop Q&amp;amp;A&lt;/a&gt; — vector + graph in one query&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/recipes/anomaly-detection/001_credit_card_fraud_automl" rel="noopener noreferrer"&gt;Credit-card fraud detection with AutoML&lt;/a&gt; — train and predict in-database&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/recipes/agents/agentic-sales-account-research" rel="noopener noreferrer"&gt;Agentic sales account research&lt;/a&gt; — an agent with memory, in SQL&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What is the best database for AI-native application development?&lt;/strong&gt;&lt;br&gt;
For applications whose core queries mix similarity search, relationships, filters, and model predictions, a unified AI-native engine such as SynapCores is the lowest-glue choice, because one engine and one query plan answer them. If vector search alone is the whole problem, a dedicated vector database is the specialist pick; if AI is a small feature on an existing transactional app, PostgreSQL + pgvector is the pragmatic one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the best AI-native database in 2026?&lt;/strong&gt;&lt;br&gt;
It depends on how many data models your workload crosses. For workloads that combine vectors, graph relationships, relational filters, and in-database ML, a unified AI-native engine like SynapCores replaces a multi-store stack with one binary. For pure similarity search, a dedicated vector database (Pinecone, Qdrant, Weaviate, Milvus) is the specialist choice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is a vector database an AI-native database?&lt;/strong&gt;&lt;br&gt;
Not by the strict definition. A vector database is excellent at one capability — similarity search — but graph traversal, relational transactions, and in-database ML are out of scope. See &lt;a href="https://synapcores.com/blog/why-vector-databases-are-not-ai-native-databases" rel="noopener noreferrer"&gt;Why Vector Databases Are Not AI-Native Databases&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is PostgreSQL with pgvector AI-native?&lt;/strong&gt;&lt;br&gt;
It is AI-&lt;em&gt;ready&lt;/em&gt;: vectors are an extension on a relational core, and ML runs outside the database. That is often the right pragmatic choice; the trade-offs are in &lt;a href="https://synapcores.com/blog/ai-native-database-vs-postgresql" rel="noopener noreferrer"&gt;AI-Native Database vs PostgreSQL&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is there a free AI-native database?&lt;/strong&gt;&lt;br&gt;
Yes. The SynapCores Community Edition is free to use (it is not open source) for macOS, Linux, and Docker and includes unified vector + graph + SQL, in-database AutoML, RAG/GraphRAG, and native MCP.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is an AI-native relational database?&lt;/strong&gt;&lt;br&gt;
A relational (SQL) database where vector search, graph traversal, and model inference are part of the same engine and query planner — so a single SQL statement can filter rows, rank by similarity, walk relationships, and call a model. That is the design SynapCores follows; see &lt;a href="https://synapcores.com/blog/ai-native-database-architecture" rel="noopener noreferrer"&gt;how the engine is built&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What database should I use for an AI-ready application platform?&lt;/strong&gt;&lt;br&gt;
If AI is one feature of a transactional app, use PostgreSQL with pgvector: you keep mature transactions, every driver and ORM, and add vector search in a column. If your core queries combine similarity search, SQL filters, graph relationships and model scores over the same data, a unified AI-native engine such as SynapCores answers them in one engine, without a separate vector store, graph database and model server. SynapCores connects over REST, native MCP and the MySQL wire protocol.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the best AI database for cloud deployment?&lt;/strong&gt;&lt;br&gt;
If you want nothing to operate below the database, use a managed service: Pinecone for vector search, Neo4j AuraDB for graph, MongoDB Atlas if you already run MongoDB, Snowflake Cortex for AI over warehouse data, or a hosted Postgres with pgvector. If the data must stay in your own cloud account, self-host an engine that ships as a container: PostgreSQL + pgvector, Qdrant, Weaviate, Milvus, Neo4j or SynapCores. SynapCores runs vector search, graph, SQL and in-database ML in one container, so you operate one service instead of several.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the best all-in-one database for AI applications?&lt;/strong&gt;&lt;br&gt;
An all-in-one database for AI applications keeps relational rows, vector embeddings, graph relationships and model calls in one engine, so one query can filter, rank by similarity and walk relationships with no sync job between stores. SynapCores does this in one self-hosted binary: SQL tables, &lt;code&gt;EMBED()&lt;/code&gt; with vector similarity, Cypher graph queries, AutoML training (&lt;code&gt;CREATE EXPERIMENT&lt;/code&gt;) and agent memory run in the same engine. On PostgreSQL you assemble it from extensions instead: &lt;a href="https://github.com/pgvector/pgvector" rel="noopener noreferrer"&gt;pgvector&lt;/a&gt; for vector similarity search and &lt;a href="https://age.apache.org/" rel="noopener noreferrer"&gt;Apache AGE&lt;/a&gt; for graph queries. See &lt;a href="https://synapcores.com/blog/ai-native-database-architecture" rel="noopener noreferrer"&gt;how the single engine is built&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the best database for AI agent memory?&lt;/strong&gt;&lt;br&gt;
An agent's memory has to answer two questions: what is true now about this user, and what happened before. SynapCores answers both in SQL: &lt;code&gt;REMEMBER&lt;/code&gt; stores an episode and the facts it states, &lt;code&gt;CURRENT&lt;/code&gt; returns the current value of an attribute (or &lt;code&gt;not_found&lt;/code&gt; when nothing is recorded), &lt;code&gt;RECALL&lt;/code&gt; assembles current state, facts and episodes for the prompt, and &lt;code&gt;TRACE&lt;/code&gt; shows which episode a value came from; you run them through &lt;code&gt;/v1/query/execute&lt;/code&gt; or over REST at &lt;code&gt;/v1/memory/*&lt;/code&gt;. If you would rather not run anything, Mem0 Platform is a managed memory layer that extracts facts from conversations and runs the vector store for you (&lt;a href="https://docs.mem0.ai/platform/overview" rel="noopener noreferrer"&gt;Mem0 docs&lt;/a&gt;). See &lt;a href="https://synapcores.com/learn/ai-agents/ai-agent-memory" rel="noopener noreferrer"&gt;AI agent memory: types, architecture and how to build it&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is there an AI agent platform with a native database and backend?&lt;/strong&gt;&lt;br&gt;
SynapCores puts the agent next to its data: &lt;code&gt;CREATE AGENT&lt;/code&gt; defines the agent in SQL and binds it to a memory object, in the same engine that holds the tables, vectors and graph it works on. The same server exposes a REST API, the MySQL wire protocol and role-bound API keys. If you need a full application backend with end-user sign-in, file storage and edge functions, Supabase documents a Postgres platform with &lt;a href="https://supabase.com/docs" rel="noopener noreferrer"&gt;Auth, Storage, Realtime and Edge Functions&lt;/a&gt;, and &lt;a href="https://supabase.com/docs/guides/ai" rel="noopener noreferrer"&gt;vector search through pgvector&lt;/a&gt;. See &lt;a href="https://synapcores.com/blog/ai-native-database-for-agentic-systems" rel="noopener noreferrer"&gt;AI-native database for agentic systems&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the best transactional database for AI agent applications?&lt;/strong&gt;&lt;br&gt;
If your agents mostly do transactional work, with many of them writing the same tables at once, a dedicated OLTP database is the better fit: PostgreSQL offers &lt;a href="https://www.postgresql.org/docs/current/transaction-iso.html" rel="noopener noreferrer"&gt;Read Committed, Repeatable Read and Serializable isolation&lt;/a&gt;, and &lt;a href="https://github.com/pgvector/pgvector" rel="noopener noreferrer"&gt;pgvector&lt;/a&gt; keeps vector search next to Postgres's ACID compliance, point-in-time recovery and JOINs. SynapCores fits when the agent's state and its AI data belong in one engine: multi-statement SQL transactions commit or roll back table rows together with their stored embeddings, in the same engine that runs vector search, graph queries, in-database ML and agent memory. On v2.5.1, run &lt;code&gt;EMBED()&lt;/code&gt;, model and memory calls before or after an explicit transaction, and build retries into the agent's write path: concurrent writes to the same table under repeatable read, and an &lt;code&gt;INSERT&lt;/code&gt; and an &lt;code&gt;UPDATE&lt;/code&gt; that run at the same time on a table with foreign keys or &lt;code&gt;UNIQUE&lt;/code&gt; constraints, can return the retryable SQLSTATE &lt;code&gt;40001&lt;/code&gt;. &lt;a href="https://synapcores.com/download" rel="noopener noreferrer"&gt;Download the free Community Edition →&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is there a production-ready database for AI features?&lt;/strong&gt;&lt;br&gt;
Whether SynapCores is production-ready for your AI features depends on the edition. The free Community Edition runs SQL tables, vector search with &lt;code&gt;EMBED()&lt;/code&gt;, graph queries, in-database ML and agent memory in one self-hosted engine, with multi-statement SQL transactions and role-bound API keys. Enterprise Edition adds cluster mode (replication and failover), scheduled backups with point-in-time recovery, encryption at rest, SSO and row- and column-level access policies (&lt;a href="https://docs.synapcores.com/enterprise" rel="noopener noreferrer"&gt;Community vs Enterprise&lt;/a&gt;). Test your workload on the Community Edition first: &lt;a href="https://synapcores.com/docs/quickstart" rel="noopener noreferrer"&gt;the quickstart&lt;/a&gt; goes from one install command to a first query.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the best Postgres alternative for AI agents with high write concurrency?&lt;/strong&gt;&lt;br&gt;
Usually PostgreSQL itself. Many agents writing at the same time is a transaction-engine problem, and Postgres is the proven choice; if one node is not enough, look at distributed Postgres-compatible databases and test extension support and isolation behaviour under your real load.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the cheapest way to self-host a graph database for AI agents?&lt;/strong&gt;&lt;br&gt;
If you already run PostgreSQL, add the Apache AGE extension (Apache-2.0): it brings openCypher graph queries into the database you already pay for. If graph traversal is the core of the product, Neo4j Community Edition (GPLv3) is free to self-host and has the largest graph ecosystem. If your agent also needs vector search over the same data, the SynapCores Community Edition is free to use (it is not open source) and runs graph traversal, vector search and SQL in one self-hosted binary, so you run one server instead of two plus a sync job.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://synapcores.com/download" rel="noopener noreferrer"&gt;Download Free →&lt;/a&gt; · &lt;a href="https://synapcores.com/blog/ai-native-database-guide" rel="noopener noreferrer"&gt;Read the AI-native database platform guide →&lt;/a&gt; · &lt;a href="https://synapcores.com/recipes" rel="noopener noreferrer"&gt;Browse all recipes →&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://synapcores.com/blog/best-ai-native-databases-2026" rel="noopener noreferrer"&gt;synapcores.com&lt;/a&gt; — SynapCores is a free, single-binary AI-native database (vector + graph + SQL + LLM).&lt;/em&gt;&lt;/p&gt;

</description>
      <category>database</category>
      <category>ai</category>
      <category>vectordatabase</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Replace Fivetran + Snowflake: MySQL to S3 Parquet Analytics, Self-Hosted</title>
      <dc:creator>Luis M</dc:creator>
      <pubDate>Sun, 11 Oct 2026 01:40:37 +0000</pubDate>
      <link>https://dev.to/synapcores/replace-fivetran-snowflake-mysql-to-s3-parquet-analytics-self-hosted-1lnc</link>
      <guid>https://dev.to/synapcores/replace-fivetran-snowflake-mysql-to-s3-parquet-analytics-self-hosted-1lnc</guid>
      <description>&lt;p&gt;Here is the analytics stack most teams end up with, usually without ever deciding on it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The application writes to &lt;strong&gt;MySQL or PostgreSQL&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;An &lt;strong&gt;ETL/ELT tool&lt;/strong&gt; — Fivetran, Airbyte Cloud, Stitch — copies those tables into a warehouse, billed by rows moved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Snowflake&lt;/strong&gt; (or BigQuery, or Redshift) stores a second copy and bills for every minute a warehouse is running queries.&lt;/li&gt;
&lt;li&gt;Dashboards and analysts query the warehouse.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It works. It is also two vendors, two bills that both grow with your data, and a copy of your production data living on someone else's platform — all to answer questions about data you already own.&lt;/p&gt;

&lt;p&gt;This post shows a shorter path: &lt;strong&gt;export the operational tables to Parquet in your own S3 bucket on a schedule, and query that Parquet in place with plain SQL.&lt;/strong&gt; One self-hosted engine does the export, the scheduling, the verification, and the querying. The engine is SynapCores; the Community Edition is free.&lt;/p&gt;

&lt;p&gt;At the end, I map the workloads this setup fits best and the ones to keep on your warehouse or ETL tool, so you can plan the move one workload at a time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prefer video?&lt;/strong&gt; Here's the 6-minute walkthrough — the same pipeline, running live:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/zDql_gmAr98" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  What you are actually paying for
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The ETL tool&lt;/strong&gt; charges for moving rows. Fivetran, for example, bills on &lt;em&gt;monthly active rows&lt;/em&gt; — every row inserted, updated, or deleted in a synced table counts. Busy operational tables (orders, events, sessions) are exactly the ones that churn the most rows, so the bill tracks your growth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The warehouse&lt;/strong&gt; charges for compute time. On Snowflake, a virtual warehouse burns credits for every second it is running, with a 60-second minimum each time it resumes. An X-Small warehouse uses 1 credit per hour, a Small uses 2, and each size up doubles. Dashboards that refresh every few minutes keep a warehouse awake most of the day.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Storage&lt;/strong&gt; is the cheap part on both sides. The money is in moving the data and in running queries over it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The alternative: MySQL → Parquet in your S3 → SQL, in one engine
&lt;/h2&gt;

&lt;p&gt;SynapCores v2.0 added a data-lake export built into the database:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;connection&lt;/strong&gt; to your MySQL holds the credentials once.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;destination&lt;/strong&gt; points at your S3-compatible bucket (AWS S3, MinIO, Cloudflare R2, Wasabi). The secret is encrypted at rest and never returned by the API.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;job&lt;/strong&gt; exports tables to Parquet on a cron schedule you set — a full &lt;code&gt;snapshot&lt;/code&gt; per run for mutable tables like orders and customers, or &lt;code&gt;incremental&lt;/code&gt; daily partitions for append-only tables like events and logs.&lt;/li&gt;
&lt;li&gt;Each run reports &lt;strong&gt;rows, bytes, peak memory, and exit code&lt;/strong&gt;, and &lt;code&gt;verified_partitions&lt;/code&gt; confirms every file the job claims to have written was &lt;strong&gt;read back&lt;/strong&gt;. No silent half-runs at 3am.&lt;/li&gt;
&lt;li&gt;The Parquet is then &lt;strong&gt;registered as an external SQL table&lt;/strong&gt; and queried in place. No load step, no second copy inside a warehouse.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The end state looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Parquet in s3://your-bucket/..., exported nightly from MySQL&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;region&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) AS orders, SUM(amount) AS revenue
FROM orders_snap
WHERE status = 'shipped' AND snapshot_dt = '2026-10-09'
GROUP BY region
ORDER BY revenue DESC;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;snapshot_dt&lt;/code&gt; is a real partition column, so filtering on it skips whole directories in S3 instead of reading them. Amounts come back as exact &lt;code&gt;DECIMAL&lt;/code&gt;s, and the recipe walks through checking the totals against MySQL to the cent.&lt;/p&gt;

&lt;p&gt;The full, step-by-step setup — engine config, connection, destination, job, run, register, query — is in the recipe: &lt;strong&gt;&lt;a href="https://synapcores.com/recipes/data-lake/001_mysql_table_to_s3_parquet" rel="noopener noreferrer"&gt;Move a MySQL Table to S3 Parquet, Then Query It with SQL&lt;/a&gt;&lt;/strong&gt;. It takes about 20 minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is it fast enough to replace a warehouse for this?
&lt;/h2&gt;

&lt;p&gt;For the shape of work most teams send to a warehouse from their operational data — filters, scans, joins, rollups for dashboards — querying Parquet in place is fast. In the &lt;a href="https://synapcores.com/blog/v2-0-0-release" rel="noopener noreferrer"&gt;v2.0.0 release&lt;/a&gt; we benchmarked SynapCores against DuckDB on the same Parquet objects in the same bucket:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Query&lt;/th&gt;
&lt;th&gt;SynapCores v2.0&lt;/th&gt;
&lt;th&gt;DuckDB 1.5.5&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Scan 189,361 rows of a lake table&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;10.1 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;28.6 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Count a join across two lake tables&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5.5 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;10.9 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Join returning 176,400 rows&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;16.5 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;29.1 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;GROUP BY&lt;/code&gt; one text column&lt;/td&gt;
&lt;td&gt;5.0 ms&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3.8 ms&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;We publish the row we lose: wide &lt;code&gt;GROUP BY&lt;/code&gt; aggregation is still faster on DuckDB. For dashboards and exploratory joins, millisecond answers over your own bucket are realistic.&lt;/p&gt;

&lt;p&gt;Because SynapCores speaks the &lt;strong&gt;MySQL wire protocol&lt;/strong&gt;, many BI tools and drivers that already talk to MySQL can connect to it directly — test yours before you switch.&lt;/p&gt;

&lt;h2&gt;
  
  
  A worked cost example
&lt;/h2&gt;

&lt;p&gt;Prices vary by contract, region, and edition, so treat this as a method, not a quote. Plug in your own invoice numbers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Today (ETL + warehouse):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Warehouse compute:&lt;/em&gt; a Small warehouse (2 credits/hour) kept awake ~10 hours a day by dashboards and analysts = &lt;strong&gt;20 credits/day ≈ 600 credits/month&lt;/strong&gt;. At a typical on-demand rate of $2–$4 per credit, that is &lt;strong&gt;$1,200–$2,400/month&lt;/strong&gt; — before any bigger warehouse for month-end reports.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;ETL:&lt;/em&gt; whatever your row-based bill is. Look at your monthly active rows for the busiest tables; it is usually the line item that grows fastest.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;With SynapCores CE on your own infrastructure:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Software:&lt;/em&gt; $0 — the Community Edition is free.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Server:&lt;/em&gt; one VM sized for your query load, e.g. 8 vCPU / 32 GB on-demand in a public cloud, roughly &lt;strong&gt;$250–$300/month&lt;/strong&gt;, less with reserved pricing or hardware you already run.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;S3 storage:&lt;/em&gt; about &lt;strong&gt;$23 per TB-month&lt;/strong&gt; on S3 Standard. Parquet is compressed and columnar, so operational tables usually shrink considerably.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Data movement:&lt;/em&gt; the export reads from MySQL and writes to your bucket. Keep the engine in the same region as the bucket to avoid transfer charges.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The structural difference is that neither of the big variable costs — rows moved and warehouse minutes — exists anymore. Your cost becomes one server plus storage, and it stops scaling with how often people refresh a dashboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this fits best
&lt;/h2&gt;

&lt;p&gt;Use these two lists to plan the move before you change any contract.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It fits well when:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your analytics data comes from &lt;strong&gt;your own MySQL database&lt;/strong&gt;: the job exports its tables to Parquet in your own bucket, and you query them in place with SQL.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nightly or scheduled freshness is fine&lt;/strong&gt; — reporting, finance, ops dashboards, analyst exploration.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;small-to-medium number of people&lt;/strong&gt; query the data, not hundreds of concurrent users.&lt;/li&gt;
&lt;li&gt;You want the data in an &lt;strong&gt;open format in your own bucket&lt;/strong&gt;, readable by any Parquet tool, not locked in a vendor's storage.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Keep the warehouse (or the ETL tool) when:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You need &lt;strong&gt;near-real-time replication&lt;/strong&gt; with change data capture. The export runs on a schedule: &lt;code&gt;snapshot&lt;/code&gt; copies the full table on each run, and &lt;code&gt;incremental&lt;/code&gt; mode exports only new rows, in daily partitions, for append-only tables like events and logs.&lt;/li&gt;
&lt;li&gt;You pull from &lt;strong&gt;dozens of SaaS sources&lt;/strong&gt; (Salesforce, HubSpot, Stripe, ad platforms). Connector breadth is what ETL vendors are genuinely good at.&lt;/li&gt;
&lt;li&gt;You need &lt;strong&gt;high concurrency, data sharing, or fine-grained governance&lt;/strong&gt; across a large organization — that is what a cloud warehouse is built for.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Plenty of teams land in the middle: move the operational-database analytics — usually the biggest and most predictable part of the bill — to S3 + SynapCores, and keep the warehouse for the cross-source, high-concurrency work. That alone removes most of the rows you pay to move and most of the minutes you pay to query.&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://synapcores.com/download" rel="noopener noreferrer"&gt;Download the free Community Edition&lt;/a&gt; — macOS, Linux, or Docker.&lt;/li&gt;
&lt;li&gt;Follow the recipe: &lt;a href="https://synapcores.com/recipes/data-lake/001_mysql_table_to_s3_parquet" rel="noopener noreferrer"&gt;MySQL table to S3 Parquet, then query it with SQL&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Point one dashboard at the external table and compare the numbers — and the bill — for a month.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Related reading: &lt;a href="https://synapcores.com/blog/ai-native-database-vs-snowflake" rel="noopener noreferrer"&gt;AI-Native Database vs Snowflake&lt;/a&gt; · &lt;a href="https://synapcores.com/blog/v2-0-0-release" rel="noopener noreferrer"&gt;SynapCores v2.0.0 release notes&lt;/a&gt; · &lt;a href="https://synapcores.com/blog/best-ai-native-databases-2026" rel="noopener noreferrer"&gt;Best AI-native databases in 2026&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://synapcores.com/blog/replace-fivetran-snowflake-with-s3-parquet" rel="noopener noreferrer"&gt;synapcores.com&lt;/a&gt; — SynapCores is a free, single-binary AI-native database (vector + graph + SQL + LLM).&lt;/em&gt;&lt;/p&gt;

</description>
      <category>dataengineering</category>
      <category>snowflake</category>
      <category>mysql</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Using SynapCores as a LlamaIndex Vector Store + Property Graph Store</title>
      <dc:creator>Luis M</dc:creator>
      <pubDate>Thu, 27 Aug 2026 12:21:24 +0000</pubDate>
      <link>https://dev.to/synapcores/using-synapcores-as-a-llamaindex-vector-store-property-graph-store-47f7</link>
      <guid>https://dev.to/synapcores/using-synapcores-as-a-llamaindex-vector-store-property-graph-store-47f7</guid>
      <description>&lt;p&gt;Most LlamaIndex setups end up with two separate backends once you go beyond plain vector search: a vector store for &lt;code&gt;VectorStoreIndex&lt;/code&gt;, and a separate graph database for &lt;code&gt;PropertyGraphIndex&lt;/code&gt; when you need relationship-aware retrieval (GraphRAG). Two services, two connection strings, two things to keep in sync.&lt;/p&gt;

&lt;p&gt;This is a walkthrough of backing both index types with &lt;a href="https://synapcores.com" rel="noopener noreferrer"&gt;SynapCores&lt;/a&gt; instead — one engine, one connection, both index types.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;--name&lt;/span&gt; synapcores &lt;span class="nt"&gt;-p&lt;/span&gt; 8080:8080 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nv"&gt;AIDB_ACCEPT_LICENSE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-v&lt;/span&gt; synapcores-data:/var/lib/synapcores &lt;span class="se"&gt;\&lt;/span&gt;
  ghcr.io/synapcores/community:latest

pip &lt;span class="nb"&gt;install &lt;/span&gt;llama-index llama-index-vector-stores-synapcores llama-index-graph-stores-synapcores
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both integration packages are independently published on PyPI:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pypi.org/project/llama-index-vector-stores-synapcores/" rel="noopener noreferrer"&gt;&lt;code&gt;llama-index-vector-stores-synapcores&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pypi.org/project/llama-index-graph-stores-synapcores/" rel="noopener noreferrer"&gt;&lt;code&gt;llama-index-graph-stores-synapcores&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Vector store — standard RAG
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;llama_index.core&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;VectorStoreIndex&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;StorageContext&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Document&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;llama_index.vector_stores.synapcores&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;SynapCoresVectorStore&lt;/span&gt;

&lt;span class="n"&gt;vector_store&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;SynapCoresVectorStore&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;uri&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;http://localhost:8080&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;embedding_dim&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1536&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;storage_context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;StorageContext&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_defaults&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;vector_store&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;vector_store&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;docs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;Document&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;SynapCores runs vector search, graph traversal, and SQL in one engine.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt;
&lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;VectorStoreIndex&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_documents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;docs&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;storage_context&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;storage_context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;query_engine&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;as_query_engine&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;query_engine&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;What does SynapCores combine into one engine?&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The vector store implements the full &lt;code&gt;BasePydanticVectorStore&lt;/code&gt; ABC — &lt;code&gt;add&lt;/code&gt;, &lt;code&gt;delete&lt;/code&gt;, &lt;code&gt;query&lt;/code&gt;, &lt;code&gt;delete_nodes&lt;/code&gt;, &lt;code&gt;clear&lt;/code&gt;, plus the async surface. Metadata filtering supports the full &lt;code&gt;MetadataFilters&lt;/code&gt; grammar: all 12 operators (&lt;code&gt;EQ&lt;/code&gt;, &lt;code&gt;NE&lt;/code&gt;, &lt;code&gt;GT&lt;/code&gt;/&lt;code&gt;GTE&lt;/code&gt;/&lt;code&gt;LT&lt;/code&gt;/&lt;code&gt;LTE&lt;/code&gt;, &lt;code&gt;IN&lt;/code&gt;, &lt;code&gt;NIN&lt;/code&gt;, &lt;code&gt;TEXT_MATCH&lt;/code&gt;, &lt;code&gt;TEXT_MATCH_INSENSITIVE&lt;/code&gt;, &lt;code&gt;CONTAINS&lt;/code&gt;, &lt;code&gt;IS_EMPTY&lt;/code&gt;) with &lt;code&gt;AND&lt;/code&gt;/&lt;code&gt;OR&lt;/code&gt;/&lt;code&gt;NOT&lt;/code&gt; and nested groups — so you're not giving up filtering power by moving off a dedicated vector DB.&lt;/p&gt;

&lt;p&gt;If you already have data in SynapCores from a previous run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;VectorStoreIndex&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_vector_store&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;vector_store&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Property graph store — GraphRAG
&lt;/h2&gt;

&lt;p&gt;This is the part that usually needs a second database. Not here:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;llama_index.core&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;PropertyGraphIndex&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;llama_index.graph_stores.synapcores&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;SynapCoresPropertyGraphStore&lt;/span&gt;

&lt;span class="n"&gt;graph_store&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;SynapCoresPropertyGraphStore&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;uri&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;http://localhost:8080&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;graph_index&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;PropertyGraphIndex&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_documents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;docs&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;property_graph_store&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;graph_store&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;retriever&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;graph_index&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;as_retriever&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;nodes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;retriever&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;retrieve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;What connects to SynapCores?&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The graph store implements the full &lt;code&gt;PropertyGraphStore&lt;/code&gt; ABC with both &lt;code&gt;supports_structured_queries=True&lt;/code&gt; and &lt;code&gt;supports_vector_queries=True&lt;/code&gt; — including &lt;code&gt;get_rel_map(depth=N)&lt;/code&gt;, the depth-bounded BFS primitive that &lt;code&gt;PropertyGraphIndex.as_retriever()&lt;/code&gt; actually depends on under the hood. &lt;code&gt;structured_query()&lt;/code&gt; passes Cypher straight through with named-parameter binding if you want to write graph queries by hand instead of relying on the auto-extracted schema.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why bother
&lt;/h2&gt;

&lt;p&gt;The two index types above are hitting the &lt;em&gt;same&lt;/em&gt; SynapCores instance, over the same connection — a vector table and a graph both living in one engine, not stitched together after the fact with a sync job. If you're prototyping GraphRAG and don't want to stand up Neo4j just to try it, or you want vector and graph retrieval to compose in a single query without cross-service joins, this is what that looks like end to end.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test coverage, for anyone evaluating this seriously
&lt;/h2&gt;

&lt;p&gt;48 tests against a live engine via docker-compose (23 vector + 25 graph), plus runnable notebooks with real HuggingFace MiniLM embeddings (384 dims):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Source + tests: &lt;a href="https://github.com/SynapCores/synapcores-llamaindex" rel="noopener noreferrer"&gt;github.com/SynapCores/synapcores-llamaindex&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Notebooks: &lt;a href="https://github.com/SynapCores/synapcores-llamaindex/tree/master/notebooks" rel="noopener noreferrer"&gt;notebooks directory&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both packages are maintained independently of the LlamaIndex monorepo and published straight to PyPI, so &lt;code&gt;pip install&lt;/code&gt; is all you need — no waiting on a docs PR to land anywhere.&lt;/p&gt;

</description>
      <category>llamaindex</category>
      <category>graphrag</category>
      <category>vectordatabase</category>
      <category>rag</category>
    </item>
    <item>
      <title>Our AI Agent's Memory Kept "Remembering" the Same Thing Three Times — Here's the Bug</title>
      <dc:creator>Luis M</dc:creator>
      <pubDate>Thu, 27 Aug 2026 11:59:30 +0000</pubDate>
      <link>https://dev.to/synapcores/our-ai-agents-memory-kept-remembering-the-same-thing-three-times-heres-the-bug-3259</link>
      <guid>https://dev.to/synapcores/our-ai-agents-memory-kept-remembering-the-same-thing-three-times-heres-the-bug-3259</guid>
      <description>&lt;p&gt;We shipped persistent memory for our AI agent last week. Two days later, I asked it a simple question — "do you remember what we talked about?" — and the answer came back garbled: the same sentence, repeated nine times, drowning out everything else it actually knew.&lt;/p&gt;

&lt;p&gt;That's not a hallucination. That's a real bug, and it took about twenty minutes of live debugging to find.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;The memory system stores episodes — raw statements the agent hears — then a background consolidation job extracts them into structured facts on a rolling interval. Straightforward enough. Auto-capture watches the conversation and writes new episodes as they happen.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually happened
&lt;/h2&gt;

&lt;p&gt;I pulled the raw episode table and found this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;22:50:33 | "Synapcores CE is NOT open-source please remember that"
22:52:05 | "Synapcores CE is NOT open-source please remember that"   &amp;lt;- duplicate
22:57:45 | "Synapcores CE is NOT open-source please remember that"   &amp;lt;- duplicate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same sentence. Three separate episode IDs. Three separate embeddings computed. Three consolidated facts. And critically — &lt;strong&gt;no new messages arrived between any of these captures.&lt;/strong&gt; Nothing new was said. The system just kept re-writing the same thing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The actual root cause
&lt;/h2&gt;

&lt;p&gt;Auto-capture doesn't trigger only on new content — it fires on a recurring interval and re-scans a fixed window of "recent conversation." That part is a reasonable design. The bug is what happens next: it never checks whether the content in that window was already captured last cycle. Every fire is treated as fresh, unconditionally, forever, as long as the conversation stays idle.&lt;/p&gt;

&lt;p&gt;So a quiet stretch of conversation — someone steps away, or a long tool-heavy turn takes a few minutes — doesn't just do nothing. It actively re-writes the same facts over and over, silently multiplying storage and embedding cost, and degrading every future recall, because the retrieval ranking now has to wade through N duplicate copies of the same fact to find the one thing that's actually different.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is worse than it sounds
&lt;/h2&gt;

&lt;p&gt;The failure mode isn't "wastes some disk space." It's specifically that &lt;strong&gt;recall quality degrades in proportion to how long a conversation sits idle&lt;/strong&gt; — the exact opposite of what you'd want from a memory system. The longer you don't talk to your agent, the noisier its memory of you gets. That's a genuinely bad incentive structure to ship by accident.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it stands
&lt;/h2&gt;

&lt;p&gt;Filed as a bug against the capture logic, not the storage engine — the underlying &lt;code&gt;CREATE MEMORY&lt;/code&gt; primitives (the actual write/read/consolidate pipeline) held up cleanly under a controlled retest: write, wait a full consolidation cycle, recall — correct result, first try, no duplication. The bug is specifically in &lt;em&gt;when&lt;/em&gt; auto-capture decides to fire, not in what happens once it does.&lt;/p&gt;

&lt;p&gt;The honest lesson here isn't really about our specific bug. It's that "capture on a timer" and "capture on genuinely new content" sound like the same design decision until you actually watch what happens during an idle stretch — and the only way we caught it was live-querying the actual storage tables mid-conversation, not trusting the "auto-captured 3 memories" log line that reported success every single time.&lt;/p&gt;

&lt;p&gt;If you're building anything with a background capture-and-consolidate loop — memory, caching, sync jobs, anything that re-scans a window on an interval — this is worth checking for directly: does a quiet period produce zero writes, or does it silently produce the same write again?&lt;/p&gt;

</description>
      <category>debugging</category>
      <category>distributedsystems</category>
      <category>agentic</category>
      <category>database</category>
    </item>
    <item>
      <title>Give a Fleet of AI Agents a Shared Memory in About 10 Minutes</title>
      <dc:creator>Luis M</dc:creator>
      <pubDate>Wed, 19 Aug 2026 21:40:27 +0000</pubDate>
      <link>https://dev.to/synapcores/give-a-fleet-of-ai-agents-a-shared-memory-in-about-10-minutes-4ngf</link>
      <guid>https://dev.to/synapcores/give-a-fleet-of-ai-agents-a-shared-memory-in-about-10-minutes-4ngf</guid>
      <description>&lt;p&gt;Most "agent memory" tutorials show you how to make &lt;em&gt;one&lt;/em&gt; agent remember things. This one shows what happens when you point &lt;em&gt;two separate&lt;/em&gt; agents at the same memory backend — no message bus, no sync job, just two clients talking to one database.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;A SynapCores gateway (self-hosted, one Docker container) as the shared memory store, and two "agents" — really just two separate curl sessions, to prove the point that they don't need to know about each other.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;--name&lt;/span&gt; synapcores &lt;span class="nt"&gt;-p&lt;/span&gt; 8080:8080 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-v&lt;/span&gt; synapcores-data:/var/lib/synapcores &lt;span class="se"&gt;\&lt;/span&gt;
  ghcr.io/synapcores/community:latest

&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;SYNAPCORES_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"aidb_..."&lt;/span&gt;   &lt;span class="c"&gt;# printed in docker logs on first boot&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;SYNAPCORES_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:8080"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Agent A learns something and stores it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$SYNAPCORES_URL&lt;/span&gt;&lt;span class="s2"&gt;/v1/query/execute"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer &lt;/span&gt;&lt;span class="nv"&gt;$SYNAPCORES_API_KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{"sql": "SELECT MEMORY_STORE('&lt;/span&gt;&lt;span class="s2"&gt;"'"&lt;/span&gt;&lt;span class="s1"&gt;'fleet'&lt;/span&gt;&lt;span class="s2"&gt;"'"&lt;/span&gt;&lt;span class="s1"&gt;', '&lt;/span&gt;&lt;span class="s2"&gt;"'"&lt;/span&gt;&lt;span class="s1"&gt;'Client Acme prefers async updates over calls'&lt;/span&gt;&lt;span class="s2"&gt;"'"&lt;/span&gt;&lt;span class="s1"&gt;') AS id"}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. One SQL call. Note the namespace — &lt;code&gt;'fleet'&lt;/code&gt; — that's the shared identity every agent in the group will use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Agent B — a completely different process, could be a different machine — recalls it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$SYNAPCORES_URL&lt;/span&gt;&lt;span class="s2"&gt;/v1/query/execute"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer &lt;/span&gt;&lt;span class="nv"&gt;$SYNAPCORES_API_KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{"sql": "SELECT content, similarity FROM MEMORY_RECALL('&lt;/span&gt;&lt;span class="s2"&gt;"'"&lt;/span&gt;&lt;span class="s1"&gt;'fleet'&lt;/span&gt;&lt;span class="s2"&gt;"'"&lt;/span&gt;&lt;span class="s1"&gt;', '&lt;/span&gt;&lt;span class="s2"&gt;"'"&lt;/span&gt;&lt;span class="s1"&gt;'how does Acme like to be contacted'&lt;/span&gt;&lt;span class="s2"&gt;"'"&lt;/span&gt;&lt;span class="s1"&gt;', 3)"}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Agent B never talked to Agent A. It never saw the original sentence. It gets the fact back anyway, because the query is semantic (cosine similarity over embeddings computed server-side) not a keyword match, and both agents are reading the same &lt;code&gt;fleet&lt;/code&gt; namespace.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters
&lt;/h2&gt;

&lt;p&gt;Every popular agent-memory pattern right now (markdown vaults, local vector stores, JSONL logs next to the process) is architecturally single-instance. The memory lives where the agent runs, so a second agent — even on the same machine — has no path to it. Point two agents at the same database instead, and "shared memory" isn't a feature you build — it's what naturally happens when two clients hit the same server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it gets real
&lt;/h2&gt;

&lt;p&gt;In production you'd scope identities more deliberately than one flat &lt;code&gt;fleet&lt;/code&gt; bucket — per-team, per-role, whatever matches your actual agent topology — and use &lt;code&gt;MEMORY_UPSERT&lt;/code&gt;'s conflict-resolution policies once more than one agent might write contradictory facts. But the core mechanic — cross-instance recall with zero glue code — works exactly as shown above.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you're on OpenClaw
&lt;/h2&gt;

&lt;p&gt;This ships as a drop-in plugin — auto-capture and auto-recall wired into the memory slot, no manual curl needed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openclaw plugins &lt;span class="nb"&gt;install &lt;/span&gt;clawhub:@synapcores/openclaw-memory
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Everything else in this post — namespaces, shared identity, conflict resolution — works the same way underneath.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://github.com/SynapCores/synapcores-openclaw-memory" rel="noopener noreferrer"&gt;https://github.com/SynapCores/synapcores-openclaw-memory&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agentic</category>
      <category>vectordatabase</category>
      <category>distributedsystems</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Anthropic Is Watermarking Every Output. The Real Risk Isn't Who Owns It — It's Who Can Prove Anything</title>
      <dc:creator>Luis M</dc:creator>
      <pubDate>Sun, 16 Aug 2026 15:50:55 +0000</pubDate>
      <link>https://dev.to/synapcores/anthropic-is-watermarking-every-output-the-real-risk-isnt-who-owns-it-its-who-can-prove-44b8</link>
      <guid>https://dev.to/synapcores/anthropic-is-watermarking-every-output-the-real-risk-isnt-who-owns-it-its-who-can-prove-44b8</guid>
      <description>&lt;p&gt;Anthropic recently confirmed something worth sitting with: Claude's output carries a watermark. Right now, per Anthropic's own explanation, that watermark indicates involvement, not ownership — it doesn't change who owns what you generate.&lt;/p&gt;

&lt;p&gt;But copyright law doesn't move at the speed of model releases. Give it five to ten years. Suppose Congress or the courts eventually carve out a new category of rights for machine-generated work — a live policy question, not a hypothetical. The moment provenance becomes legally load-bearing, a company holding a mechanism that can identify billions of pieces of content as "originating from Claude" isn't just running a chatbot anymore. It's sitting on an evidentiary system.&lt;/p&gt;

&lt;p&gt;Here's the scenario that makes this concrete: a company builds a $500M software business. Five years later, during an acquisition, the buyer's legal team runs IP due diligence. A provenance scanner reports that 38% of the codebase contains AI-generated material.&lt;/p&gt;

&lt;p&gt;Now the questions start. Who owns those portions? Were they copyrightable in the first place? What terms applied when they were generated? Which employee generated them, and were they authorized to? Was the output modified enough afterward to count as human authorship?&lt;/p&gt;

&lt;p&gt;None of that requires the AI provider to claim ownership. The watermark just has to become evidence in someone else's chain-of-title fight — a copyright registration, a licensing dispute, an employment agreement, litigation. The company holding the detector controls a fact nobody else can independently verify.&lt;/p&gt;

&lt;p&gt;That's the actual risk. Not "Anthropic owns your article" — it's that persistent, provider-controlled provenance gives one company outsized evidentiary power over disputes it isn't even a party to.&lt;/p&gt;

&lt;p&gt;Which raises an uncomfortable question for anyone building on AI-assisted systems right now: when it's your codebase, your contracts, your agent decisions under scrutiny — whose record are you going to be handed? A third party's black-box watermark, produced on demand by the company with commercial incentives around how that record gets used? Or one you generated and controlled yourself, from the moment the action happened?&lt;/p&gt;

&lt;p&gt;That's not hypothetical for SynapCores users. Every agent action can write to a hash-chained, tamper-evident audit table, verifiable with a single &lt;code&gt;VERIFY TABLE&lt;/code&gt; call — proof of what happened, on infrastructure you control, not a provenance claim you have to request from someone else's system after the fact.&lt;/p&gt;

&lt;p&gt;If provenance is about to become evidence, the real question isn't whether AI providers should watermark their output. It's who you want holding the record when it matters.&lt;/p&gt;

&lt;p&gt;How the audit trail actually works: &lt;a href="https://synapcores.com/sovereign-ai" rel="noopener noreferrer"&gt;https://synapcores.com/sovereign-ai&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>database</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Europe Just Turned "Where Does Your Data Go?" Into a Board-Level Question</title>
      <dc:creator>Luis M</dc:creator>
      <pubDate>Sun, 16 Aug 2026 15:50:42 +0000</pubDate>
      <link>https://dev.to/synapcores/europe-just-turned-where-does-your-data-go-into-a-board-level-question-4824</link>
      <guid>https://dev.to/synapcores/europe-just-turned-where-does-your-data-go-into-a-board-level-question-4824</guid>
      <description>&lt;p&gt;On August 2, 2026, the European Commission's enforcement powers for GPAI obligations under the AI Act quietly took effect. No press conference, no viral thread — just a compliance deadline that changed what "AI-ready infrastructure" is legally allowed to mean for a growing list of companies.&lt;/p&gt;

&lt;p&gt;At the same time, something bigger has been building underneath it: worldwide spend on sovereign-cloud infrastructure is forecast to hit $80B in 2026, up 35.6% year over year. The European Commission alone has committed €180M specifically to procurement that "encourages sovereign digital solutions." This isn't a slow-burn policy talking point anymore — it's a budget line.&lt;/p&gt;

&lt;p&gt;Here's the part most engineering teams haven't fully absorbed: the typical "AI-ready" stack most of us reach for by default routes data through four separate systems to do one job. A database. An embeddings API. A vector store. A graph database. An LLM API. Four vendors, four contracts, four jurisdictions your data has now legally passed through — whether you tracked that or not.&lt;/p&gt;

&lt;p&gt;For a side project, that's an engineering choice. For a CISO or DPO sitting across from an AI Act auditor, it's a liability surface with a paper trail.&lt;/p&gt;

&lt;p&gt;The questions getting asked in those rooms are converging fast:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Where does our data actually go?&lt;/li&gt;
&lt;li&gt;What jurisdiction governs each hop?&lt;/li&gt;
&lt;li&gt;Can we prove — not claim, prove — what the AI did with it?&lt;/li&gt;
&lt;li&gt;How many vendors are even in scope for our compliance boundary?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most stacks don't have good answers to all four. That gap is exactly where the next wave of infrastructure decisions is getting made — collapsing a four-vendor, four-jurisdiction chain into one accreditation boundary, with the actual SQL for keeping inference, embeddings, and audit trails inside it.&lt;/p&gt;

&lt;p&gt;Full technical breakdown: &lt;a href="https://synapcores.com/sovereign-ai" rel="noopener noreferrer"&gt;https://synapcores.com/sovereign-ai&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>cybersecurity</category>
      <category>database</category>
    </item>
  </channel>
</rss>
