Fix YAML metadata with proper language codes
Browse files
README.md
CHANGED
|
@@ -1,166 +1,123 @@
|
|
| 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 |
-
/workspace/
|
| 26 |
-
├── conversational_ai.py # Main AI system implementation
|
| 27 |
-
├── demo_ai.py # Demonstration script
|
| 28 |
-
├── requirements.txt # Dependencies (minimal)
|
| 29 |
-
└── README.md # This file
|
| 30 |
-
```
|
| 31 |
-
|
| 32 |
-
## 🛠️ Installation & Usage
|
| 33 |
-
|
| 34 |
-
### Prerequisites
|
| 35 |
-
- Python 3.6 or higher
|
| 36 |
-
- No external dependencies required (uses only standard library)
|
| 37 |
-
|
| 38 |
-
### Quick Start
|
| 39 |
|
| 40 |
-
|
| 41 |
-
```bash
|
| 42 |
-
python3 conversational_ai.py
|
| 43 |
-
```
|
| 44 |
|
| 45 |
-
|
| 46 |
-
```bash
|
| 47 |
-
python3 demo_ai.py
|
| 48 |
-
```
|
| 49 |
|
| 50 |
-
|
| 51 |
-
```bash
|
| 52 |
-
python3 -c "from conversational_ai import demonstrate_ai_capabilities; demonstrate_ai_capabilities()"
|
| 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 |
-
You: Hello!
|
| 78 |
-
AI: Hi there! I'm here to chat and assist you. What's on your mind?
|
| 79 |
|
| 80 |
-
|
| 81 |
-
AI: I'm an AI assistant created to have intelligent conversations! I use pattern matching, contextual understanding, and learned responses to engage with humans.
|
| 82 |
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
|
|
|
| 86 |
|
| 87 |
-
|
| 88 |
-
```
|
| 89 |
-
/personality
|
| 90 |
-
Select personality: 2 (Professional)
|
| 91 |
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
|
|
|
| 95 |
|
| 96 |
-
##
|
| 97 |
|
| 98 |
-
|
|
|
|
|
|
|
|
|
|
| 99 |
|
| 100 |
-
|
| 101 |
-
2. **ContextualMemory**: Tracks conversation topics and user preferences
|
| 102 |
-
3. **PersonalityEngine**: Manages conversational styles and tone
|
| 103 |
-
4. **IntelligentConversationalAI**: Main orchestration system
|
| 104 |
-
5. **CLIInterface**: Command-line interaction handler
|
| 105 |
|
| 106 |
-
|
|
|
|
|
|
|
|
|
|
| 107 |
|
| 108 |
-
|
| 109 |
-
- **Context Tracking**: Statistical topic analysis and memory management
|
| 110 |
-
- **Response Generation**: Multi-layered approach combining pattern matching with contextual understanding
|
| 111 |
-
- **Conversation Flow**: Adaptive dialogue with follow-up questions and natural progression
|
| 112 |
|
| 113 |
-
|
| 114 |
|
| 115 |
-
```
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
```
|
| 124 |
|
| 125 |
-
##
|
| 126 |
-
|
| 127 |
-
- **Fast Response Time**: Pattern matching for instant replies
|
| 128 |
-
- **Memory Efficient**: Optimized data structures for conversation storage
|
| 129 |
-
- **Scalable**: Supports multiple concurrent conversations
|
| 130 |
-
- **Extensible**: Easy to add new patterns, personalities, and features
|
| 131 |
-
|
| 132 |
-
## 🔮 Extension Possibilities
|
| 133 |
-
|
| 134 |
-
### Easy Enhancements
|
| 135 |
-
- Add web API integration (weather, news, etc.)
|
| 136 |
-
- Implement database storage for conversation history
|
| 137 |
-
- Add voice input/output capabilities
|
| 138 |
-
- Integrate with language models (OpenAI, Hugging Face)
|
| 139 |
-
- Add multi-language support
|
| 140 |
-
|
| 141 |
-
### Advanced Features
|
| 142 |
-
- Sentiment analysis integration
|
| 143 |
-
- Knowledge base integration
|
| 144 |
-
- Machine learning model training
|
| 145 |
-
- Real-time conversation analytics
|
| 146 |
-
- Custom personality creation
|
| 147 |
-
|
| 148 |
-
## 🎓 Educational Value
|
| 149 |
-
|
| 150 |
-
This system demonstrates:
|
| 151 |
-
- **Natural Language Processing** basics
|
| 152 |
-
- **Conversational AI** design patterns
|
| 153 |
-
- **State Management** in dialogue systems
|
| 154 |
-
- **Personality Modeling** in AI
|
| 155 |
-
- **Context Awareness** implementation
|
| 156 |
-
- **Pattern Matching** techniques
|
| 157 |
|
| 158 |
-
|
| 159 |
|
| 160 |
-
##
|
| 161 |
|
| 162 |
-
|
| 163 |
|
| 164 |
---
|
| 165 |
|
| 166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: bn
|
| 3 |
+
language_bcp47:
|
| 4 |
+
- bn
|
| 5 |
+
- bn-IN
|
| 6 |
+
- bn-BD
|
| 7 |
+
license: apache-2.0
|
| 8 |
+
base_model: microsoft/DialoGPT-medium
|
| 9 |
+
tags:
|
| 10 |
+
- bengali
|
| 11 |
+
- bangla
|
| 12 |
+
- transformer
|
| 13 |
+
- causal-lm
|
| 14 |
+
- instruction-following
|
| 15 |
+
- nlp
|
| 16 |
+
- text-generation
|
| 17 |
+
- conversational-ai
|
| 18 |
+
- educational
|
| 19 |
+
- general-knowledge
|
| 20 |
+
model-index:
|
| 21 |
+
- name: Sheikh Bengali AI
|
| 22 |
+
results: []
|
| 23 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
# Sheikh Bengali AI Model
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
+
## Model Description
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
**Sheikh** is a Bengali (Bangla) language AI model trained for instruction following and conversational tasks. Built on top of Microsoft's DialoGPT-medium, this model has been fine-tuned with Bengali instruction-following data to understand and generate responses in Bengali language.
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
+
## Model Details
|
| 32 |
|
| 33 |
+
- **Model Type:** Language Model, Text Generation
|
| 34 |
+
- **Architecture:** GPT-2 based (DialoGPT-medium)
|
| 35 |
+
- **Base Model:** microsoft/DialoGPT-medium
|
| 36 |
+
- **Parameters:** 355M
|
| 37 |
+
- **Language:** Bengali (Bangla)
|
| 38 |
+
- **Training Data:** Alpaca Bangla instruction dataset
|
| 39 |
+
- **Model Size:** 1.4GB
|
| 40 |
+
- **License:** Apache 2.0
|
| 41 |
|
| 42 |
+
## Intended Use
|
| 43 |
|
| 44 |
+
This model is designed for:
|
| 45 |
+
- Bengali language text generation
|
| 46 |
+
- Instruction following and question answering
|
| 47 |
+
- Educational content creation
|
| 48 |
+
- Cultural and historical knowledge responses
|
| 49 |
+
- General conversational AI in Bengali
|
| 50 |
|
| 51 |
+
## Usage
|
| 52 |
|
| 53 |
+
```python
|
| 54 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 55 |
+
|
| 56 |
+
# Load the model
|
| 57 |
+
tokenizer = AutoTokenizer.from_pretrained("megharudushi/Sheikh")
|
| 58 |
+
model = AutoModelForCausalLM.from_pretrained("megharudushi/Sheikh")
|
| 59 |
+
|
| 60 |
+
# Generate Bengali response
|
| 61 |
+
input_text = "বাংলাদেশের রাজধানী কী?"
|
| 62 |
+
inputs = tokenizer.encode(input_text, return_tensors="pt")
|
| 63 |
+
outputs = model.generate(inputs, max_length=150, temperature=0.8)
|
| 64 |
+
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 65 |
+
print(response)
|
| 66 |
```
|
|
|
|
|
|
|
| 67 |
|
| 68 |
+
### Example Prompts
|
|
|
|
| 69 |
|
| 70 |
+
- Educational: "গণিতের মৌলিক নীতি বলুন"
|
| 71 |
+
- Cultural: "বাংলা সাহিত্যের বিখ্যাত কবি কারা?"
|
| 72 |
+
- General: "স্বাস্থ্যকর থাকার উপায় বলুন"
|
| 73 |
+
- Historical: "বাংলাদেশের স্বাধীনতার ইতিহাস বর্ণনা করুন"
|
| 74 |
|
| 75 |
+
## Model Performance
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
+
- Supports Bengali language understanding and generation
|
| 78 |
+
- Trained on Bengali instruction-following dataset
|
| 79 |
+
- Optimized for educational and conversational contexts
|
| 80 |
+
- Cultural knowledge preservation for Bengali language
|
| 81 |
|
| 82 |
+
## Limitations
|
| 83 |
|
| 84 |
+
- Trained primarily on Bengali instruction data
|
| 85 |
+
- May have limitations in very specialized domains
|
| 86 |
+
- Performance depends on input quality and clarity
|
| 87 |
+
- Model size limited by computational resources
|
| 88 |
|
| 89 |
+
## Training Details
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
+
- **Base Model:** microsoft/DialoGPT-medium
|
| 92 |
+
- **Fine-tuning Data:** Alpaca Bangla dataset
|
| 93 |
+
- **Training Approach:** Instruction following
|
| 94 |
+
- **Language Focus:** Bengali (Bangla) language
|
| 95 |
|
| 96 |
+
## Citation
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
+
If you use this model, please cite:
|
| 99 |
|
| 100 |
+
```bibtex
|
| 101 |
+
@misc{SheikhBengaliAI,
|
| 102 |
+
title={Sheikh Bengali AI Model},
|
| 103 |
+
author={megharudushi},
|
| 104 |
+
year={2025},
|
| 105 |
+
url={https://huggingface.co/megharudushi/Sheikh},
|
| 106 |
+
note={Bengali language instruction-following model based on DialoGPT-medium}
|
| 107 |
+
}
|
| 108 |
```
|
| 109 |
|
| 110 |
+
## License
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
|
| 112 |
+
This model is released under the Apache 2.0 License.
|
| 113 |
|
| 114 |
+
## Contributing
|
| 115 |
|
| 116 |
+
This model is part of the Bengali AI initiative to make Bengali language AI more accessible to the community.
|
| 117 |
|
| 118 |
---
|
| 119 |
|
| 120 |
+
**Created:** December 21, 2025
|
| 121 |
+
**Repository:** https://huggingface.co/megharudushi/Sheikh
|
| 122 |
+
**Base Model:** microsoft/DialoGPT-medium
|
| 123 |
+
**Language:** Bengali (Bangla)
|