Vol. 15 No. 2 (2025): IJCRT, Volume 15, Issue 2, 2025
Journal Article

RAG Bot for Random Documents

D. Anjaneyulu
Assistant Professor, KLM College of Engineering for Women, Kadapa, India.
P. Bhaskar
Assistant Professor, KLM College of Engineering for Women, Kadapa, India.
S. Harini Yadav
Assistant Professor, KLM College of Engineering for Women, Kadapa, India.

Published 2025-05-17

Keywords

  • Ragbot,NLP.

How to Cite

D. Anjaneyulu, P. Bhaskar, & S. Harini Yadav. (2025). RAG Bot for Random Documents. IJCRT Research Journal | UGC Approved and UGC Care Journal | Scopus Indexed Journal Norms, 15(2), 50722–50728. https://doi.org/10.5281/zenodo.15450517

Abstract

The "RAG Bot for Random Documents (Offline)" is an intelligent AI-powered system designed to efficiently extract, understand, and respond to queries based on offline documents. It utilizes the power of Retrieval-Augmented Generation (RAG) to combine the strengths of document retrieval with natural language generation, offering accurate, context-aware answers without the need for an internet connection. The bot supports multiple file formats such as PDF and TXT, making it highly flexible and practical for various user needs, including researchers, students, legal professionals, and business analysts. Unlike traditional document search tools that rely solely on keyword matching, the RAG Bot uses sentence embeddings and semantic search to understand the true meaning of queries. This is achieved using transformer models like Sentence-BERT for generating embeddings and Flan-T5 for generating natural language answers. The backend incorporates modules for extracting document content, embedding textual data, and indexing with FAISS for efficient similarity-based retrieval. The frontend, built using Flask and HTML/CSS, provides a user-friendly interface for uploading documents and asking questions