<?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: Sanusi Mubaraq</title>
    <description>The latest articles on DEV Community by Sanusi Mubaraq (@lpmatrix).</description>
    <link>https://dev.to/lpmatrix</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F570489%2Faddd9fe4-a84f-4bd9-82f7-24ad8cfcde4c.png</url>
      <title>DEV Community: Sanusi Mubaraq</title>
      <link>https://dev.to/lpmatrix</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lpmatrix"/>
    <language>en</language>
    <item>
      <title>Anti-hallucination Research Pipeline</title>
      <dc:creator>Sanusi Mubaraq</dc:creator>
      <pubDate>Thu, 26 Mar 2026 21:55:10 +0000</pubDate>
      <link>https://dev.to/lpmatrix/anti-hallucination-research-pipeline-29f8</link>
      <guid>https://dev.to/lpmatrix/anti-hallucination-research-pipeline-29f8</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/notion-2026-03-04"&gt;Notion MCP Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;A &lt;strong&gt;CLI research pipeline&lt;/strong&gt; that turns a free-form topic into &lt;strong&gt;structured, evidence-backed claims&lt;/strong&gt; and optional &lt;strong&gt;narrative output&lt;/strong&gt;, with &lt;strong&gt;Notion&lt;/strong&gt; as the place those results live.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Research and fact-check.&lt;/strong&gt; The tool expands the topic with an LLM (brief plus multiple web searches), merges and deduplicates what Tavily returns, then asks an LLM to pull out discrete claims tied to specific URLs and snippets. Each claim is challenged in a second pass: another search for counter-evidence and an LLM judgment with a confidence level, a contradiction flag, and short notes—so every assertion carries a &lt;strong&gt;provenance trail&lt;/strong&gt;, not just a paragraph of prose.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Optional report.&lt;/strong&gt; You can also generate a readable research write-up (Markdown) and publish the same content as a normal Notion page—separate from the structured claim data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Notion sync.&lt;/strong&gt; A companion step pushes the claim set into Notion as a &lt;strong&gt;Research claims&lt;/strong&gt; database: one row per claim, with the claim text, source link, snippet, topic label, confidence, contradiction flag, and fact-check notes. Sync uses the &lt;strong&gt;Python MCP client&lt;/strong&gt; against Notion’s hosted MCP.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Re-runs.&lt;/strong&gt; You can refresh adversarial fact-checking on an existing claim set without redoing the whole research pass.&lt;/p&gt;

&lt;p&gt;Stack: Python, OpenRouter (LLM), Tavily (search), and Notion MCP for the sync step. Useful for research, due diligence, or keeping a living backlog of traceable assertions in Notion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Video Demo
&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.amazonaws.com%2Fuploads%2Farticles%2F1hezcqbcmf1n5sgb2e7l.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.amazonaws.com%2Fuploads%2Farticles%2F1hezcqbcmf1n5sgb2e7l.png" alt="Mubaraq Notion MCP Image" width="800" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Show us the code
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/LPMatrix/notion-mcp" rel="noopener noreferrer"&gt;https://github.com/LPMatrix/notion-mcp&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Used Notion MCP
&lt;/h2&gt;

&lt;p&gt;Notion MCP is the only way data gets into Notion in this project. The research pipeline — search, claim extraction, adversarial fact-check — writes to a local JSON file. A separate script, sync_to_notion.py, handles the sync entirely through MCP:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Connects to Notion's hosted MCP server at &lt;a href="https://mcp.notion.com/mcp" rel="noopener noreferrer"&gt;https://mcp.notion.com/mcp&lt;/a&gt; using the Python MCP SDK with Streamable HTTP transport and an OAuth Bearer token&lt;/li&gt;
&lt;li&gt;Calls list_tools() after session.initialize() and resolves tool names at runtime&lt;/li&gt;
&lt;li&gt;Creates the "Research claims" database via the create-data-source tool, passing the parent page ID, title, and property schema&lt;/li&gt;
&lt;li&gt;Creates one page per claim via the create-page tool, writing all seven properties: Claim, Source URL, Source Snippet, Topic, Confidence, Contradiction, and Fact-check notes&lt;/li&gt;
&lt;/ul&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.amazonaws.com%2Fuploads%2Farticles%2F1hezcqbcmf1n5sgb2e7l.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.amazonaws.com%2Fuploads%2Farticles%2F1hezcqbcmf1n5sgb2e7l.png" alt="Mubaraq Notion MCP Image" width="800" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>notionchallenge</category>
      <category>mcp</category>
      <category>ai</category>
    </item>
    <item>
      <title>Yield Farming</title>
      <dc:creator>Sanusi Mubaraq</dc:creator>
      <pubDate>Mon, 31 Jan 2022 04:22:50 +0000</pubDate>
      <link>https://dev.to/lpmatrix/yield-farming-kp3</link>
      <guid>https://dev.to/lpmatrix/yield-farming-kp3</guid>
      <description>&lt;p&gt;According to coinbase, DeFi (or “decentralized finance”) is an umbrella term for financial services on public blockchains, primarily Ethereum. With DeFi, you can do most of the things that banks support — earn interest, borrow, lend, buy insurance, trade derivatives, trade assets, and more — but it’s faster and doesn’t require paperwork or a third party. As with crypto generally, DeFi is global, peer-to-peer (meaning directly between two people, not routed through a centralized system), pseudonymous, and open to all. &lt;/p&gt;

&lt;p&gt;Yield farming is an application of DeFi. This is lending or staking your cryptocurrency so you can get reward from it. This is somewhat almost like earning interest from a bank account;. Only yield farming are often riskier, volatile, and sophisticated unlike putting money in a bank.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does Yield Farming Works
&lt;/h2&gt;

&lt;p&gt;Users providing their cryptocurrencies for the functioning of the DeFi platform are known as liquidity providers (LPs). These LPs provide coins or tokens to a liquidity pool—a smart contract-based decentralised application (dApp) that contains all the funds. Once the LPs lock tokens into a liquidity fund they are awarded a fee or interest generated from the underlying DeFi platform the liquidity pool is on.Put simply, it is an income opportunity by lending your tokens through a decentralised application (dApp). The lending happens through smart contracts with no middleman or intermediator.The liquidity pool powers a marketplace where anyone can lend or borrow tokens. The usage of these marketplace incurs fees from the users, and the fees are used to pay liquidity providers for staking their own tokens in the pool.&lt;br&gt;
The interest in an yield farm investment is calculated in two ways: APY - Annual Percentage Yield (interesting rate including compound interest) and APR - Annual Percentage Rate (interest rate exluding compound interest)&lt;/p&gt;

&lt;h2&gt;
  
  
  Yield Farming Platforms
&lt;/h2&gt;

&lt;p&gt;There are various yield farm protocols used by yield farmers to stake and earn interest from their cryptocurrency.Listed below are some of these platforms.&lt;/p&gt;

&lt;h3&gt;
  
  
  Compound Finance
&lt;/h3&gt;

&lt;p&gt;Compound is an open source protocol built for developers that uses an algorithmic, autonomous interest rate protocol to determine the rate depositors earn on staked coins.&lt;/p&gt;

&lt;h3&gt;
  
  
  Curve Finance
&lt;/h3&gt;

&lt;p&gt;Curve is an exchange liquidity pool on Ethereum designed for: extremely efficient stablecoin trading, low risk, supplemental fee income for liquidity providers, without an opportunity cost.&lt;/p&gt;

&lt;h3&gt;
  
  
  AAVE
&lt;/h3&gt;

&lt;p&gt;Aave is an Open Source Protocol to create Non-Custodial Liquidity Markets to earn interest on deposits and borrow assets with a variable or stable interest rate. The protocol is designed for easy integration into your products and services.&lt;/p&gt;

&lt;h3&gt;
  
  
  Uniswap
&lt;/h3&gt;

&lt;p&gt;Uniswap is a decentralized exchange (DEX) where liquidity providers must stake both sides of the pool in a 50/50 ratio. In exchange, you earn a portion of the transaction fees plus UNI governance tokens.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Yield farming involves staking, or locking up your cryptocurrency in exchange for interest or more crypto. While it's possible to earn high returns with yield farming, it is also incredibly risky. A lot can happen while your cryptocurrency is locked up, as is evidenced by the many rapid price swings known to occur in the crypto markets.&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>defi</category>
      <category>web3</category>
      <category>finance</category>
    </item>
  </channel>
</rss>
