Menu

1 / 2

I published my first Python package — a reusable RAG core library

DEV Community·Vlad·6 months ago
#FjixQdK5
#ai#rag#python#opensource#built
Reading 0:00
15s threshold

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.

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.

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.

What's inside

FAISS vector store with persistence, deduplication, and metadata filtering

Semantic search with MMR support

Local LLM inference via Ollama

Modular installs — grab only what you need

Abstract base classes so you can extend it your way

How to install it:

pip install pyragcore [ all ]

Enter fullscreen mode

Exit fullscreen mode

from pyragcore import BasePipeline

class MyPipeline (…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.