<?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: Vadim</title>
    <description>The latest articles on DEV Community by Vadim (@__1ce1f776).</description>
    <link>https://dev.to/__1ce1f776</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%2F3404279%2F16fbcc09-d881-4272-ae61-324c262097ad.jpg</url>
      <title>DEV Community: Vadim</title>
      <link>https://dev.to/__1ce1f776</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/__1ce1f776"/>
    <language>en</language>
    <item>
      <title>Building a Personal AI Info Pipeline: Semantic Monitoring with YAML and GPT</title>
      <dc:creator>Vadim</dc:creator>
      <pubDate>Tue, 05 Aug 2025 17:52:43 +0000</pubDate>
      <link>https://dev.to/__1ce1f776/building-a-personal-ai-info-pipeline-semantic-monitoring-with-yaml-and-gpt-mme</link>
      <guid>https://dev.to/__1ce1f776/building-a-personal-ai-info-pipeline-semantic-monitoring-with-yaml-and-gpt-mme</guid>
      <description>&lt;p&gt;&lt;strong&gt;Case Study: Tracking Federal Documents with AI Summarization&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every day, we need to monitor countless information sources - wouldn't it be great to get concise summaries without manual work? &lt;/p&gt;

&lt;p&gt;I'm building a system that automatically:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Checks websites for new content (even without RSS)&lt;/li&gt;
&lt;li&gt;Downloads and processes PDFs&lt;/li&gt;
&lt;li&gt;Generates AI summaries of key information&lt;/li&gt;
&lt;li&gt;Delivers everything in a unified feed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All configured through simple YAML templates with CSS selectors, normalization rules, and GPT prompts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real-World Example: Presidential Executive Orders
&lt;/h2&gt;

&lt;p&gt;Here's an actual template for monitoring new executive orders from the Federal Register:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;

&lt;span class="na"&gt;meta&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Federal&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Register&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Executive&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Orders"&lt;/span&gt;
  &lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Monitor&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;presidential&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;executive&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;orders&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;from&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Federal&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Register"&lt;/span&gt;
  &lt;span class="na"&gt;language&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;en"&lt;/span&gt;

&lt;span class="na"&gt;template_name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;federal_register_orders&lt;/span&gt;

&lt;span class="na"&gt;source&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;json&lt;/span&gt;
  &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://www.federalregister.gov/api/v1/documents.json?conditions%5Bcorrection%5D=0&amp;amp;conditions%5Bpresident%5D=donald-trump&amp;amp;conditions%5Bpresidential_document_type%5D=executive_order&amp;amp;conditions%5Btype%5D%5B%5D=PRESDOCU&amp;amp;order=newest&amp;amp;per_page=20"&lt;/span&gt;
  &lt;span class="na"&gt;frequency&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;daily"&lt;/span&gt;

&lt;span class="na"&gt;extract&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;events&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;limit&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;
    &lt;span class="na"&gt;selector&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;results[*]"&lt;/span&gt;
    &lt;span class="na"&gt;fields&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;document_number&lt;/span&gt;
      &lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;title&lt;/span&gt;
      &lt;span class="na"&gt;order_number&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;executive_order_number&lt;/span&gt;
      &lt;span class="na"&gt;publication_date&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;publication_date&lt;/span&gt;
      &lt;span class="na"&gt;signing_date&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;signing_date&lt;/span&gt;
      &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pdf_url&lt;/span&gt;

&lt;span class="na"&gt;download&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;extensions&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;.pdf"&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
  &lt;span class="na"&gt;timeout&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;60&lt;/span&gt;

&lt;span class="na"&gt;gpt&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;prompt&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
    &lt;span class="s"&gt;Analyze this Executive Order document:&lt;/span&gt;
    &lt;span class="s"&gt;- Purpose: 1-2 sentences&lt;/span&gt;
    &lt;span class="s"&gt;- Key provisions: 3-5 bullet points&lt;/span&gt;
    &lt;span class="s"&gt;- Agencies involved: list&lt;/span&gt;
    &lt;span class="s"&gt;- Revokes/amends: if any&lt;/span&gt;
    &lt;span class="s"&gt;- Policy impact: neutral analysis&lt;/span&gt;

    &lt;span class="s"&gt;This is the text: {{ text }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When a new  executive order appears, the system automatically generates a concise summary like this:&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Executive Order 14319 of July 23, 2025&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;em&gt;Preventing Woke AI in the Federal Government&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Purpose&lt;/strong&gt;: Ensure reliable and unbiased AI outputs for Americans by preventing ideological bias, particularly from DEI-related content.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Policy impact&lt;/strong&gt;: This aims to ensure government AI provides accurate information, potentially increasing transparency in federal AI use.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.govinfo.gov/content/pkg/FR-2025-07-28/pdf/2025-14217.pdf" rel="noopener noreferrer"&gt;View full document&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Current Implementation Status
&lt;/h2&gt;

&lt;p&gt;The system now includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Basic Flask web interface for viewing the monitoring feed&lt;/li&gt;
&lt;li&gt;CLI for adding new monitoring templates&lt;/li&gt;
&lt;li&gt;Support for local LLM processing (Deepseek as default)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Important note&lt;/strong&gt;: During monitoring execution, the web interface becomes temporarily unresponsive as the system currently runs in single-threaded mode. This architectural limitation will be addressed in future updates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Project Philosophy
&lt;/h2&gt;

&lt;p&gt;The open-source project (&lt;a href="https://github.com/alfablend/rostral.io" rel="noopener noreferrer"&gt;Rostral.io on GitHub&lt;/a&gt;) is designed for:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Researchers needing to track complex sources (like Huginn but with built-in AI)&lt;/li&gt;
&lt;li&gt;Anyone who wants to monitor important changes (like changedetection.io but with semantic parsing)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Key differentiator: AI-powered summarization of documents and news stored in one feed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Technical Implementation
&lt;/h2&gt;

&lt;p&gt;For large documents (common with government PDFs), we:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Extract relevant text sections using keywords&lt;/li&gt;
&lt;li&gt;Combine fragments to fit the AI's context window&lt;/li&gt;
&lt;li&gt;Process through local LLM (Deepseek by default)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This avoids expensive API costs while maintaining quality. The system works as a pipeline with configurable stages (fetch, extract, download, normalize, etc.).&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/yourusername/rostral.io
&lt;span class="nb"&gt;cd &lt;/span&gt;rostral.io
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt

&lt;span class="c"&gt;# Install Tesseract OCR&lt;/span&gt;
&lt;span class="c"&gt;# Download GGUF model (see repo instructions)&lt;/span&gt;

&lt;span class="c"&gt;# Run with web interface:&lt;/span&gt;
python3 app.py

&lt;span class="c"&gt;# Or CLI-only mode:&lt;/span&gt;
python3 &lt;span class="nt"&gt;-m&lt;/span&gt; rostral
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Would this approach be useful for your monitoring needs? What other government sources would you want templates for? Federal contracts? Patent filings? Regulations?&lt;/p&gt;




&lt;p&gt;&lt;a href="https://github.com/alfablend/rostral.io" rel="noopener noreferrer"&gt;Explore the project on GitHub&lt;/a&gt; | Contribute via pull requests&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>python</category>
      <category>ai</category>
      <category>flask</category>
    </item>
  </channel>
</rss>
