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 .venvWindows
.venv\Scripts\activateMacos
source .venv/bin/activatecd Backendpip install -r requirements.txtcp .env.example .envpython manage.py runserverflutter pub get- try sticking to chrome browsers
flutter runpython 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




