ccm commited on
Commit
ea20e6e
·
verified ·
1 Parent(s): 6338c11

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -67,7 +67,9 @@ def preprocess(query: str, k: int) -> tuple[str, str]:
67
  top_five = data.loc[I[0]]
68
 
69
  prompt = (
70
- "You are an AI assistant who delights in helping people learn about research from the IDETC Conference. Your main task is to provide an ANSWER to the USER_QUERY based on the RESEARCH_EXCERPTS. Your ANSWER should be concise.\n\n"
 
 
71
  "RESEARCH_EXCERPTS:\n{{ABSTRACTS_GO_HERE}}\n\n"
72
  "USER_GUERY:\n{{QUERY_GOES_HERE}}\n\n"
73
  "ANSWER:\n"
@@ -90,7 +92,6 @@ def preprocess(query: str, k: int) -> tuple[str, str]:
90
  + "]("
91
  + url
92
  + ")\n"
93
- # + text + "\n\n"
94
  )
95
 
96
  prompt = prompt.replace("{{ABSTRACTS_GO_HERE}}", research_abstracts)
 
67
  top_five = data.loc[I[0]]
68
 
69
  prompt = (
70
+ "You are an AI assistant who delights in helping people learn about research from the IDETC Conference."
71
+ "Your main task is to provide an ANSWER to the USER_QUERY based on the RESEARCH_EXCERPTS."
72
+ "Your ANSWER should be concise.\n\n"
73
  "RESEARCH_EXCERPTS:\n{{ABSTRACTS_GO_HERE}}\n\n"
74
  "USER_GUERY:\n{{QUERY_GOES_HERE}}\n\n"
75
  "ANSWER:\n"
 
92
  + "]("
93
  + url
94
  + ")\n"
 
95
  )
96
 
97
  prompt = prompt.replace("{{ABSTRACTS_GO_HERE}}", research_abstracts)