소스 검색

updated prompt

Harshit Pathak 3 달 전
부모
커밋
ae9ac21def
2개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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