Daksh Chaudhary commited on
Added Citation Extractor Prompt
Browse files
agents.py
CHANGED
|
@@ -35,6 +35,17 @@ https://arxiv.org/pdf/2305.12345.pdf
|
|
| 35 |
https://arxiv.org/pdf/2401.54321.pdf
|
| 36 |
"""
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
# --- Agent Creation Functions ---
|
| 39 |
|
| 40 |
def get_query_tool(index):
|
|
|
|
| 35 |
https://arxiv.org/pdf/2401.54321.pdf
|
| 36 |
"""
|
| 37 |
|
| 38 |
+
CITATION_EXTRACTOR_PROMPT = """You are a machine designed for bibliographic data extraction.
|
| 39 |
+
From the provided text of a research paper's first page, identify the following fields: Title, a list of all Authors, and the Year of publication.
|
| 40 |
+
You MUST respond ONLY with a single, minified JSON object containing these fields. Do not add any explanation or conversational text.
|
| 41 |
+
|
| 42 |
+
Example Input:
|
| 43 |
+
'RepairAgent: An Autonomous, LLM-Based Agent for Program Repair Islem Bouzenia University of Stuttgart... Michael Pradel University of Stuttgart... 2024...'
|
| 44 |
+
|
| 45 |
+
Example Output:
|
| 46 |
+
{"title": "RepairAgent: An Autonomous, LLM-Based Agent for Program Repair", "authors": ["Islem Bouzenia", "Michael Pradel"], "year": "2024"}
|
| 47 |
+
"""
|
| 48 |
+
|
| 49 |
# --- Agent Creation Functions ---
|
| 50 |
|
| 51 |
def get_query_tool(index):
|