The application simulate a "Digital Twin" that can mimic a user's conversational style and provide responses to incoming messages
Data Collection
- User profile data is stored via UserProfile
- Communication preferences are captured through questionnaire responses in UserResponse
In Context Learning
style_analysis = """
You are responding as a chatbot that matches this user's style. Their questionnaire showed:
- They are casual and friendly: "{intro_style}"
- They like talking to: "{convo_pref}"
- They start conversations with: "{conv_starter}"
Respond to this message briefly and naturally, matching their style: {message}
Only provide the direct answer, no explanations, previous context needed.
"""
Generate response using Gemini API
model = genai.GenerativeModel("gemini-1.5-flash")
response = model.generate_content(style_analysis)
- Implement Federated Learing to improve response accuracy based on users personality
- securely fine-tune large language models with private data using federated learning
python -m venv .venv
Windows
.venv\Scripts\activate
Macos
source .venv/bin/activate
cd Backend
pip install -r requirements.txt
cp .env.example .env
python manage.py runserver
flutter pub get
- try sticking to chrome browsers
flutter run
python manage.py createsuperuser
- Username (ex= test)
- Email (optional)
- Password (ex= test@123)
- Password confirmation
http://localhost:8000/admin/login/
Import um-bot.postman_collection.json
in postman and test the api
MIT License
Copyright (c) 2024 UMBOT