Skip to content

A RAG-based system extracts text from user-provided URLs, stores embeddings in a vector database, and uses an LLM to answer queries with context-specific answers derived solely from the extracted content. It features a robust backend and frontend for seamless interaction.

Notifications You must be signed in to change notification settings

buttaRahul/Rag-QuerySystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rag-QuerySystem

This project implements a Retrieval-Augmented Generation (RAG) query system using LangChain and various tools to provide intelligent answers from user-provided URLs. It features a backend built with FastAPI and a frontend powered by React and Material-UI.


Getting Started

Follow the steps below to clone the repository, install dependencies, and start both the backend and frontend servers.

Prerequisites

  • Python 3.8 or higher
  • Node.js 16 or higher
  • npm (comes with Node.js)
  • Git

Clone the Repository

# Clone the repository to your local machine
git clone https://github.com/buttaRahul/Rag-QuerySystem.git

# Navigate to the project directory
cd Rag-QuerySystem

Backend Setup

Install Dependencies

# Navigate to the backend directory
cd backend

# Create a virtual environment
python -m venv venv

# Activate the virtual environment
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate

# Install Python dependencies
pip install -r requirements.txt

Start the Backend Server

Once dependencies are installed, start the backend server:

# Run the FastAPI backend server
uvicorn main:app --reload

# The server will run at http://127.0.0.1:8000

Frontend Setup

Install Dependencies

Navigate to the frontend directory and install the required JavaScript dependencies:

# Navigate to the frontend directory
cd ../frontend

# Install npm packages
npm install

Start the Frontend Server

# Start the React frontend server
npm run dev

# The frontend server will run at http://localhost:3000

Accessing the Application

Once both the backend and frontend servers are running:


Project Structure

  • backend/: Contains the FastAPI backend code.
  • frontend/: Contains the React frontend code.
  • requirements.txt: Lists Python dependencies for the backend.
  • package.json: Lists JavaScript dependencies for the frontend.

Project Demonstration

click the image to watch video demonstration Demo Video

About

A RAG-based system extracts text from user-provided URLs, stores embeddings in a vector database, and uses an LLM to answer queries with context-specific answers derived solely from the extracted content. It features a robust backend and frontend for seamless interaction.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published