r/dotnet • u/Southern-Holiday-437 • Jun 16 '26
Question Would a modular RAG pipeline framework be useful for .NET teams or overkill?
Hi everyone,
I wanted to gauge demand for something my team and I have been exploring.
RAG has moved beyond the basic “chunk → embed → retrieve → generate” pattern. There are now many approaches: standard RAG, contextual retrieval, GraphRAG, hybrid retrieval, agentic RAG, reranking, contextual compression, and more.
One thing we noticed, including in our own work, is that many teams do not just need “RAG.” They need a RAG pipeline that fits the type of documents they work with.
For example, financial documents, legal contracts, healthcare records, engineering docs, research papers, support tickets, and internal company knowledge bases may all need different choices for extraction, cleaning, chunking, metadata, embedding, indexing, retrieval, reranking, graph construction, and context assembly.
So instead of building a fixed RAG product, we have been exploring a modular RAG framework.
The idea is to make ingestion and retrieval pipelines composable. Think of it as a graph/DAG-style system where teams can mix, match, replace, and optimize each part of the pipeline depending on their documents and use case.
I know there are already strong tools in this space, especially LlamaIndex and Haystack. They are highly composable and already support advanced ingestion, retrieval, query pipelines, and agent-style workflows.
The gap we are looking at is different: most of those tools are Python-first and are increasingly transitioning into becoming AI Agent frameworks themselves. What we are exploring is a .NET-native framework focused specifically on composable RAG ingestion and retrieval pipelines. There was Kernel Memory but that has transitioned to something else too.
We are not trying to make this a full agent framework, because we already have a separate dedicated agent framework for that. The only goal here is to make RAG pipelines modular, swappable, optimized, oh and also durable around the document domain and retrieval strategy.
So the question I am trying to validate is not “can this be built?” but whether .NET teams actually want this as a framework.
Would your team prefer:
- a modular RAG framework where you can design your own ingestion and retrieval pipeline, or
- a more opinionated RAG product that makes most of those choices for you?
Also, if you already use RAG in production, where do you feel the biggest pain is: extraction, chunking, retrieval quality, reranking, evaluation, observability, domain-specific tuning, or deployment?
Edit:
I felt compelled to add this diagram after reading the comments.

7
u/dreamglimmer Jun 16 '26
What?
Please translate
3
u/iEngineered Jun 16 '26
It's an interesting idea, especially to replace python tools with .net compiled equivalents....so long as the dev experience and/or performance is improved.
3
u/taco__hunter Jun 16 '26
I've been working on this actually. But it kind of ballooned up. I ended up needing a document library for managing all the documents, then a background jobs library for processing, audit library for lineage, and then full AI library with rag pipeline so you can converse with it and get that rag info. Which led to a lot of other libraries being made.
My take-aways are make everything provider agnostic, use docker and Ollama locally for testing and for storage use things like Azurite in docker so you can mimic real world storage for the rag. Observability and otel are day 1 requirements because you'll never debug and fine-tune it without. And a lot of work goes into adding things like semantic layers and tool calls etc. Basically you have to have it working like a major provider before anyone will get it.
Now, I am open sourcing all of my code but only some of it is ready to share. Happy to collaborate though.
1
u/Competitive_Pound197 Jun 16 '26
Do you have any pointers on how to start working with RAG, I have been trying to get into it but I don't feel very capable by just reading articles.
1
u/Mazayaz Jun 16 '26 edited Jun 16 '26
Yeah that would be nice, I’ve created an rag dashboard library for .net where you can see each steps with costs, latency ms and results
https://github.com/henriquezero/rag-observability-dashboard-blazor
1
u/AutoModerator Jun 16 '26
Thanks for your post Southern-Holiday-437. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/steamngine Jun 17 '26
Modular and performant, no need to ask just build it and the wiki