Powered by OpenAIRE graph
Found an issue? Give us feedback
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/ ZENODOarrow_drop_down
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Software . 2025
License: CC BY
Data sources: ZENODO
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Software . 2025
License: CC BY
Data sources: ZENODO
ZENODO
Software . 2025
License: CC BY
Data sources: Datacite
ZENODO
Software . 2025
License: CC BY
Data sources: Datacite
ZENODO
Software . 2025
License: CC BY
Data sources: Datacite
versions View all 3 versions
addClaim

RAG-LLM Pipeline for Extracting and Generating Insights from PDF/XML File

Authors: Barbhuiya, Shabnam; Alwi, Kamran Khan; Kumari, Renu; S., Anudev; Jawed, Moobashara; Simon, Worthington; Yadav, Gitanjali; +1 Authors

RAG-LLM Pipeline for Extracting and Generating Insights from PDF/XML File

Abstract

Open Notebook in Google Colab Introduction This notebook demonstrates how to build a semantic question-answering system over scientific PDFs using Retrieval-Augmented Generation (RAG) and Large Language Models (LLMs). It enables users to upload PDFs, extract content, embed it into a vector store, and query the document using natural language. Key Features PDF Upload & Text Extraction: Extract raw text from research papers using PyMuPDF Text Chunking & Embeddings: Convert text into meaningful chunks and generate embeddings using models like sentence-transformers RAG Pipeline: Store document chunks in a FAISS vector database Retrieve top-matching chunks based on user queries Generate context-aware answers with an LLM Natural Language Q&A: Ask questions like “What is the main finding?” or “What methods were used?” and get accurate answers drawn directly from the paper Installation Install all required dependencies: pip install pygetpapers pip install langchain pip install transformers pip install sentence-transformers pip install faiss-cpu pip install PyMuPDF pip install openai You’ll also need an API key for OpenAI or any supported LLM provider. Workflow Upload PDF Extract & preprocess text Chunk and embed text Store embeddings in FAISS Ask a question Retrieve relevant chunks + LLM = final answer Use Cases Scientific literature exploration Research paper understanding without reading entire texts Building AI-powered academic assistants Legal, policy, or technical document question answering Conclusion: The notebook contains the trustable resources which can be used to extract contextual information from the PDFs. This technology is scalable for a range of domains from academic research to policy documentation etc as they are published in PDF format. This approach not only saves the time of the researchers but also increases the accessibility of the content information.

  • BIP!
    Impact byBIP!
    selected citations
    These citations are derived from selected sources.
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    0
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Average
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Average
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Average
Powered by OpenAIRE graph
Found an issue? Give us feedback
selected citations
These citations are derived from selected sources.
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
0
Average
Average
Average