Skip to content

About

RAG with Langchain

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

📚 Multimodal Retrieval-Augmented Generation (RAG) for Self-Directed Learning

📝 Project Overview

This project implements a Multimodal Retrieval-Augmented Generation (RAG) pipeline designed to revolutionize educational practices by promoting self-directed learning. The system functions as an "experienced virtual secondary teacher" that provides step-by-step guidance toward solutions, specifically avoiding "spoon-fed" answers to foster critical thinking. The RAG system is grounded in rigorous academic material, utilizing questions from VWO exam papers (Dutch pre-university final examinations) to ensure the generated guidance is accurate and appropriately challenging.


🚀 Key Features and Pedagogical Goals

  • Multimodal Retrieval: Processes and retrieves both text and image data from complex source documents (PDFs).
  • Pedagogical Constraint: Enforces a strict output format that prioritizes guidance over direct answers, ensuring the model's response structure is:
    1. Detailed Image Descriptions.
    2. Key Text Explanations.
    3. Step-by-Step Guidance (Crucially, no final answer provided).
  • Hallucination Reduction: The RAG approach enhances the LLM's grounding with precise, context-specific information, significantly reducing the risk of generating inaccurate or fabricated content.
  • Knowledge Scoping: The model's knowledge is intentionally scoped to the provided documents, ensuring responses are relevant and tailored to the secondary school academic level.

⚙️ Technical Stack

Component Technology/Library Function
Framework LangChain Used to build and connect the modular RAG pipeline components efficiently.
LLM GPT-4o (Multimodal) Generates guided, context-aware responses based on augmented text and image inputs.
Embedding Model CLIP Model Converts text queries, document text, and images into unified numerical vectors.
Vector Store FAISS Indexes and stores embedding vectors for high-efficiency similarity search.
Data Format Base64 Used for serialization and storage of image data before LLM input.

▶️ Future Usage and Integration

This can be readily turned into a python file and this RAG pipeline can be integrated into a chatbot interface.


⚙️ Contributor

Lee Pei Xin

About

RAG with Langchain

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages