updating the prompt so i can thoroughly compare the outputs

#1
by amamrnaf - opened

i corrected the prompt, i and added prompting so it can output correct json hopefully

Daemontatox changed pull request status to merged

for future reference , models act better when given an example.

like
"""
give me contractor name ,
example:** john doe , manager**
now your turn : {{contractor name}}
"""

yeah i did, in the last line , i added
"
The output should be formatted as a JSON instance that conforms to the JSON schema below.\n\nAs an example, for the schema {"properties": {"foo": {"title": "Foo", "description": "a list of strings", "type": "array", "items": {"type": "string"}}}, "required": ["foo"]}\nthe object {"foo": ["bar", "baz"]} is a well-formatted instance of the schema. The object {"properties": {"foo": ["bar", "baz"]}} is not well-formatted.
"
i couldve added more like the strucuture about the structure of the schema :

Here is the output schema:\n\n{"$defs": {"Noc_Item_Information": {"description": "Details of each item in the document.", "properties": {"item_number": {"description": "the number of the item", "title": "Item Number", "type": "integer"}, "service_description_code": {"description": "Service description code for the item.", "title": "Service Description Code", "type": "string"}, "completion_date": {"description": "Completion date of the service in DD/MM/YYYY format.", "title": "Completion Date", "type": "string"}, "quantity": {"description": "Quantity of the service or item provided.", "title": "Quantity", "type": "number"}, "unit": {"description": "Unit of measurement, e.g., Days.", "title": "Unit", "type": "string"}, "unit_price": {"description": "Unit price.", "title": "Unit Price", "type": "number"}, "net_amount": {"description": "Total net amount for this item, calculated as quantity * unit price.", "title": "Net Amount", "type": "number"}, "service_details": {"description": "Detailed description of the service provided.", "title": "Service Details", "type": "string"}}, "required": ["item_number", "service_description_code", "completion_date", "quantity", "unit", "unit_price", "net_amount", "service_details"], "title": "Noc_Item_Information", "type": "object"}}, "properties": {"items": {"default": null, "description": "List of items or services provided in the document.", "items": {"$ref": "#/$defs/Noc_Item_Information"}, "title": "Items", "type": "array"}}}\n'

Sign up or log in to comment