devve1 commited on
Commit
518aa51
1 Parent(s): 3aa8248

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +2 -2
prompts.py CHANGED
@@ -4,7 +4,7 @@ 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():
8
  return [
9
  {
10
  'role': 'system',
@@ -18,7 +18,7 @@ def build_prompt_conv():
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 : {st.session_state.user_input}
22
  """
23
  }
24
  ]
 
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',
 
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
  ]