Daksh Chaudhary commited on
Commit
658dd5a
·
verified ·
1 Parent(s): b72707e

Added Citation Extractor Prompt

Browse files
Files changed (1) hide show
  1. agents.py +11 -0
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):