Progress so far…

Travel AI

Project Developement

0. Project setup

Started Learning about flask

1. User Authentication

Learnt how user authentication systems work, how to store and validate the user and logout in the end

2. AI Generated Plans

3. Location Coordinates

4. Mapping

5. Frontend

6. Storing Plans

7. AI Agent

8. Travel Plan

9. Blind Plan

Problems Faced

1. Data sharing between frontend and backend

In flask it is very easy to pass information from Backend to Frontend which is based on Jinja2 templates. Which makes rendering very easy 😀. But sending any information to JS on the frontend was causing problem since Jinja templating didn’t work

So I had 2 problems to deal with

  1. Wrap the data as block
  2. Store it in a buffer which both Python and JS can access
  3. Access it whenever required

So here’s what I did

  1. Since the Plan data was well structures as a python dictionary, I wrapped the information as JSON block
  2. Setting and accessing cookies is easy in both Python and JS
    1. For the buffer I am currently using Browser Cookies (Planning to move to Local storage soon)

Idea for the Mapping part

1. Scrappy solution

KEY: Using Google Serper which has 2500 Free searches which returned the latitude, longitude, name and some other info based on the prompt. It is backed by the Google Place AI internally so the values we get are not hallucination

  1. Places data: Google Serper
  2. Route and Plotting: Leaflet.js

<Under Construction>

Skills used

Learnings

CSRF and injection

Tool Calling for LLMs

Checkpoints