File size: 4,461 Bytes
9b66378
 
 
 
 
 
 
 
 
 
20d720d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bd0e92a
20d720d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bd0e92a
 
20d720d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---
title: TatTwamAI
emoji: ๐Ÿš€
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 4.19.2
app_file: app.py
pinned: false
---
README.md 
# agent-demo-track
# ๐Ÿงญ Tat Twam AI โ€” A Multi-Agent AI Coach for Personal and Spiritual Growth

**Tat Twam AI** is an intelligent multi-agent application that serves as a personal, non-judgmental AI coach. Designed for individuals navigating life's personal and professional dilemmas, Tat Twam AI combines cutting-edge AI frameworks with timeless wisdom from classic spiritual and modern self-help texts.

The product is designed to provide calming, insightful, and personalized guidance through a soothing, human-like conversationโ€”helping users reflect, grow, and find direction.

---

## ๐ŸŒŸ Key Features

- ๐ŸŽ™๏ธ Accepts **voice input** in user's mother tongue or **text input** in English
- ๐Ÿ’ฌ Engages users with **soothing, reflective dialogue**
- ๐Ÿ“š Draws wisdom from **13 timeless spiritual and self-help texts**
- ๐Ÿค– Built on a **multi-agent architecture** using state-of-the-art LLM tools
- ๐Ÿ” Offers **context-aware**, **personalized suggestions** with guardrails
- ๐Ÿง˜โ€โ™€๏ธ Responds in a **calm, meditative voice**, promoting inner peace

---

## ๐Ÿงฉ System Architecture

The core logic of Tat Twam AI is implemented using **four intelligent agents**, each responsible for a specific part of the coaching journey:

### ๐Ÿง  Agent 1: The Listener & Summarizer
- **Input:** Voice (in user's mother tongue) or text (in English)
- **Functionality:**
  - Converts speech to English text
  - Conducts a gentle Q&A session to uncover the userโ€™s core problem
  - Summarizes the conversation
  - Analyzes tone and emotional sentiment
- **Tools:**
  - ASR (Speech-to-text) with multilingual support
  - Sentiment analysis
  - Conversational Q&A
  - Summary generator

### ๐Ÿ“˜ Agent 2: The Wisdom Engine
- **Input:** Summary, tone, and sentiment from Agent 1
- **Functionality:**
  - Retrieves spiritual or self-help insights using a **RAG (Retrieval-Augmented Generation)** system
  - Offers customized reflections, techniques, or meditations relevant to the userโ€™s current issue
- **Knowledge Base Includes:**
  1. *Autobiography of a Yogi*
  2. *Gita Vahini*
  3. *The Power of Now*
  4. *Man's Search for Meaning*
  5. *Bhagavad Gita As It Is*
  6. *Meditations* (Marcus Aurelius)
  7. *The Tao Te Ching*
  8. *Dhyana Vahini*
  9. *Atomic Habits*
  10. *The 7 Habits of Highly Effective People*
  11. *Mindset* (Carol Dweck)
  12. *Prema Vahini*
  13. *Prasnothara Vahini*
- **Tools:** Custom RAG pipeline + embedding-based retrieval + fine-tuned LLMs

### ๐Ÿ›ก Agent 3: The Inner Critic & Guardian
- **Input:** Suggested output from Agent 2
- **Functionality:**
  - Implements **guardrails** to ensure spiritual, ethical, and emotional appropriateness
  - Adjusts tone and verifies factuality, empathy, and personalization
  - Converts final output to voice with a **mild, meditative female tone**
- **Tools:** LLM-as-Judge, Voice synthesis

### ๐Ÿ”„ Agent 4: The Satisfaction Checker
- **Functionality:**
  - Asks for user satisfaction and feedback
  - Decides whether to continue or close the session
  - Passes feedback to Agent 1 for context-aware follow-up
- **Tools:** User feedback processing, memory/context management

---

## ๐Ÿ’ฌ Sample Flow

1. **User speaks:** โ€œI feel lost about my career direction.โ€ (in Hindi)
2. **Agent 1:** Asks reflective questions like: *โ€œWhat matters most to you right now?โ€*
3. **Agent 2:** Responds with insights from *The Power of Now* and *Gita Vahini*
4. **Agent 3:** Ensures calm, helpful delivery in a soothing voice
5. **Agent 4:** Asks: โ€œDid that help you gain clarity?โ€ โ†’ If yes, ends. If no, loop continues.

---

## ๐ŸŽฏ Vision

Tat Twam AI aspires to be your **non-judgmental companion for inner clarity**, integrating deep ancient wisdom with today's AI technology. Its goal is not to give you answers, but to gently **guide you inward to find your own**.

---

## ๐Ÿšง Coming Soon

- ๐Ÿ“ฑ Mobile app with voice interface
- ๐Ÿงพ Journaling feature synced with conversation history
- ๐Ÿ”„ Multi-language support for responses
- ๐Ÿ”’ End-to-end encryption and privacy-first design

---

## ๐Ÿ“ฌ Contact

Interested in collaborating, contributing, or piloting this application? Reach out at **[saishree999@gmail.com]**

---

> *"The answers you seek will come when your mind is quiet enough to hear them."* โ€”Tat Twam AI