Spaces:
Runtime error
Runtime error
File size: 5,778 Bytes
f47f22c |
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 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
---
title: Ashok 2.0 - Problem Solving Assistant
emoji: π§
colorFrom: blue
colorTo: purple
sdk: streamlit
sdk_version: 1.29.0
app_file: app.py
pinned: false
license: mit
---
# π§ Ashok 2.0 - Learning Problem Solving Assistant
A smart, learning-enabled chatbot that specializes in problem-solving advice with an authentic Pakistani/Indian conversational style. Ashok learns from every conversation and gets smarter over time!
## β¨ Key Features
### π **Intelligent Learning System**
- **Learns from conversations**: Every helpful Q&A is remembered and used for future responses
- **Smart question filtering**: Automatically blocks silly questions with humorous "Abay Sallay" responses
- **Quality-based learning**: Only learns from meaningful problem-solving discussions
- **Source attribution**: Clearly shows whether advice comes from uploaded books or learned conversations
### π **Enhanced Knowledge Integration**
- **Upload PDF books**: Add problem-solving books to enhance Ashok's knowledge base
- **Multi-source responses**: Combines book knowledge with learned experiences
- **Chapter/page references**: Cites specific sources for credibility
- **Core frameworks**: Comes pre-loaded with essential problem-solving methodologies
### π¬ **Authentic Conversational Style**
- **Bilingual charm**: Natural English-Urdu mixing ("yaar", "samjha", "bilkul")
- **Cultural authenticity**: Genuine Pakistani/Indian conversational patterns
- **Encouraging tone**: "Excellent question yaar!", "Bahut acha sawal!"
- **Practical focus**: Always provides actionable, real-world advice
## π How to Use
### 1. **Get Your API Key**
- Visit [Google AI Studio](https://makersuite.google.com/app/apikey)
- Sign in with your Google account
- Create a new API key (it's completely free!)
- Copy the key
### 2. **Start Chatting**
- Enter your API key in the sidebar
- Ask detailed problem-solving questions
- Watch Ashok learn and improve with each conversation!
### 3. **Optional: Upload Books**
- Upload PDF books about problem-solving, management, or leadership
- Ashok will process and integrate the content
- Get responses that reference specific chapters and pages
## π‘ Example Questions
### β
**Great Questions** (Ashok loves these!)
- *"How can I improve my team's decision-making process?"*
- *"What's the best approach to handle workplace conflicts?"*
- *"Can you explain effective problem-solving frameworks?"*
- *"How do I prioritize when everything seems urgent?"*
- *"What strategies work for managing difficult stakeholders?"*
### β **Silly Questions** (Get "Abay Sallay" responses!)
- *"Hi, how are you?"*
- *"What's your favorite color?"*
- *"Tell me a joke"*
- *"What's the weather like?"*
## π― Problem-Solving Topics Covered
- **Decision Making**: Frameworks, criteria, evaluation methods
- **Conflict Resolution**: Mediation, negotiation, win-win solutions
- **Team Management**: Leadership, communication, productivity
- **Strategic Thinking**: Planning, analysis, long-term vision
- **Creative Problem Solving**: Innovation, brainstorming, design thinking
- **Critical Thinking**: Analysis, evaluation, logical reasoning
- **Project Management**: Planning, execution, risk management
## π§ Technical Features
### **Smart Architecture**
- **FAISS vector database**: Fast, efficient similarity search
- **HuggingFace embeddings**: High-quality text understanding
- **Session persistence**: Knowledge retained during your visit
- **Quality scoring**: Automatic assessment of conversation value
### **User Experience**
- **Real-time learning**: See when Ashok learns from your conversation
- **Knowledge statistics**: Track total documents, conversations, and learning progress
- **Source transparency**: Always know where information comes from
- **Responsive design**: Works great on desktop and mobile
## π‘οΈ Privacy & Security
- **No data storage**: Your conversations are only kept during your session
- **API key security**: Your key is never stored or logged
- **Local processing**: All AI processing happens through your own API key
- **Open source**: Full transparency in how your data is handled
## πͺ The "Abay Sallay" Experience
Ashok has a unique personality! Ask silly questions and you'll get authentic responses like:
- *"Abay Sallay! Don't waste my time with such bakwas. Ask me something related to problem solving yaar!"*
- *"Abay Sallay! This is a problem-solving platform. Be serious!"*
- *"Abay Sallay! Focus on real problems that need solving, samjha?"*
This isn't just for fun - it encourages users to ask meaningful, detailed questions that lead to better problem-solving advice!
## π Local Development
Want to run this locally or customize it? Here's how:
```bash
# Clone the repository
git clone <your-repo-url>
cd ashok-2.0
# Install dependencies
pip install -r requirements.txt
# Run locally
streamlit run app.py
```
### **For Persistent Learning** (Local Only)
The local version includes additional features:
- Knowledge base persists between sessions
- Automatic backups
- Advanced analytics
- Book pre-processing during deployment
## π€ Contributing
Found a bug or have a suggestion? We'd love to hear from you!
- Improve the silly question detection
- Add new problem-solving frameworks
- Enhance the learning algorithms
- Suggest better "Abay Sallay" responses π
## π Support
If you encounter any issues:
1. Check that your Gemini API key is valid
2. Ensure you're asking problem-solving related questions
3. Try refreshing the page if you see any errors
4. For persistent issues, please report them in the community tab
---
**π― Ready to solve problems with Ashok? Get your free API key and let's start! π**
*Made with β€οΈ for problem-solvers everywhere* |