Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -109,8 +109,7 @@ def preprocess(query: str, k: int) -> tuple[str, str]:
|
|
109 |
|
110 |
prompt = (
|
111 |
"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. "
|
112 |
-
"Your main task is to provide a concise ANSWER to the USER_QUERY
|
113 |
-
"The RESEARCH_ABSTRACTS are provided in the `.bibtex` format. Your ANSWER should contain citations to the RESEARCH_ABSTRACTS using (AUTHOR, YEAR) format. "
|
114 |
"DO NOT list references at the end of the answer.\n\n"
|
115 |
"===== RESEARCH_EXCERPTS =====:\n{{EXCERPTS_GO_HERE}}\n\n"
|
116 |
"===== USER_QUERY =====:\n{{QUERY_GOES_HERE}}\n\n"
|
|
|
109 |
|
110 |
prompt = (
|
111 |
"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. "
|
112 |
+
"Your main task is to use the RESEARCH_EXCERPTS to provide a concise ANSWER to the USER_QUERY. "
|
|
|
113 |
"DO NOT list references at the end of the answer.\n\n"
|
114 |
"===== RESEARCH_EXCERPTS =====:\n{{EXCERPTS_GO_HERE}}\n\n"
|
115 |
"===== USER_QUERY =====:\n{{QUERY_GOES_HERE}}\n\n"
|