Back to Projects

VedAI – AI Chatbot on Bhagavad Gita

An AI-powered chatbot that provides insights and teachings from the Bhagavad Gita using advanced RAG technology

VedAI Project

Project Overview

VedAI is an innovative AI-powered chatbot that brings ancient wisdom from the Bhagavad Gita to modern users through conversational AI. Built using Python and FastAPI, it leverages Retrieval-Augmented Generation (RAG) technology with a FAISS vector database to provide accurate and contextually relevant responses based on the sacred text.

Key Features

  • RAG Model Integration: Utilizes Retrieval-Augmented Generation with FAISS vector database for efficient and accurate retrieval of teachings from the Bhagavad Gita
  • Persistent Chat History: Implements user-specific chat history storage to maintain context across sessions and provide personalized recommendations
  • Lightweight Deployment: Optimized for efficient deployment with minimal resource requirements while maintaining high performance
  • Advanced NLP: Seamless integration of machine learning and natural language processing for natural conversations

Technical Implementation

Backend Architecture

  • Built with Python and FastAPI for high-performance API endpoints
  • Integrated FAISS (Facebook AI Similarity Search) for efficient vector similarity search
  • Implemented RAG pipeline for accurate context retrieval and response generation
  • Designed persistent storage system for user chat histories

Machine Learning & NLP

  • Utilized embedding models for semantic understanding of queries
  • Implemented vector indexing for fast retrieval of relevant passages
  • Applied prompt engineering for contextually appropriate responses
  • Optimized model inference for production deployment

Technologies Used

PythonFastAPIRAGFAISSNLPMachine LearningVector DatabaseEmbeddings

Project Timeline

July 2025 – September 2025

Challenges & Solutions

  • Semantic Understanding: Implemented advanced embedding techniques to capture the deep philosophical meanings in the text
  • Context Preservation: Designed an efficient chat history system that maintains conversation flow while keeping the system lightweight
  • Response Accuracy: Fine-tuned the RAG pipeline to ensure responses are faithful to the original teachings

Future Enhancements

  • Multilingual support for broader accessibility
  • Voice interaction capabilities
  • Integration with other spiritual texts
  • Advanced personalization based on user preferences and history