Developing Retrieval Augmented Generation (RAG) based LLM Systems from PDFs: An Experience Report

This paper presents an experience report on the development of Retrieval Augmented Generation (RAG) systems using PDF documents as the primary data source. The RAG architecture combines generative capabilities of Large Language Models (LLMs) with the precision of information retrieval. This approach has the potential to redefine how we interact with and augment both structured and unstructured knowledge in generative models to enhance transparency, accuracy, and contextuality of responses. The paper details the end-to-end pipeline, from data collection, preprocessing, to retrieval indexing and response generation, highlighting technical challenges and practical solutions. We aim to offer insights to researchers and practitioners developing similar systems using two distinct approaches: OpenAI's Assistant API with GPT Series and Llama's open-source models. The practical implications of this research lie in enhancing the reliability of generative AI systems in various sectors where domain-specific knowledge and real-time information retrieval is important. The Python code used in this work is also available at: https://github.com/GPT-Laboratory/RAG-LLM-Development-Guidebook-from-PDFs.

Paper

References (9)

03“Cost Estimation for RAG Application Using GPT-4o”2024 · Zenodo
04Pseudo relevance feed-back optimization2021 · Information Retrieval Journal
05Cross-lingual and multimodal retrieval-augmented generation modelsIEEE Transactions on Multi-media
06Knowledge-enhanced language models for information retrieval and beyondNetworks and Learning Systems
07Integrating dense vector search in elasticsearchElastic Technical Blog
08The haystack framework for neural searchHaystack Project Documentation
09Best practices for training large language models: Lessons from the fieldIEEE Transactions on Neural

Similar papers

© 2026 NYSGPT2525 LLC