Skip to content

Raasta employs a diverse set of AI tools to effectively eliminate linguistic and economic barriers in the realm of urban mobility. With this innovative solution, users can effortlessly access real-time traffic advisories in their preferred language.

License

Notifications You must be signed in to change notification settings

AnouskaJ/raasta.ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Raasta - Bridging the gap between languages and travel. πŸ›Ί

Problem Statement πŸ“š

In bustling cities, such as those in India, transportation apps encounter challenges in providing quick and effective solutions due to diverse languages spoken by the users. Moreover, there is a significant issue related to transparent cost estimates for individuals with budget constraints.

Our Solution πŸ“±

Raasta employs a diverse set of AI tools to effectively eliminate linguistic and economic barriers in the realm of urban mobility. With this innovative solution, users can effortlessly access real-time traffic advisories in their preferred language. Furthermore, Raasta goes a step further by providing personalized route suggestions based on the user's budget, ensuring a seamless and cost-effective travel experience

Key Features πŸ€–

  • Lax.ai Integration: 🦾

    • Utilizes Lax.ai for predicting the most economic mode of travel between two locations.
  • Challan Reader: πŸ“„

    • OCR feature using pytesseract to extract information from images (challans in traffic safety being issued).
  • Voice to Voice Support: πŸ—£

    • Speech to Speech conversation feature using Distilled Whisper LLM, gTTS, and PLAYHT.
  • Live Support: πŸ”¬

    • Integrates real-time data, including live updates on traffic and routes through Google Maps APIs.
  • RAG Models with Custom Data: πŸ“Š

    • Uses Retrieval-Augmented Generation (RAG) models with custom data for accurate and reliable outputs.
  • Fine-tuned on Specific Dataset: πŸ“ˆ

    • RAG models like Llama2 are fine-tuned for more effective performance on a specific dataset.
  • Website Interface: πŸ’»

    • User-friendly website interface for easy interaction and navigation.
  • New Tech Integration: πŸ› 

    • Incorporates new technologies and frameworks for improved efficiency and functionality.

Architecture 🐏🐏

image
  • Custom Data Optimization:

    The RAG (Retrieval-Augmented Generation) stands out from traditional Language Models (LLMs) by leveraging custom data, a crucial factor that enhances accuracy and reliability in model outputs. Used mistral 7B model with Embedchain Framework

  • Vectorized Input Processing:

    Input documents undergo conversion into vectors, and these vectors are efficiently stored in a database that is vector db here.

  • Knowledge Retrieval:

    The architecture facilitates the retrieval of vectors based on user queries, enabling effective access to relevant information.

  • Flexible User Inputs:

    Users can contribute to the model's knowledge base by providing links or documents as knowledge sources for the RAG.

  • Real-time Traffic Updates:

    The system integrates live updates on traffic and routes, utilizing Google Maps APIs. This dynamic information is actively included in the model's training process.

  • Enhanced Model Training:

    The incorporation of real-time data ensures that the RAG remains up-to-date, particularly in the context of urban mobility and route recommendations. This feature contributes to the model's adaptability and responsiveness.

  • Lax.ai works on Google Maps API and a custom Machine learning model that predicts what is the most economic mode of travel between the given two places

  • Challan Feature has OCR Feature using pytesseract that extracts the info from the image and is added to the chatbot's knowledge base for additional questioning

  • A common chatbot that supports all your queries regarding road safety and any important topic related to travel, It supports 22 Indic Languages and is powered by AI4Bharat's model INDICTRANS2 LLM.

  • The query chatbot also has Speech to Speech conversation feature made out of a pipeline of Distilled Whisper LLM and gTTS, additionally we have also tested PLAYHT for the same use case

  • The RAG models like Llama2 were fine-tuned with PEFT β€” Parameter Efficient Fine Tuning methods like Qlora to save the VRAM efficiency

Technology Used πŸ’»

Web:

  • React + Vite
  • TailwindCSS
  • Flask

ML: 🧠

  • Data Scraping for real-time data(selenium & Beautiful soup)
  • RAG powered models.(Mistral 7B model with finetuning)
  • Indic language support. (Indictrans2 LLM from AI4bharat)
  • Speech to Speech models ( Distilled Whisper and PlayHT with gTTS) for Indic languages support
  • Finetuned Llama models on dataset for more efficiency
  • OCR models for image to text

Implementation of Raasta πŸŽ‡

Home Page View

WhatsApp Image 2024-01-28 at 14 19 28_ac27fe53

Chatbot with Language Support

WhatsApp Image 2024-01-28 at 16 22 48

WhatsApp Image 2024-01-28 at 16 25 37

Lax.ai

WhatsApp Image 2024-01-28 at 16 03 08

image

Live traffic updates

WhatsApp Image 2024-01-28 at 14 20 06

WhatsApp Image 2024-01-28 at 14 20 28

Challan summariser and helper LLM with indic languages support

WhatsApp Image 2024-01-28 at 14 21 41

WhatsApp Image 2024-01-28 at 16 30 39

WhatsApp Image 2024-01-28 at 16 30 39 (1)

Route visualiser using Maps

WhatsApp Image 2024-01-28 at 16 03 07

Future Scope and Scalability πŸš€

Raasta envisions further enhancements and scalability to meet evolving user needs and technological advancements:

  • Expansion of Live Data Integration:

    • Future iterations will focus on expanding the integration of real-time data, including live updates on traffic, routes, and other dynamic information, into the database.
  • Memory Augmentation for Chatbot:

    • To enhance the chatbot's capabilities, future plans include memory augmentation strategies. This involves increasing the memory allocated to the chatbot for better recall and responsiveness.
  • Scalability Through Additional Memory:

    • Scalability is a key consideration, and plans involve increasing memory capacity to accommodate growing data and user interactions effectively.
  • Fine-tuning of All Models:

    • Continuous refinement and fine-tuning of all models, including RAG models like Llama2, are on the roadmap. This ensures optimal performance and adaptability to diverse scenarios.
  • Improved Pipelines with Docker:

    • Implementation of better pipelines, including Docker containers, to streamline deployment processes and enhance overall system efficiency. Dockerization provides a modular and scalable approach to managing different components.
  • Enhanced Data Processing:

    • Future developments aim to incorporate advanced data processing techniques, allowing for faster and more efficient handling of large datasets and live updates.
  • Dynamic Language Support:

    • Expanding language support for the chatbot to include more languages, making Raasta accessible to an even wider user base.
  • User Feedback Mechanism:

    • Implementing a robust user feedback mechanism to gather insights, identify areas for improvement, and ensure a user-centric approach in future updates.
  • Optimization for Low Resource Environments:

    • Considerations for optimizing the system to operate effectively in low resource environments, ensuring accessibility across a spectrum of devices and network conditions.
  • Security Enhancements:

    • Strengthening security measures to safeguard user data and maintain the integrity of the system.

Raasta remains committed to continuous innovation, adaptability, and providing an ever-improving urban mobility solution.

Model results

Fine tuning results

image image image image

Setup Instructions πŸ› οΈ

Prerequisites

Before you proceed with the setup, ensure that you have the following prerequisites installed on your system:

Clone Raasta Repository

  1. Open your terminal or command prompt.

  2. Navigate to the directory where you want to clone the Raasta repository.

  3. Run the following command to clone the repository:

    git clone https://github.com/trisha-thakur/Raasta.git
    
    

Setup Virtual Environment (Optional but Recommended)

Navigate into the Raasta directory:

cd Raasta - navigate to current repository python -m venv venv - create venv venv\Scripts\activate - activate env

source venv/bin/activate activation command in mac or linux systems

Install the required dependencies:

pip install -r requirements.txt

About

Raasta employs a diverse set of AI tools to effectively eliminate linguistic and economic barriers in the realm of urban mobility. With this innovative solution, users can effortlessly access real-time traffic advisories in their preferred language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages