Skip to content

Commit d0936fd

Browse files
committed
Updated default configuration
1 parent 590dc5a commit d0936fd

File tree

8 files changed

+14
-52
lines changed

8 files changed

+14
-52
lines changed

config_library/pattern-1/lending-package-sample/config.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,11 @@ agents:
246246
RECOMMENDATION GUIDELINES:
247247
For code-related issues or system bugs:
248248
- Do not suggest code modifications
249-
- Recommend creating a [GitHub](https://github.com/aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws/issues) issue
250249
- Include error details, timestamps, and context
251250
252251
For configuration-related issues:
253252
- Direct users to UI configuration panel
254253
- Specify exact configuration section and parameter names
255-
- Explain impact of changes
256254
257255
For operational issues:
258256
- Provide immediate troubleshooting steps
@@ -262,12 +260,10 @@ agents:
262260
- recent/recently: 1 hour
263261
- last week: 168 hours
264262
- last day/yesterday: 24 hours
265-
- last X days: X * 24 hours
266-
- last X hours: X hours
267263
- No time specified: 24 hours (default)
268264
269265
SPECIAL CASES:
270-
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and upload/processing issues.
266+
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and processing issues.
271267
272268
DO NOT include code suggestions, technical summaries, or multiple paragraphs of explanation. Keep responses concise and actionable.
273269

config_library/pattern-2/bank-statement-sample/config.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -707,13 +707,11 @@ agents:
707707
RECOMMENDATION GUIDELINES:
708708
For code-related issues or system bugs:
709709
- Do not suggest code modifications
710-
- Recommend creating a [GitHub](https://github.com/aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws/issues) issue
711710
- Include error details, timestamps, and context
712711
713712
For configuration-related issues:
714713
- Direct users to UI configuration panel
715714
- Specify exact configuration section and parameter names
716-
- Explain impact of changes
717715
718716
For operational issues:
719717
- Provide immediate troubleshooting steps
@@ -723,15 +721,13 @@ agents:
723721
- recent/recently: 1 hour
724722
- last week: 168 hours
725723
- last day/yesterday: 24 hours
726-
- last X days: X * 24 hours
727-
- last X hours: X hours
728724
- No time specified: 24 hours (default)
729725
730726
SPECIAL CASES:
731-
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and upload/processing issues.
727+
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and processing issues.
732728
733729
DO NOT include code suggestions, technical summaries, or multiple paragraphs of explanation. Keep responses concise and actionable.
734-
730+
735731
IMPORTANT: Do not include any search quality reflections, search quality scores, or meta-analysis sections in your response. Only provide the three required sections: Root Cause, Recommendations, and Evidence.
736732
parameters:
737733
max_log_events: 5

config_library/pattern-2/criteria-validation/config.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,11 @@ agents:
329329
RECOMMENDATION GUIDELINES:
330330
For code-related issues or system bugs:
331331
- Do not suggest code modifications
332-
- Recommend creating a [GitHub](https://github.com/aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws/issues) issue
333332
- Include error details, timestamps, and context
334333
335334
For configuration-related issues:
336335
- Direct users to UI configuration panel
337336
- Specify exact configuration section and parameter names
338-
- Explain impact of changes
339337
340338
For operational issues:
341339
- Provide immediate troubleshooting steps
@@ -345,15 +343,13 @@ agents:
345343
- recent/recently: 1 hour
346344
- last week: 168 hours
347345
- last day/yesterday: 24 hours
348-
- last X days: X * 24 hours
349-
- last X hours: X hours
350346
- No time specified: 24 hours (default)
351347
352348
SPECIAL CASES:
353-
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and upload/processing issues.
349+
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and processing issues.
354350
355351
DO NOT include code suggestions, technical summaries, or multiple paragraphs of explanation. Keep responses concise and actionable.
356-
352+
357353
IMPORTANT: Do not include any search quality reflections, search quality scores, or meta-analysis sections in your response. Only provide the three required sections: Root Cause, Recommendations, and Evidence.
358354
parameters:
359355
max_log_events: 5

config_library/pattern-2/lending-package-sample/config.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,13 +1471,11 @@ agents:
14711471
RECOMMENDATION GUIDELINES:
14721472
For code-related issues or system bugs:
14731473
- Do not suggest code modifications
1474-
- Recommend creating a [GitHub](https://github.com/aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws/issues) issue
14751474
- Include error details, timestamps, and context
14761475
14771476
For configuration-related issues:
14781477
- Direct users to UI configuration panel
14791478
- Specify exact configuration section and parameter names
1480-
- Explain impact of changes
14811479
14821480
For operational issues:
14831481
- Provide immediate troubleshooting steps
@@ -1487,15 +1485,13 @@ agents:
14871485
- recent/recently: 1 hour
14881486
- last week: 168 hours
14891487
- last day/yesterday: 24 hours
1490-
- last X days: X * 24 hours
1491-
- last X hours: X hours
14921488
- No time specified: 24 hours (default)
14931489
14941490
SPECIAL CASES:
1495-
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and upload/processing issues.
1491+
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and processing issues.
14961492
14971493
DO NOT include code suggestions, technical summaries, or multiple paragraphs of explanation. Keep responses concise and actionable.
1498-
1494+
14991495
IMPORTANT: Do not include any search quality reflections, search quality scores, or meta-analysis sections in your response. Only provide the three required sections: Root Cause, Recommendations, and Evidence.
15001496
parameters:
15011497
max_log_events: 5

config_library/pattern-2/rvl-cdip-package-sample-with-few-shot-examples/config.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,13 +1220,11 @@ agents:
12201220
RECOMMENDATION GUIDELINES:
12211221
For code-related issues or system bugs:
12221222
- Do not suggest code modifications
1223-
- Recommend creating a [GitHub](https://github.com/aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws/issues) issue
12241223
- Include error details, timestamps, and context
12251224
12261225
For configuration-related issues:
12271226
- Direct users to UI configuration panel
12281227
- Specify exact configuration section and parameter names
1229-
- Explain impact of changes
12301228
12311229
For operational issues:
12321230
- Provide immediate troubleshooting steps
@@ -1236,15 +1234,13 @@ agents:
12361234
- recent/recently: 1 hour
12371235
- last week: 168 hours
12381236
- last day/yesterday: 24 hours
1239-
- last X days: X * 24 hours
1240-
- last X hours: X hours
12411237
- No time specified: 24 hours (default)
12421238
12431239
SPECIAL CASES:
1244-
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and upload/processing issues.
1240+
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and processing issues.
12451241
12461242
DO NOT include code suggestions, technical summaries, or multiple paragraphs of explanation. Keep responses concise and actionable.
1247-
1243+
12481244
IMPORTANT: Do not include any search quality reflections, search quality scores, or meta-analysis sections in your response. Only provide the three required sections: Root Cause, Recommendations, and Evidence.
12491245
parameters:
12501246
max_log_events: 5

config_library/pattern-2/rvl-cdip-package-sample/config.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -945,13 +945,11 @@ agents:
945945
RECOMMENDATION GUIDELINES:
946946
For code-related issues or system bugs:
947947
- Do not suggest code modifications
948-
- Recommend creating a [GitHub](https://github.com/aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws/issues) issue
949948
- Include error details, timestamps, and context
950949
951950
For configuration-related issues:
952951
- Direct users to UI configuration panel
953952
- Specify exact configuration section and parameter names
954-
- Explain impact of changes
955953
956954
For operational issues:
957955
- Provide immediate troubleshooting steps
@@ -961,15 +959,13 @@ agents:
961959
- recent/recently: 1 hour
962960
- last week: 168 hours
963961
- last day/yesterday: 24 hours
964-
- last X days: X * 24 hours
965-
- last X hours: X hours
966962
- No time specified: 24 hours (default)
967963
968964
SPECIAL CASES:
969-
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and upload/processing issues.
965+
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and processing issues.
970966
971967
DO NOT include code suggestions, technical summaries, or multiple paragraphs of explanation. Keep responses concise and actionable.
972-
968+
973969
IMPORTANT: Do not include any search quality reflections, search quality scores, or meta-analysis sections in your response. Only provide the three required sections: Root Cause, Recommendations, and Evidence.
974970
parameters:
975971
max_log_events: 5

config_library/pattern-3/rvl-cdip-package-sample/config.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -804,13 +804,11 @@ agents:
804804
RECOMMENDATION GUIDELINES:
805805
For code-related issues or system bugs:
806806
- Do not suggest code modifications
807-
- Recommend creating a [GitHub](https://github.com/aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws/issues) issue
808807
- Include error details, timestamps, and context
809808
810809
For configuration-related issues:
811810
- Direct users to UI configuration panel
812811
- Specify exact configuration section and parameter names
813-
- Explain impact of changes
814812
815813
For operational issues:
816814
- Provide immediate troubleshooting steps
@@ -820,15 +818,13 @@ agents:
820818
- recent/recently: 1 hour
821819
- last week: 168 hours
822820
- last day/yesterday: 24 hours
823-
- last X days: X * 24 hours
824-
- last X hours: X hours
825821
- No time specified: 24 hours (default)
826822
827823
SPECIAL CASES:
828-
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and upload/processing issues.
824+
If analysis_type is "document_not_found": explain document cannot be located, focus on verification steps and processing issues.
829825
830826
DO NOT include code suggestions, technical summaries, or multiple paragraphs of explanation. Keep responses concise and actionable.
831-
827+
832828
IMPORTANT: Do not include any search quality reflections, search quality scores, or meta-analysis sections in your response. Only provide the three required sections: Root Cause, Recommendations, and Evidence.
833829
parameters:
834830
max_log_events: 5

lib/idp_common_pkg/idp_common/agents/error_analyzer/tools/error_analysis_tool.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@
1818
logger = logging.getLogger(__name__)
1919

2020

21-
def _is_valid_document_id(doc_id: str) -> bool:
22-
"""Validate that extracted text looks like a real document identifier."""
23-
if not doc_id or len(doc_id) < 3:
24-
return False
25-
26-
return True
27-
28-
2921
def _classify_query_intent(query: str) -> Tuple[str, str]:
3022
"""Classify query as document-specific vs general system analysis."""
3123
# Document-specific patterns - require colon immediately after keyword
@@ -40,9 +32,7 @@ def _classify_query_intent(query: str) -> Tuple[str, str]:
4032
match = re.search(pattern, query, re.IGNORECASE)
4133
if match:
4234
document_id = match.group(1).strip()
43-
# Additional validation - ensure it looks like a document identifier
44-
if _is_valid_document_id(document_id):
45-
return ("document_specific", document_id)
35+
return ("document_specific", document_id)
4636

4737
# If no specific document pattern found, it's general analysis
4838
return ("general_analysis", "")

0 commit comments

Comments
 (0)