David Chu commited on
Commit
03401b5
·
unverified ·
1 Parent(s): 5d93afc

feat: improve semantic scholar usage guidance

Browse files
app/system_instruction.txt CHANGED
@@ -20,7 +20,11 @@ When using the `search_medical_literature` tool, follow these guidelines for opt
20
  1. **Extract key medical terms**: Identify the core medical concepts, conditions, procedures, and medications from the user's query
21
  2. **Use medical terminology**: Convert colloquial terms to proper medical terminology when possible
22
  3. **Combine related concepts**: Use Boolean operators (AND, OR) to connect relevant terms
23
- 4. **Keep queries focused**: Limit to 2-4 key concepts to avoid overly narrow searches
 
 
 
 
24
 
25
  Examples:
26
  - User query: "When to discontinue oral anticoagulant therapy in a 85 yr patient undergoing a colonoscopy?"
@@ -32,6 +36,9 @@ Examples:
32
  - User query: "How effective is physical therapy for lower back pain?"
33
  - Good search query: `search_medical_literature("physical therapy efficacy lower back pain")`
34
 
 
 
 
35
  ## Evidence Hierarchy for Medical Literature (in descending order of strength)
36
 
37
  1. **Clinical Practice Guidelines** from governmental agencies (e.g., CDC, FDA), professional medical societies, or major healthcare organizations
 
20
  1. **Extract key medical terms**: Identify the core medical concepts, conditions, procedures, and medications from the user's query
21
  2. **Use medical terminology**: Convert colloquial terms to proper medical terminology when possible
22
  3. **Combine related concepts**: Use Boolean operators (AND, OR) to connect relevant terms
23
+ 4. **Optimize search scope**: Keep keywords broad and conceptual, focusing on 2-4 core medical terms. Avoid overly specific modifiers like "criteria," "indicators," "guidelines," or "recommendations" - instead, let the literature search return comprehensive results that you can then analyze to extract specific criteria, diagnostic indicators, or clinical recommendations. This approach ensures broader coverage of relevant evidence while maintaining search efficiency.
24
+ 5. **Search refinement strategy**: If initial results are insufficient or irrelevant, try to search with the tool again and systematically refine your approach:
25
+ - **Broaden the query**: Remove specific modifiers and use more general medical terms
26
+ - **Alternative terminology**: Try synonyms or different medical terminology for the same concept
27
+ - **Reduce keyword count**: Focus on 2-3 most essential terms if the original query was complex
28
 
29
  Examples:
30
  - User query: "When to discontinue oral anticoagulant therapy in a 85 yr patient undergoing a colonoscopy?"
 
36
  - User query: "How effective is physical therapy for lower back pain?"
37
  - Good search query: `search_medical_literature("physical therapy efficacy lower back pain")`
38
 
39
+ - User query: "What are the criteria for laparoscopic vs open approach in resectable hilar cholangiocarcinoma?"
40
+ - Good search query: `search_medical_literature("resectable hilar cholangiocarcinoma laparoscopic vs open")`
41
+
42
  ## Evidence Hierarchy for Medical Literature (in descending order of strength)
43
 
44
  1. **Clinical Practice Guidelines** from governmental agencies (e.g., CDC, FDA), professional medical societies, or major healthcare organizations
app/tools/literature.py CHANGED
@@ -83,6 +83,17 @@ def format_publication(publication: dict) -> dict:
83
  def search_medical_literature(query: str) -> list[dict]:
84
  """Get medical literature related to the query.
85
 
 
 
 
 
 
 
 
 
 
 
 
86
  Args:
87
  query: keywords, a topic, or a concept to search
88
  for medical literature.
 
83
  def search_medical_literature(query: str) -> list[dict]:
84
  """Get medical literature related to the query.
85
 
86
+ For optimal results, follow these guidelines:
87
+
88
+ 1. Extract key medical terms: Search for core MEDICAL concepts,
89
+ conditions, procedures, and medications
90
+ 2. Optimize search scope: Keep keywords broad and conceptual,
91
+ focusing on 2-4 core medical terms. Avoid modifiers like
92
+ "criteria," "indicators," "guidelines," "recommendations,"
93
+ "treatment," or "management"
94
+ 3. Use medical terminology: Convert colloquial terms to proper
95
+ medical terminology when possible
96
+
97
  Args:
98
  query: keywords, a topic, or a concept to search
99
  for medical literature.