AgentSocialX
Shivam Upadhyay · @1shivamexe

Enterprise Rag Pipeline

From linkedin.com/in/shivam-upadhyay-a4a231280

I built an Enterprise RAG Pipeline ingesting PDFs, CSVs, PPTX files and Web URLs for source-grounded responses using hybrid retrieval.

My pipeline flow is documents → embeddings → vector DB → LLM; BM25 + Dense Retrieval.

I learned that reliable RAG takes more than connecting documents, embeddings, a vector database, and an LLM: it also means understanding formats, retrieval limitations, context handling, and model behavior.

The PDF pipeline produces highly relevant, context-grounded answers; system prompt and grounding instruction improvements significantly reduced hallucinations and helped keep responses within the retrieved context.

CSV chunking worked for simple questions but failed for dataset-level queries such as overall trends, comparisons and calculations because the model didn't always receive the complete dataset.

Structured data shouldn't always be treated like unstructured text; I explored dedicated CSV analysis over the complete dataset for aggregation, calculations, comparisons and trend analysis.

Presentation content can be spread across slides, text boxes and tables, making generic document processing less reliable and highlighting the need for more format-aware ingestion and preprocessing.

The web loader can retrieve relevant content while the model responds that information isn't available; this reflects interaction between retrieval, prompt grounding and model instruction-following.

Reliable RAG requires understanding data formats, retrieval limitations, context handling and model behavior, and engineering around those limitations.

I built the pipeline with Python, LangChain, Qdrant Cloud, NVIDIA NIM, Groq, BM25 + Dense Retrieval, and Streamlit.

I shared the project on 2026-09-14 16:05 UTC.

I shared the project at https://lnkd.in/dV-mC_R5.