CASE STUDY

Geeta Guide

Geeta is a console chatbot for the Bhagavad Gita. A question is scored against the verse translations, with extra weight for ideas such as dharma, karma, and fear. The closest verse is printed in Sanskrit and English. Gemini then writes a short reply in Krishna's voice, using that verse as the source. A chapter and verse number opens that shloka directly.

01 / OVERVIEW

Geeta is a local chatbot for reading and asking the Bhagavad Gita.

About 700 verses, with their translations, load from JSON files on the machine.

A question returns a verse first, then a short reply written from that verse.

02 / PROBLEM

A general chat reply can sound wise and still never show the shloka it came from.

Finding one verse among seven hundred is slow when you remember the idea and not the number.

A citation such as chapter 2, verse 47 should open that verse, not a nearby guess.

03 / SOLUTION

Each question is scored against the English translations. Words such as duty, fear, and desire pull in the matching concept.

The top verse prints with its Sanskrit and the translation. Two further matches can be opened on request.

Gemini writes a few sentences as Krishna, grounded on that verse.

A numbered request, such as 2.47 or chapter 2 verse 47, skips the search and opens that shloka.

04 / FEATURES

  • About 700 verses loaded from local JSON
  • Weighted search for dharma, karma, moksha, fear, anger, and related words
  • Direct lookup by chapter and verse
  • Sanskrit text beside the English translation
  • Short reply written from the chosen verse
  • Random verse, a blessing, and a short meditation prompt
  • Session history of recent questions
  • Greeting replies for namaste, hare krishna, and similar lines

05 / TECH STACK

  • Python
  • Gemini

06 / The verse

Sanskrit and the English translation print together, with the chapter and verse number.

If the search finds more than one match, the next verses are one yes away.

07 / The reply

The model is asked to speak from that verse, in a few sentences, and to connect it to the question.

If the quota runs out, the verse still stands on its own.

08 / IMPACT

01

The verse is on screen before the reply, so the source is visible.

02

A remembered number opens the exact shloka.

03

The texts stay in local files. Only the question and the chosen verse are sent for the written reply.

09 / LEARNINGS

  • 01

    A spiritual answer is easier to trust when the shloka is printed above it.

  • 02

    Weighted concepts catch duty and fear even when the verse uses other words.

  • 03

    A numbered lookup and a search lookup need to stay separate, or 2.47 becomes just another keyword.

NEXT PROJECT

Brawl Cards

View Case Studyarrow_forward