Published 2025-05-17
Keywords
- Ragbot,NLP.
How to Cite
Copyright (c) 2025 IJCRT Research Journal | UGC Approved and UGC Care Journal | Scopus Indexed Journal Norms

This work is licensed under a Creative Commons Attribution 4.0 International License.
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