Harshit Pathak 3 月之前
父节点
当前提交
9ba6b10e10
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      attr_extraction/services.py
  2. 二进制
      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}
 

二进制
db.sqlite3