subashpoudel commited on
Commit
c19b5e1
·
1 Parent(s): 66f3c65

updated prompt

Browse files
src/genai/analytics_chatbot/handlers/bot_and_diversity.py CHANGED
@@ -14,3 +14,5 @@ def get_bot_and_diversity(state,llm_gpt,url):
14
  response = requests.get(url, params={'top_n': parameters.top_n, 'start_date': None , 'end_date':None,'influencer_username':parameters.influencer_name})
15
  return response
16
 
 
 
 
14
  response = requests.get(url, params={'top_n': parameters.top_n, 'start_date': None , 'end_date':None,'influencer_username':parameters.influencer_name})
15
  return response
16
 
17
+
18
+
src/genai/analytics_chatbot/utils/prompts.py CHANGED
@@ -114,7 +114,9 @@ If there is no any specific mention of dates, you can return None for dates. In
114
 
115
  def analytics_description_prompt(query):
116
  return f'''
117
- You are provided with the user query and the image.
118
- Give clear information to the user for their query only by analyzing the image. Don't give any responses outside of the image's context.
 
 
119
  The user query is: \n{query}\n
120
  '''
 
114
 
115
  def analytics_description_prompt(query):
116
  return f'''
117
+ You are a perfect assistant for the description of analytics given to you.
118
+ You are provided with the user query and the graph image of the analytics of that particular user query.
119
+ Aligning with the user query, you have to generate short and precise description of not more than 3 sentences briefly elaborating what the analytics is saying for that user query.
120
+ The user query will be about asking some analytics of the influencers. And the graph image of analytics is also provided to you of that particular query.
121
  The user query is: \n{query}\n
122
  '''