rag
AI Research Workspace
Most of my earlier projects were built around Express.js for the backend. While working on AI-focused applications, I realized that building serious AI systems requires a different backend ecosystem and a deeper understanding of how AI workflows actually operate. That led me to learn FastAPI, and I used this project to not only learn it, but also polish my backend and AI engineering skills by building something from the ground up. Introducing π AI Research Workspace (AIRW) β an AI-powered workspace designed to interact with and retrieve information from different types of user data. πΉ What I explored and implemented: β’ FastAPI for the backend and API architecture β’ LangChain & LangGraph for building structured AI workflows and agentic execution β’ RAG (Retrieval-Augmented Generation) for document-based question answering β’ Document chunking, embeddings, vector search & hybrid retrieval β’ Semantic retrieval using embeddings combined with traditional keyword-based retrieval β’ Query rewriting and retrieval pipelines to improve search quality β’ MongoDB Atlas Vector Search for storing and retrieving embeddings β’ Supabase Storage for handling uploaded files and generated content β’ Groq for LLM-powered generation and reasoning β’ Tavily for web-based research when web access is enabled β’ Memory system for retaining useful user-specific information β’ Tool-based agent execution with planning and execution stages π Supported data & AI capabilities AIRW can work with multiple types of content, including: π PDF documents π CSV & Excel files π§ Audio files with transcription and timestamp-based retrieval πΌοΈ Images using vision capabilities For documents, the system processes the content into smaller chunks, generates embeddings for those chunks, and stores them for semantic retrieval. When a user asks a question, AIRW retrieves the most relevant chunks. The system can also provide sources, allowing users to see where the information came from π€ It isn't limited to document Q&A either. AIRW supports: β’ Document summarization β’ Retrieval-based questions β’ General conversation β’ Web-assisted research β’ Memory-based responses β’ Python-powered analysis and visualization β’ Excel automation and modification β’ Multi-step tool execution through an agent workflow One of the things I particularly enjoyed was implementing many of these components myself instead of treating AI frameworks as black boxes. Understanding how chunking, embeddings, retrieval, planning, execution, memory, and tool orchestration work together has been one of the most valuable parts of this project. Github Repo: https://github.com/WaleedImran2007/AI-Research-Workspace Live Demo: https://airw.waleedimran.me Still learning. Still improving. π AI ArtificialIntelligence AIEngineering GenerativeAI RAG LangChain LangGraph FastAPI Python MongoDB AgenticAI MachineLearning BackendDevelopment FullStackDevelopment
π Built a Basic RAG and an Advanced RAG System from Scratch β Without LangChain
To understand how RAG works internally, I first built a Basic RAG Pipeline: Basic RAG PDF β Extraction β Chunking β Embeddings β FAISS Search β Top-K Chunks β Prompt β LLM β Answer It works well for simple questions, but struggles with exact keywords, IDs, and complex queries. So I built an Advanced RAG Pipeline: Advanced RAG PDF β Extraction β Chunking β Embeddings β Dense + Sparse Index β Query Understanding β Dense Retrieval + Sparse Retrieval β Reciprocal Rank Fusion (RRF) β Cross-Encoder Reranking β Noise Filtering β Context Fusion β Prompt β LLM β Answer Key Improvements β Semantic Search (FAISS) β Exact Keyword Search (BM25) β Hybrid Retrieval β Cross-Encoder Reranking β Duplicate Removal β Better Context Selection β Reduced Hallucinations One of the biggest lessons from this project: A better RAG system isn't always about using a better LLM. It's often about building a better retrieval pipeline. Tech Stack: Python β’ Streamlit β’ FAISS β’ Sentence Transformers β’ BM25 β’ Cross-Encoder Reranker β’ Groq RAG GenAI LLM AIEngineering MachineLearning Python FAISS BuildInPublic
Shipped: Corvit AI Chatbot - Smarter Way to Help Students
What if students could just ask instead of searching 5 different campus pages? I built an AI-powered chatbot for Corvit Systems that answers questions about: β’ Courses, certifications, and NAVTTC programs β’ Class timings, instructors, and facilities β’ Fees, career opportunities, and more Key Features: AI-powered conversational assistance RAG-based knowledge retrieval for accurate answers Context-aware responses + online search Clean web interface Tech Stack: GPT-OSS-120B | RAG | JavaScript | Tailwind CSS | Netlify Goal: Turn a traditional info website into an intelligent student assistant. More improvements coming soon! AI RAG Chatbot WebDev JavaScript EdTech CorvitSystems