abdullah-khaled commited on
Commit
e46de24
·
1 Parent(s): 0fcf895

improve the prompt

Browse files
Files changed (1) hide show
  1. src/backend/voice_assistant.py +9 -1
src/backend/voice_assistant.py CHANGED
@@ -68,6 +68,7 @@ if not GITHUB_TOKEN:
68
  logger.warning("GITHUB_TOKEN not found in .env. API requests may be rate-limited.")
69
 
70
  REPOS = [
 
71
  "Film-Trailer-and-Summary-Generator",
72
  "Vocaby",
73
  "YOLO11-Custom-Object-Detection-for-PPE-Detection",
@@ -97,6 +98,13 @@ Abdullah Khaled | AI Engineer - Data Scientist
97
  Phone: +201557504902
98
  WhatsApp: +201557504902
99
  Gmail: [email protected]
 
 
 
 
 
 
 
100
 
101
  === LEARNING PLATFORMS ===
102
  LinkedIn: https://linkedin.com/in/abdullah-khaled-0608a9236
@@ -267,7 +275,7 @@ async def process_text(query, websocket: WebSocket = None):
267
 
268
  For the `links` array, include relevant social or platform links (e.g., LinkedIn, Kaggle, HackerRank, LeetCode, Microsoft Learn, Streamlit, Coursera, 365DataScience, DataCamp) only if the query explicitly asks for social media, platforms, or specific platform names (e.g., "LinkedIn", "Kaggle"). For the `personal_info` array, include Gmail and/or Phone details only if the query explicitly asks for contact information (e.g., "email", "phone", "Gmail", "WhatsApp", "personal information"). The `media_links` array should include any media URLs (images or videos) from the GitHub READMEs if relevant to the query; otherwise, keep it empty.
269
 
270
- Answer in a professional, friendly, and articulate manner, as if representing Abdullah to colleagues, clients, or stakeholders. If the context lacks relevant information, respond based on your knowledge, maintaining a professional tone. Ensure the response is a valid JSON object conforming to the structure above.
271
  """),
272
  ("user", f"{query}, with media links and project link if available")])
273
 
 
68
  logger.warning("GITHUB_TOKEN not found in .env. API requests may be rate-limited.")
69
 
70
  REPOS = [
71
+ "AI-Voice-Secretary",
72
  "Film-Trailer-and-Summary-Generator",
73
  "Vocaby",
74
  "YOLO11-Custom-Object-Detection-for-PPE-Detection",
 
98
  Phone: +201557504902
99
  WhatsApp: +201557504902
100
  Gmail: [email protected]
101
+ Location: Cairo, Egypt
102
+ Age: 22 years old
103
+ Status: Single
104
+ Open to work in: Remote, On-site, Hybrid
105
+ Military Status: deferred
106
+ Graduated from: Beni Suef University
107
+
108
 
109
  === LEARNING PLATFORMS ===
110
  LinkedIn: https://linkedin.com/in/abdullah-khaled-0608a9236
 
275
 
276
  For the `links` array, include relevant social or platform links (e.g., LinkedIn, Kaggle, HackerRank, LeetCode, Microsoft Learn, Streamlit, Coursera, 365DataScience, DataCamp) only if the query explicitly asks for social media, platforms, or specific platform names (e.g., "LinkedIn", "Kaggle"). For the `personal_info` array, include Gmail and/or Phone details only if the query explicitly asks for contact information (e.g., "email", "phone", "Gmail", "WhatsApp", "personal information"). The `media_links` array should include any media URLs (images or videos) from the GitHub READMEs if relevant to the query; otherwise, keep it empty.
277
 
278
+ Answer in a professional, friendly, and articulate manner, as if representing Abdullah to colleagues, clients, or stakeholders. If the context lacks relevant information, respond based on your knowledge, maintaining a professional tone **and never answer unrelated questions like translate to english, how can I travel, what is the weather in cairo, who is Mohamed Salah, etc**. Ensure the response is a valid JSON object conforming to the structure above.
279
  """),
280
  ("user", f"{query}, with media links and project link if available")])
281