Skip to content

Sharondroid/RAGMind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

RAGMind

AI-Powered Website Intelligence & Dataset Builder

RAGMind is a web crawling and dataset generation platform designed for Retrieval-Augmented Generation (RAG), AI training pipelines, semantic search systems, and knowledge base construction.

The system crawls websites, extracts meaningful content, removes duplicate information, classifies pages, chunks content into AI-friendly segments, and exports structured datasets ready for LLM workflows.

πŸ“Έ Live Dashboard Preview

Crawling Intelligence Dashboard

Dashboard

Active Crawl Process

Crawling

Dataset Output

Output


Features

Intelligent Website Crawling

  • Internal link discovery
  • Sitemap seeding
  • Robots.txt compliance
  • URL normalization
  • Priority-based crawling
  • Depth control
  • Anti-bot page detection

Smart Content Extraction

  • Trafilatura-powered extraction
  • Boilerplate removal
  • XML support
  • Dynamic page support via Playwright
  • Automatic weak-content detection

Data Quality Layer

  • Exact duplicate detection
  • Near-duplicate detection
  • Content validation
  • Block-page filtering

AI Dataset Processing

  • Page classification
  • Content chunking
  • Importance scoring
  • Metadata enrichment

Export Formats

  • JSONL (LLM / RAG Ready)
  • CSV

Interactive Dashboard

  • Live crawl monitoring
  • Dataset statistics
  • Export controls
  • Responsive UI
  • LangChain-inspired intelligence dashboard

Architecture

Website
   β”‚
   β–Ό
Crawler
   β”‚
   β–Ό
Content Extraction
   β”‚
   β–Ό
Quality Filtering
   β”‚
   β–Ό
Deduplication
   β”‚
   β–Ό
Classification
   β”‚
   β–Ό
Chunking
   β”‚
   β–Ό
Dataset Builder
   β”‚
   β–Ό
JSONL / CSV Export

Project Structure

RAGMind/

β”œβ”€β”€ crawler/
β”‚   β”œβ”€β”€ crawl.py
β”‚   └── playwright_fetcher.py
β”‚
β”œβ”€β”€ extractor/
β”‚   └── clean.py   
β”‚   └── xml_parser.py 
β”œβ”€β”€ processor/
β”‚   β”œβ”€β”€ chunk.py
β”‚   β”œβ”€β”€ dataset_builder.py
β”‚   └── exporter.py
β”‚
β”œβ”€β”€ classifier/
β”‚   └── page_type.py
β”‚
β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ normalize.py
β”‚   β”œβ”€β”€ sitemap.py
β”‚   β”œβ”€β”€ robots.py
β”‚   β”œβ”€β”€ dedupe.py
β”‚   β”œβ”€β”€ page_quality.py
β”‚   └── content_quality.py
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ style.css
β”‚   └── app.js
β”‚
β”œβ”€β”€ output/
β”‚
β”œβ”€β”€ main.py
└── README.md

Installation

playwright install

Clone the repository:

git clone https://github.com/sharondroid/RAGMind.git

cd RAGMind

Create virtual environment:

python -m venv venv

Activate:

Windows

venv\Scripts\activate

Mac/Linux

source venv/bin/activate

Install dependencies:

pip install -r requirements.txt

Running the API

Start FastAPI:

python -m uvicorn main:app --reload

API:

http://127.0.0.1:8000

Dashboard:

http://127.0.0.1:8000/ui

Example Crawl

Request:

POST /crawl?url=https://docs.stripe.com&max_pages=20

Response:

{
  "pages_crawled": 20,
  "dataset_records": 143,
  "exported": true
}

Output Example

JSONL

{
  "id": 11,
  "content": "AWS Cloud Practitioner Tutorial ... (full page text)",
  "content_stats": {
    "length": 1011,
    "total_page_length": 1011
  },
  "source": {
    "url": "https://www.w3schools.com/aws/index.php",
    "title": "AWS Cloud Practitioner Tutorial",
    "page_type": "pricing"
  },
  "chunk": {
    "index": 0
  },
  "crawl": {
    "used_playwright": false,
    "priority_score": null,
    "depth": null,
    "is_duplicate": false
  },
  "enrichment": {
    "keywords": ["cloud", "tutorial", "practitioner", "learn", "skills", "time", "overview", "services", "large", "content"],
    "importance_score": 8
  }
}

Use Cases

  • RAG Dataset Creation
  • Enterprise Knowledge Bases
  • AI Chatbots
  • Internal Search Engines
  • Semantic Search Systems
  • Documentation Mining
  • LLM Fine Tuning Pipelines
  • Content Intelligence Platforms

Tech Stack

  • Python
  • FastAPI
  • BeautifulSoup
  • Trafilatura
  • Playwright
  • HTTPX
  • JavaScript
  • HTML
  • CSS

Future Roadmap

  • Vector Embeddings
  • Semantic Search Layer
  • LangChain Integration
  • LlamaIndex Integration
  • Async Concurrent Crawling
  • Distributed Crawling
  • PostgreSQL Storage
  • FAISS Vector Store
  • OpenAI Embedding Support
  • Crawl Scheduling

Author

Built by Sharon Attafi

AI Systems Developer

Product Manager/ BizOps

Ghana

About

AI-powered web intelligence system that crawls websites, extracts structured content, and builds LLM-ready datasets for RAG pipelines.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors