bhagvad-gita-llm-v2 / README.md
ajaynagotha's picture
Update README.md
6c61576 verified

A newer version of the Gradio SDK is available: 5.7.1

Upgrade
metadata
title: Bhagvad Gita Llm V2
emoji: 🌍
colorFrom: green
colorTo: yellow
sdk: gradio
sdk_version: 5.6.0
app_file: app.py
pinned: false
license: mit

Bhagavad Gita AI Chatbot

Welcome to the Bhagavad Gita AI Chatbot! This Space hosts an AI-powered assistant specializing in the wisdom and teachings of the Bhagavad Gita, one of the most revered texts in Hindu philosophy.

Overview

The Bhagavad Gita AI Chatbot is designed to answer questions, provide insights, and offer explanations based on the teachings of the Bhagavad Gita. Whether you're a student of philosophy, a spiritual seeker, or simply curious about the Gita's wisdom, this chatbot aims to assist you in your exploration.

Features

  • Answers questions about the Bhagavad Gita's teachings and philosophy
  • Provides explanations of key concepts such as dharma, karma, bhakti, and yoga
  • Offers spiritual guidance based on the wisdom of the Gita
  • Supports contextual understanding by referencing specific chapters and verses when relevant

How It Works

  1. The chatbot utilizes the "ajaynagotha/bhagvad-gita-llm-v2" model, which is specifically fine-tuned for Bhagavad Gita related queries.
  2. When a question is asked, the model generates a response based on its training on the Bhagavad Gita's text and related philosophical concepts.
  3. The response is then returned to the user, providing insights and explanations rooted in the Gita's teachings.

Usage

To interact with the chatbot, send a POST request to the API endpoint with your question. The API expects a JSON payload with a messages array containing message objects. Each message object should have a role (either "user" or "assistant") and a content field.

Example Request:

{
  "messages": [
    {"role": "user", "content": "What does the Bhagavad Gita say about karma?"}
  ]
}
Example Response:
{
  "response": "The Bhagavad Gita teaches that karma refers to the actions we perform and their consequences. According to the Gita, every action (karma) has a reaction, and this creates a cycle of cause and effect. The text emphasizes the importance of performing one's duties (karma) without attachment to the results. In Chapter 2, Verse 47, Lord Krishna says: 'You have a right to perform your prescribed duty, but you are not entitled to the fruits of action.' This teaching encourages individuals to act with detachment, focusing on the action itself rather than its outcomes. The Gita also discusses the concept of karma yoga, which is the path of selfless action performed as a form of spiritual practice.",
  "isTruncated": false
}
API Endpoint
The API endpoint for this chatbot is:

https://ajaynagotha-bhagvad-gita-llm-v2.hf.space/run/predict
Limitations
While the chatbot is trained on the Bhagavad Gita, it may not cover every nuance or interpretation of the text.
The responses are generated by an AI model and should not be considered as authoritative as those from a human scholar or spiritual leader.
The chatbot's knowledge is based on its training data and may not include the most recent scholarship or interpretations.
Ethical Considerations
This chatbot is intended as an educational tool and should not be used as a substitute for personal spiritual guidance or professional advice. Users are encouraged to approach the Bhagavad Gita and its teachings with respect and to seek guidance from qualified teachers for deeper understanding.

Privacy
This chatbot does not store any personal information or conversation history. Each interaction is processed independently.

Feedback and Contributions
We welcome feedback and contributions to improve this chatbot. If you notice any inaccuracies or have suggestions for improvement, please feel free to reach out.

Thank you for using the Bhagavad Gita AI Chatbot. May it assist you in your exploration of this profound spiritual text and its timeless wisdom.


You can directly copy this content and paste it into your README.md file in your Hugging Face Space. This README provides a comprehensive overview of your chatbot, including how to use it, its limitations, and ethical considerations.


Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference