subashpoudel commited on
Commit
e842da1
·
1 Parent(s): fb491f0

Updated the prompts for react agent

Browse files
Files changed (1) hide show
  1. my_agent/utils/prompts.py +11 -12
my_agent/utils/prompts.py CHANGED
@@ -15,24 +15,24 @@ Analyze the image deeply and give the story of the image what it wants to say?
15
  '''
16
 
17
 
18
- def initial_story_prompt(retrieval , state):
19
  return (
20
  f'''
21
  I want to create a detailed storyline for a video in any domain. You have to provide me that storyline what to include in the video.
22
- Now, i am giving you the topic of the video. But the need is to generate the story focusing on the format that i'll provide to you.
23
- You can use this format for the reference purpose, not for the exact similar generation. The format is:\n{retrieval}.
24
- \n\n Now let's start creating the storyline for my topic. The topic of the video is: \n\n{state.topic}'''
25
  )
26
 
27
- def refined_story_prompt(retrieval , state):
28
  return(
29
  f'''
30
  I want to create a detailed storyline for a video in the given topic. You have to provide me that storyline what to include in the video.
31
- Now, i am giving you the topic of the video. But the need is to generate the story focusing on the format that i'll provide to you.
32
- You can use this format for the reference purpose, not for the exact similar generation. The format is:\n{retrieval}.
33
- \n\n Now let's start creating the storyline for my topic. The topic of the video is: \n\n{state.topic}\n\n
34
 
35
- **Final Reminder** You have to strongly focus on these topics while creating the storyline: {state.preferred_topics[-1]} and {state.image_captions[-1]}'''
36
  )
37
 
38
  def brainstroming_prompt(state):
@@ -52,9 +52,8 @@ Now, I will provide you with the storyline. The storyline is:\n{state.stories[-1
52
  def final_story_prompt(final_state):
53
  return(
54
  f'''
55
- I want to create a detailed storyline for a video in the given topic. You have to provide me that storyline what to include in the video.
56
- Now, i am giving you the topic of the video. But the need is to generate the story focusing on the format that i'll provide to you.
57
- You can use this format for the reference purpose, not for the exact similar generation. The format is:\n{final_state['retrievals'][-1]}.
58
  \n\n Now let's start creating the storyline for my topic. The topic of the video is: \n\n{final_state['topic']}\n\n
59
 
60
  **Final Reminder** You have to strongly focus on these topics while creating the storyline: {[item for sublist in final_state['preferred_topics'] for item in sublist]}'''
 
15
  '''
16
 
17
 
18
+ def initial_story_prompt(state):
19
  return (
20
  f'''
21
  I want to create a detailed storyline for a video in any domain. You have to provide me that storyline what to include in the video.
22
+ Now, i am giving you the topic of the video. But the need is to generate the story focusing on the response of the tool provided to you..
23
+
24
+ \n\n Now let's start creating the storyline for my topic. The idea of the video is: \n\n{state.topic}\n\n and the business details are:\n {state.business_details}'''
25
  )
26
 
27
+ def refined_story_prompt(state):
28
  return(
29
  f'''
30
  I want to create a detailed storyline for a video in the given topic. You have to provide me that storyline what to include in the video.
31
+ Now, i am giving you the topic of the video. But the need is to generate the story focusing on the response of the tool provided to you..
32
+ Now, i am giving you the topic of the video.
33
+ \n\n Now let's start creating the storyline for my topic. The topic of the video is: \n\n{state.topic}\n\n and the business details are:\n {state.business_details}
34
 
35
+ **Final and must Reminder**: Please You have to strongly focus on these topics while creating the storyline: {state.preferred_topics[-1]} and {state.image_captions[-1]}'''
36
  )
37
 
38
  def brainstroming_prompt(state):
 
52
  def final_story_prompt(final_state):
53
  return(
54
  f'''
55
+ I want to create a detailed storyline for a video in the given topic. You have to provide me that storyline what to include in the video.But the need is to generate the story focusing on the response of the tool provided to you..
56
+ Now, i am giving you the topic of the video.
 
57
  \n\n Now let's start creating the storyline for my topic. The topic of the video is: \n\n{final_state['topic']}\n\n
58
 
59
  **Final Reminder** You have to strongly focus on these topics while creating the storyline: {[item for sublist in final_state['preferred_topics'] for item in sublist]}'''