megharudushi commited on
Commit
144f1ca
·
verified ·
1 Parent(s): 7d3d63c

Fix YAML metadata with proper language codes

Browse files
Files changed (1) hide show
  1. README.md +94 -137
README.md CHANGED
@@ -1,166 +1,123 @@
1
- # 🤖 Intelligent Conversational AI System
2
-
3
- A comprehensive conversational AI built with Python that demonstrates advanced chatbot capabilities including pattern matching, contextual memory, personality adaptation, and natural dialogue flow.
4
-
5
- ## 🚀 Features
6
-
7
- ### Core Capabilities
8
- - **Pattern Recognition**: Intelligent response matching based on conversation patterns
9
- - **Contextual Memory**: Remembers conversation topics and user interests
10
- - **Personality System**: Multiple conversational styles (friendly, professional, casual, intellectual)
11
- - **Natural Dialogue**: Maintains conversation flow with follow-up questions and context
12
- - **Emotional Intelligence**: Recognizes and responds to emotional content
13
- - **Session Management**: Tracks multiple conversation sessions
14
-
15
- ### Advanced Features
16
- - **Adaptive Responses**: Tailors replies based on conversation context
17
- - **Topic Extraction**: Identifies and tracks discussion topics
18
- - **User Preference Learning**: Adapts to user communication style
19
- - **Conversation Analytics**: Provides detailed conversation summaries
20
- - **Real-time Processing**: Instant response generation
21
-
22
- ## 📁 Files Structure
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
- 1. **Run Interactive Chat**:
41
- ```bash
42
- python3 conversational_ai.py
43
- ```
44
 
45
- 2. **Run Demonstration**:
46
- ```bash
47
- python3 demo_ai.py
48
- ```
49
 
50
- 3. **Quick Demo** (non-interactive):
51
- ```bash
52
- python3 -c "from conversational_ai import demonstrate_ai_capabilities; demonstrate_ai_capabilities()"
53
- ```
54
 
55
- ### Interactive Mode Commands
56
 
57
- | Command | Description |
58
- |---------|-------------|
59
- | `/help` | Show help information |
60
- | `/personality` | Change AI personality |
61
- | `/summary` | Show conversation summary |
62
- | `/topics` | Display discussed topics |
63
- | `/clear` | Start new conversation |
64
- | `/quit` | Exit program |
65
 
66
- ### Available Personalities
67
 
68
- - **Friendly**: Warm, enthusiastic, supportive responses
69
- - **Professional**: Formal, detailed, informative style
70
- - **Casual**: Relaxed, conversational, frequent emojis
71
- - **Intellectual**: Deep, philosophical, analytical approach
 
 
72
 
73
- ## 🎯 Usage Examples
74
 
75
- ### Basic Conversation
 
 
 
 
 
 
 
 
 
 
 
 
76
  ```
77
- You: Hello!
78
- AI: Hi there! I'm here to chat and assist you. What's on your mind?
79
 
80
- You: What are you?
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
- You: I love programming
84
- AI: Technology is fascinating! I especially enjoy discussions about programming, AI, and how technology shapes our world.
85
- ```
 
86
 
87
- ### Personality Switching
88
- ```
89
- /personality
90
- Select personality: 2 (Professional)
91
 
92
- You: How does AI work?
93
- AI: I am an artificial intelligence designed to chat, learn, and assist. I can understand language and respond thoughtfully using various AI techniques.
94
- ```
 
95
 
96
- ## 🔧 Technical Implementation
97
 
98
- ### Core Components
 
 
 
99
 
100
- 1. **PatternMatcher**: Rule-based response system with regex patterns
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
- ### Key Algorithms
 
 
 
107
 
108
- - **Pattern Recognition**: Regex-based pattern matching for quick responses
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
- ### Architecture Highlights
114
 
115
- ```python
116
- class IntelligentConversationalAI:
117
- def process_message(self, session_id: str, user_message: str) -> str:
118
- # 1. Pattern matching
119
- # 2. Contextual analysis
120
- # 3. Personality application
121
- # 4. Response generation
122
- # 5. Conversation update
123
  ```
124
 
125
- ## 📊 Performance Features
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
- Perfect for learning about AI, chatbot development, and conversational interface design!
159
 
160
- ## 📝 License
161
 
162
- Created by MiniMax Agent for educational and demonstration purposes.
163
 
164
  ---
165
 
166
- *Enjoy chatting with your new AI companion!* 🤖✨
 
 
 
 
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)