KennyOry commited on
Commit
6abcbf3
·
verified ·
1 Parent(s): 1a63235

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -66,7 +66,7 @@ def generate_search_query(prompt: str) -> dict:
66
  - model: equipment model (model name only)
67
  - error_code: error code (if present)
68
  - problem_description: brief English problem description (1-2 sentences)
69
- - search_query: full English search query for technical documentation
70
 
71
  Important rules:
72
  1. All fields MUST be in English
@@ -74,7 +74,6 @@ def generate_search_query(prompt: str) -> dict:
74
  3. Remove brand mentions and the word "error" from model name
75
  4. If error code is specified - include it in search_query
76
  5. Problem description should be concise technical terms (max 7 words)
77
- 6. Search query should be optimized for technical documentation search
78
 
79
  Examples:
80
 
@@ -154,7 +153,7 @@ def generate_search_query(prompt: str) -> dict:
154
  search_parts.append(f"error {json_data['error_code']}")
155
  if json_data['problem_description']:
156
  search_parts.append(json_data['problem_description'])
157
- json_data['search_query'] = " ".join(search_parts).strip() + " technical solution"
158
 
159
  return json_data
160
 
 
66
  - model: equipment model (model name only)
67
  - error_code: error code (if present)
68
  - problem_description: brief English problem description (1-2 sentences)
69
+ - search_query: full English search query
70
 
71
  Important rules:
72
  1. All fields MUST be in English
 
74
  3. Remove brand mentions and the word "error" from model name
75
  4. If error code is specified - include it in search_query
76
  5. Problem description should be concise technical terms (max 7 words)
 
77
 
78
  Examples:
79
 
 
153
  search_parts.append(f"error {json_data['error_code']}")
154
  if json_data['problem_description']:
155
  search_parts.append(json_data['problem_description'])
156
+ json_data['search_query'] = " ".join(search_parts).strip()
157
 
158
  return json_data
159