Spaces:
Sleeping
Sleeping
Commit ·
3fdba15
1
Parent(s): 9bb2fc2
improve the prompts
Browse files2 unmodified lines3456789101112131415161718192 unmodified linesfrom pydantic_settings import BaseSettingsEXTRACT_INFO_SYSTEM = "You are an expert at structured data extraction. You will be given an image of a product and should output the its properties into the given structure."EXTRACT_INFO_HUMAN = ("""Output properties of the {product_taxonomy} product in the images. You should use the following attributes to help you if it exists:{product_data}If an attribute is both in the image and the attributes, use the one in the attribute.""").replace(" ", "")FOLLOW_SCHEMA_SYSTEM = "You are an expert at structured data extraction. You will be given an dictionary of attributes of a product and should output the its properties into the given structure."FOLLOW_SCHEMA_HUMAN = """Convert following attributes to structured schema. Keep all the keys and number of values. Only replace the values themselves. :2 unmodified lines3456789101112131415161718192 unmodified linesfrom pydantic_settings import BaseSettingsEXTRACT_INFO_SYSTEM = "You are an expert in structured data extraction. You will be given an image or a set of images of a product and should extract its properties into the given structure."EXTRACT_INFO_HUMAN = ("""Output properties of the {product_taxonomy} product shown in the images. You should use the following product data to assist you, if available:{product_data}If an attribute appears in both the image and the product data, use the value from the product data.""").replace(" ", "")FOLLOW_SCHEMA_SYSTEM = "You are an expert in structured data extraction. You will be given an dictionary of attributes of a product and should output the its properties into the given structure."FOLLOW_SCHEMA_HUMAN = """Convert following attributes to structured schema. Keep all the keys and number of values. Only replace the values themselves. :
app/core/prompts.py+4-4