Harshit Pathak 3 ماه پیش
والد
کامیت
9ba6b10e10
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      attr_extraction/services.py
  2. BIN
      db.sqlite3

+ 4 - 1
attr_extraction/services.py

@@ -933,6 +933,9 @@ IMPORTANT INSTRUCTIONS FOR USER VALUES:
         allowed_sources = list(source_map.keys()) + ["title", "description", "inferred"]
         source_hint = "|".join(allowed_sources)
         multiple_text = f"\nMULTIPLE ALLOWED FOR: {', '.join(multiple)}" if multiple else ""
+        
+        print("Multiple text for attr: ")
+        print(multiple_text)
 
         additional_instructions = """
         For the 'additional' section, identify any other important product attributes and their values (e.g., 'Color', 'Material', 'Weight' etc) that are present in the PRODUCT TEXT but not in the Mandatory Attribute list.
@@ -951,7 +954,7 @@ Note: Source means from where you have concluded the result. Choose one of these
 ALLOWED VALUES (MANDATORY):
 {allowed_text}
 
-Return multiple values for these attributes: {multiple_text}
+Note: Always return multiple values for these attributes: {multiple_text}. These values must be most possible values from the list and should be max 2 values. 
 
 {user_values_section}
 

BIN
db.sqlite3