DevConnectDevConnect
Sign up Β· Log in

rag

w@waleedimran

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

4
k@kavya282005

πŸš€ 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

4
a@arshadmalaika451

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

3
c@chiscookeke11

RAG

For a while now, I've been experimenting with Retrieval-Augmented Generation (RAG), exploring how to make LLMs answer questions using information retrieved from actual documents. Today's experiment with Raggy took me through another complete RAG pipeline. Document ingestion: Processed a research paper in PDF format. Text chunking: Split the document into 82 chunks. Vector embeddings: Used nomic-embed-text to convert text into 768-dimensional vector representations. Semantic search: Retrieved the top 5 chunks based on similarity to the user's query. LLM inference: Used a locally running qwen3:4b model to generate an answer from the retrieved context. Retrieval tracing: Inspected chunk rankings, similarity scores, source pages, token usage, and execution timings. Then I asked: β€œWhat was the IoT adoption rate across the companies?” Raggy returned 74.4%, grounded in the retrieved document context. But here's where it gets interesting. The trace exposed duplicate chunks in the retrieval results. The generation stage also took significantly longer than embedding and retrieval in this run. These are exactly the kinds of details I want to investigate. Because building RAG isn't simply about connecting a vector database to an LLM. It's about understanding document parsing, chunking strategies, embedding models, vector similarity, top-k retrieval, context construction, grounding, and inference latency. A system can return the right answer and still have room for improvement. My next focus is making retrieval more reliable, reducing redundant context, and improving response time without sacrificing answer quality. Still experimenting. Still debugging. Still learning by building. The goal isn't just to make AI work. It's to understand the engineering behind making it work well. RAG AIEngineering LLM Python MachineLearning softwareengineering

1