Kaynağa Gözat

updated prompt

Harshit Pathak 3 ay önce
ebeveyn
işleme
ae9ac21def
2 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      attr_extraction/services.py
  2. BIN
      db.sqlite3

+ 1 - 1
attr_extraction/services.py

@@ -559,7 +559,7 @@ IMPORTANT INSTRUCTIONS FOR USER VALUES:
 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.
+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 why it chose it. Also in this case give the most apt value that should be added in the possible list in the reason so that user can edit it later.
 """
 
         # --------------------------- PROMPT ---------------------------

BIN
db.sqlite3