ccm commited on
Commit
3319568
·
verified ·
1 Parent(s): c313486

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -12
main.py CHANGED
@@ -107,18 +107,6 @@ def preprocess(query: str, k: int) -> tuple[str, dict]:
107
 
108
  research_abstracts += top_five["bibtex"].values[i] + "\n"
109
  id_to_url[top_five["bib_dict"].values[i]["ID"]] = f"<a href=\"{url}\">[{first_authors_last_name} {year}]</a>"
110
- references += (
111
- str(i + 1)
112
- + ". "
113
- + authors
114
- + ". ("
115
- + year
116
- + "). ["
117
- + title
118
- + "]"
119
- + url
120
- + ").\n"
121
- )
122
 
123
  prompt = prompt.replace("{{ABSTRACTS_GO_HERE}}", research_abstracts)
124
  prompt = prompt.replace("{{QUERY_GOES_HERE}}", query)
 
107
 
108
  research_abstracts += top_five["bibtex"].values[i] + "\n"
109
  id_to_url[top_five["bib_dict"].values[i]["ID"]] = f"<a href=\"{url}\">[{first_authors_last_name} {year}]</a>"
 
 
 
 
 
 
 
 
 
 
 
 
110
 
111
  prompt = prompt.replace("{{ABSTRACTS_GO_HERE}}", research_abstracts)
112
  prompt = prompt.replace("{{QUERY_GOES_HERE}}", query)