<?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: Vlad</title>
    <description>The latest articles on DEV Community by Vlad (@glemiu6).</description>
    <link>https://dev.to/glemiu6</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%2F3906919%2Ff86c7f85-5475-4016-b22c-b21c826b55ba.jpeg</url>
      <title>DEV Community: Vlad</title>
      <link>https://dev.to/glemiu6</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/glemiu6"/>
    <language>en</language>
    <item>
      <title>I published my first Python package — a reusable RAG core library</title>
      <dc:creator>Vlad</dc:creator>
      <pubDate>Fri, 01 May 2026 23:29:37 +0000</pubDate>
      <link>https://dev.to/glemiu6/i-published-my-first-python-package-a-reusable-rag-core-library-ogc</link>
      <guid>https://dev.to/glemiu6/i-published-my-first-python-package-a-reusable-rag-core-library-ogc</guid>
      <description>&lt;p&gt;If you've ever built a RAG (Retrieval-Augmented Generation) system, you know the pain: every new project means rewriting the same boilerplate — vector store setup, embeddings, chunking, LLM wiring. I got tired of it, so I packaged it up.&lt;br&gt;
pyragcore is a modular RAG library built on FAISS and Ollama. The idea is simple: give you a solid foundation so you can focus on your actual use case instead of reinventing the plumbing every time.&lt;br&gt;
What I'm most proud of is that it runs entirely locally — no external APIs, no data leaving your machine. Just Ollama for the LLM and SentenceTransformers for embeddings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's inside&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;FAISS vector store with persistence, deduplication, and metadata filtering&lt;/li&gt;
&lt;li&gt;Semantic search with MMR support&lt;/li&gt;
&lt;li&gt;Local LLM inference via Ollama&lt;/li&gt;
&lt;li&gt;Modular installs — grab only what you need&lt;/li&gt;
&lt;li&gt;Abstract base classes so you can extend it your way&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;How to install it:&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;pip&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt; &lt;span class="n"&gt;pyragcore&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;all&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;pyragcore&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;BasePipeline&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;MyPipeline&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;BasePipeline&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;ingest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="c1"&gt;# your ingestion logic here
&lt;/span&gt;        &lt;span class="bp"&gt;...&lt;/span&gt;

&lt;span class="n"&gt;pipeline&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MyPipeline&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;persist_dir&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;./memory&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;output_folder&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;./output&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;source_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pipeline&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ingest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;./my_document.pdf&lt;/span&gt;&lt;span class="sh"&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;pipeline&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ask&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 is this document about?&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;source_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;source_id&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;answer&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's still early days (v0.1.11) and I'm actively working on it, but it's already powering a couple of projects I built — a document chat bot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pypi.org/project/pyragcore/" rel="noopener noreferrer"&gt;PyPI Link&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/glemiu6/pyragcore" rel="noopener noreferrer"&gt;GitHub Repo&lt;/a&gt;  &lt;/p&gt;

&lt;p&gt;Would love any feedback, ideas, or contributions. If you build something with it, let me know! &lt;/p&gt;

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