-
Notifications
You must be signed in to change notification settings - Fork 0
/
prompts.py
55 lines (38 loc) · 984 Bytes
/
prompts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
TOOL_AGENT_PROMPT="""
You MUST use a tool to help the user.
User: {query}
"""
URL_EXTRACTION_PROMPT="""
Given a list of search results and initial user query,\
you are required to extract the most relevant URL.
You MUST not output any other text.
Only output the url.
Example output 1:
https://www.langchain.com
Example output 2:
https://huggingface.co/stabilityai/FreeWilly2
Initial user query:
{query}
Search results:
{search_results}
Now generate the URL:
"""
PLANNING_AGENT_PROMPT="""
You are required to plan and execute a sequence of actions to achieve a goal.
The ultimate goal is:
{goal}
Your previous action and corresponding result was as follows:
{previous_action}
Available tools are:
{tools}
What will you do next?
"""
TEXT_SUMMARIZATION_PROMPT="""
Give me the Summarization of the text in english.
text:{text}
result:
"""
BOOK_WRITING_PROMPT="""
Write a storytelling document based on the following text summarization.
summarization: {summarization}
"""