Skip to content

Commit 579145e

Browse files
authored
Avoiding citation prompt hallucinating doi.org URLs (#1033)
1 parent feb3c43 commit 579145e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/paperqa/prompts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
citation_prompt = (
7878
"Provide the citation for the following text in MLA Format. "
7979
"Do not write an introductory sentence. "
80+
"Do not fabricate a DOI such as '10.xxxx' if one cannot be found,"
81+
" just leave it out of the citation. "
8082
f"If reporting date accessed, the current year is {datetime.now().year}\n\n"
8183
"{text}\n\n"
8284
"Citation:"

0 commit comments

Comments
 (0)