An AI-powered Retrieval-Augmented Generation (RAG) platform that transforms any website into a searchable knowledge base.
The platform crawls websites, indexes their content, performs keyword and semantic search, and generates grounded AI answers using Large Language Models (LLMs).
- Multithreaded crawler
- Domain-restricted crawling
- URL normalization
- Internal link discovery
- Crawl graph visualization
- TF-IDF Ranking
- Exact phrase search
- Autocomplete suggestions
- Search analytics
- Pagination
- Semantic Search using embeddings
- Vector Similarity Search
- Retrieval-Augmented Generation (RAG)
- Groq LLM integration
- Source-aware responses
- Crawl any documentation website
- Automatic text chunking
- Embedding generation
- Dynamic indexing
- Reusable knowledge bases
- Docker support
- Docker Compose
- Easy local setup
User
│
▼
Flask Web Interface
│
┌─────────────┴─────────────┐
│ │
▼ ▼
TF-IDF Search Engine RAG Pipeline
│ │
▼ ▼
SQLite Database Sentence Transformers
│
▼
Vector Similarity Search
│
▼
Groq LLM
│
▼
AI Response
| Category | Technologies |
|---|---|
| Backend | Python, Flask |
| Database | SQLite |
| Search | TF-IDF, Inverted Index |
| AI | Sentence Transformers, Groq API |
| Crawling | BeautifulSoup, Requests |
| Deployment | Docker, Docker Compose |
| Version Control | Git, GitHub |
website-rag-platform/
│
├── assets/
│ ├── home.png
│ ├── links.png
│ ├── RAG.png
│ └── auto complete.png
│
├── crawler/
├── frontend/
├── indexer/
├── rag/
├── search/
├── database/
├── data/
├── Dockerfile
├── docker-compose.yml
├── requirements.txt
└── README.md
git clone https://github.com/devanupriyj-code/website-rag-platform.git
cd website-rag-platformCreate a .env file.
GROQ_API_KEY=your_groq_api_keydocker compose up --buildVisit:
http://localhost:5000
Install dependencies
pip install -r requirements.txtRun the application
python -m frontend.appThe crawler visits website pages, extracts text and links, and stores them in SQLite.
↓
The indexer creates a TF-IDF inverted index for fast keyword searching.
↓
Website content is chunked and converted into dense vector embeddings using Sentence Transformers.
↓
The system performs:
- Keyword Search (TF-IDF)
- Semantic Search (Vector Similarity)
↓
Relevant chunks are retrieved and passed to the Groq LLM to generate grounded, context-aware responses.
- ✅ Built a search engine completely from scratch
- ✅ Multithreaded web crawler
- ✅ Dynamic website indexing
- ✅ Semantic search with embeddings
- ✅ Retrieval-Augmented Generation (RAG)
- ✅ Dockerized deployment
- ✅ Modular architecture
- ✅ Supports crawling any documentation website
- BM25 Ranking
- Redis Caching
- PostgreSQL Support
- Multiple Knowledge Bases
- Authentication
- Citation Links
- Dark Mode
- Incremental Crawling
- Hybrid Search (TF-IDF + Semantic)
Traditional search engines return relevant documents.
This platform goes one step further by retrieving the most relevant information and using Retrieval-Augmented Generation (RAG) to generate accurate, grounded, and explainable answers while reducing hallucinations.
First-Year B.Tech Computer Science Engineering Student
Interested in:
- 🔍 Search Systems
- 🤖 Artificial Intelligence
- ⚙️ Backend Development
- 📚 Information Retrieval
- 🌍 Open Source
⭐ If you found this project useful, consider giving it a star!



