Harshit Pathak 3 mesiacov pred
rodič
commit
833160db47
2 zmenil súbory, kde vykonal 18 pridanie a 6 odobranie
  1. 18 6
      attr_extraction/services.py
  2. BIN
      db.sqlite3

+ 18 - 6
attr_extraction/services.py

@@ -556,12 +556,10 @@ USER MANUALLY ENTERED VALUES:
 {chr(10).join(user_lines)}
 
 IMPORTANT INSTRUCTIONS FOR USER VALUES:
-1. Compare the user-entered value with what you find in the product text
-2. Evaluate if the user value is correct, partially correct, or incorrect for this product
-3. Choose the BEST value (could be user's value, or from allowed list, or inferred)
-4. Always provide a "reason" field explaining your decision
-5. DO NOT hallucinate - be honest if user's value seems wrong based on product evidence
-6. If user's value is not in the allowed list but seems correct, chose the most nearest value from the allowed list with proper reasoning.
+1. Choose the BEST value (could be user's value, or from allowed list, or inferred)
+2. Always provide a "reason" field explaining your decision. Your reason should be valid and from the product text. Not always exact word to be matched from the product text, you can infer understanding the product text.
+3. DO NOT hallucinate - be honest if user's value seems wrong based on product evidence
+4. If user's value is not in the allowed list but seems correct, chose the most nearest value from the allowed list with proper reasoning.
 """
 
         # --------------------------- PROMPT ---------------------------
@@ -690,3 +688,17 @@ RULES:
 
 
 
+
+
+
+
+
+
+
+# IMPORTANT INSTRUCTIONS FOR USER VALUES:
+# 1. Compare the user-entered value with what you find in the product text
+# 2. Evaluate if the user value is correct, partially correct, or incorrect for this product
+# 3. Choose the BEST value (could be user's value, or from allowed list, or inferred)
+# 4. Always provide a "reason" field explaining your decision
+# 5. DO NOT hallucinate - be honest if user's value seems wrong based on product evidence
+# 6. If user's value is not in the allowed list but seems correct, chose the most nearest value from the allowed list with proper reasoning.

BIN
db.sqlite3