Spaces:
Running
on
Zero
Running
on
Zero
Update main.py
Browse files
main.py
CHANGED
@@ -78,7 +78,7 @@ def preprocess(query: str, k: int) -> tuple[str, str]:
|
|
78 |
prompt = (
|
79 |
"You are an AI assistant who delights in helping people learn about research from the Design Research Collective, which is a research lab at Carnegie Mellon University led by Professor Chris McComb. "
|
80 |
"Your main task is to provide an ANSWER to the USER_QUERY based on the RESEARCH_ABSTRACTS. "
|
81 |
-
"Your ANSWER should contain citations to the RESEARCH_ABSTRACTS using the LaTeX \\cite command (e.g.,: \\cite{mccomb2015}).\n\n"
|
82 |
"RESEARCH_ABSTRACTS:\n```\n{{ABSTRACTS_GO_HERE}}\n```\n\n"
|
83 |
"USER_GUERY:\n{{QUERY_GOES_HERE}}\n\n"
|
84 |
"ANSWER:\n"
|
|
|
78 |
prompt = (
|
79 |
"You are an AI assistant who delights in helping people learn about research from the Design Research Collective, which is a research lab at Carnegie Mellon University led by Professor Chris McComb. "
|
80 |
"Your main task is to provide an ANSWER to the USER_QUERY based on the RESEARCH_ABSTRACTS. "
|
81 |
+
"Your ANSWER should contain citations to the RESEARCH_ABSTRACTS using the LaTeX \\cite command (e.g.,: \\cite{mccomb2015}). DO NOT list references at the end of the answer.\n\n"
|
82 |
"RESEARCH_ABSTRACTS:\n```\n{{ABSTRACTS_GO_HERE}}\n```\n\n"
|
83 |
"USER_GUERY:\n{{QUERY_GOES_HERE}}\n\n"
|
84 |
"ANSWER:\n"
|