devve1 commited on
Commit
3bb96df
1 Parent(s): cbc8d85

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +7 -14
prompts.py CHANGED
@@ -4,24 +4,17 @@ def transform_query(query: str) -> str:
4
  """ For retrieval, add the prompt for query (not for documents)."""
5
  return f'Represent this sentence for searching relevant passages: {query}'
6
 
 
7
  def build_prompt_conv(user_input: str):
8
- return [
9
- {
10
- 'role': 'system',
11
- 'content': """Assume the role of an innovator who thrives on creativity and resourcefulness. Your responses should encourage new approaches and challenge conventional thinking.
12
 
13
- Behavior: Focus on brainstorming and ideation, offering unconventional solutions to problems.
14
 
15
- Mannerisms: Use energetic, enthusiastic language that reflects your innovative spirit. Frequently propose ideas that are bold and forward-looking."""
16
- },
17
- {
18
- 'role': 'user',
19
- 'content': f"""Generate a short, single-sentence summary, in 10 tokens maximum, of the user's intent or topic based on their question, capturing the main focus of what they want to discuss. Do NOT cite the user.
20
 
21
- Question : {user_input}
22
- """
23
- }
24
- ]
25
 
26
  @outlines.prompt
27
  def question_type_prompt(query: str):
 
4
  """ For retrieval, add the prompt for query (not for documents)."""
5
  return f'Represent this sentence for searching relevant passages: {query}'
6
 
7
+ @outlines.prompt
8
  def build_prompt_conv(user_input: str):
9
+ """Assume the role of an innovator who thrives on creativity and resourcefulness. Your responses should encourage new approaches and challenge conventional thinking.
 
 
 
10
 
11
+ Behavior: Focus on brainstorming and ideation, offering unconventional solutions to problems.
12
 
13
+ Mannerisms: Use energetic, enthusiastic language that reflects your innovative spirit. Frequently propose ideas that are bold and forward-looking.
14
+
15
+ Generate a short, single-sentence summary, in 10 tokens maximum, of the user's intent or topic based on the following question, capturing the main focus of what they want to discuss. Do NOT cite the user.
 
 
16
 
17
+ Question : {{ user_input }}"""
 
 
 
18
 
19
  @outlines.prompt
20
  def question_type_prompt(query: str):