diff --git a/parsers.py b/parsers.py
index 9f79af831ec8145fba31512cdca18c45ee683167..436c413a3f35a09418d1eb0a54ab2459b10db26b 100644
--- a/parsers.py
+++ b/parsers.py
@@ -1,5 +1,7 @@
 import ast
 
+MAX_RESPONSE_CHARACTERS = 5000
+
 
 class ShoppingBenchTaskParsers:
     """
@@ -49,6 +51,9 @@ class ShoppingBenchTaskParsers:
             response, str
         ), f"Response must be a string, but got {type(response)}"
 
+        # Consider only the first MAX_RESPONSE_CHARACTERS
+        response = response[:MAX_RESPONSE_CHARACTERS]
+
         # Attempt to retrieve the appropriate parser method for the task type.
         parser_method = task_parser_methods.get(self.task_type)