소스 검색

Merge branch 'master' of https://git.luminad.com/harshit.pathak/content_quality_tool

abhyuday.andugula 3 달 전
부모
커밋
8f6c35ff87
2개의 변경된 파일18개의 추가작업 그리고 6개의 파일을 삭제
  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)}
 {chr(10).join(user_lines)}
 
 
 IMPORTANT INSTRUCTIONS FOR USER VALUES:
 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 ---------------------------
         # --------------------------- 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