Files
gpt_academic/crazy_functions/review_fns/prompts/paper_prompts.py
binary-husky 8042750d41 Master 4.0 (#2210)
* stage academic conversation

* stage document conversation

* fix buggy gradio version

* file dynamic load

* merge more academic plugins

* accelerate nltk

* feat: 为predict函数添加文件和URL读取功能
- 添加URL检测和网页内容提取功能,支持自动提取网页文本
- 添加文件路径识别和文件内容读取功能,支持private_upload路径格式
- 集成WebTextExtractor处理网页内容提取
- 集成TextContentLoader处理本地文件读取
- 支持文件路径与问题组合的智能处理

* back

* block unstable

---------

Co-authored-by: XiaoBoAI <liuboyin2019@ia.ac.cn>
2025-08-23 15:59:22 +08:00

47 lines
1.5 KiB
Python

# 新建文件,添加论文识别提示
PAPER_IDENTIFY_PROMPT = """Analyze the query to identify paper details.
Query: {query}
Task: Extract paper identification information from the query.
Always generate English search terms regardless of the input language.
IMPORTANT: Ignore any requirements about journal ranking (CAS, JCR, IF index),
or output format requirements. Focus only on identifying paper details.
Possible paper identifiers:
1. arXiv ID (e.g., 2103.14030, arXiv:2103.14030)
2. DOI (e.g., 10.1234/xxx.xxx)
3. Paper title (e.g., "Attention is All You Need")
Examples:
1. Query with arXiv ID:
Query: "Analyze paper 2103.14030"
<paper_info>
<paper_source>arxiv</paper_source>
<paper_id>2103.14030</paper_id>
<paper_title></paper_title>
</paper_info>
2. Query with DOI:
Query: "Review the paper with DOI 10.1234/xxx.xxx"
<paper_info>
<paper_source>doi</paper_source>
<paper_id>10.1234/xxx.xxx</paper_id>
<paper_title></paper_title>
</paper_info>
3. Query with paper title:
Query: "Analyze 'Attention is All You Need' paper"
<paper_info>
<paper_source>title</paper_source>
<paper_id></paper_id>
<paper_title>Attention is All You Need</paper_title>
</paper_info>
Please analyze the query and respond ONLY with XML tags containing paper information."""
PAPER_IDENTIFY_SYSTEM_PROMPT = """You are an expert at identifying academic paper references.
Your task is to extract paper identification information from queries.
Look for arXiv IDs, DOIs, and paper titles."""