|
23 | 23 | dbms_cloud_ai.generate (
|
24 | 24 | action => 'chat',
|
25 | 25 | profile_name => '&AI_PROFILE_NAME',
|
26 |
| - prompt => 'Parse the given address without any comments. ' |
| 26 | + prompt => 'Parse the given address without any comments. Only return valid JSON - no other text.' |
27 | 27 | || 'The result should be 1) a json object for that address and 2) be simple text, not markdown. '
|
28 | 28 | || 'Here are the required JSON object fields: {addressNumber, streetName, unitNumber, city, state, zip}. '
|
29 | 29 | || 'Apply to the following address: ' || address
|
|
76 | 76 | dbms_cloud_ai.generate (
|
77 | 77 | action => 'chat',
|
78 | 78 | profile_name => '&AI_PROFILE_NAME',
|
79 |
| - prompt => 'Parse the given address list without any comments. ' |
| 79 | + prompt => 'Parse the given address list without any comments. Only return valid JSON - no other text.' |
80 | 80 | || 'The result should be 1) a json array with an json object for each address and 2) be simple text, not markdown. '
|
81 | 81 | || 'Here are the required JSON object fields: {addressNumber, streetName, unitNumber, city, state, zip}. '
|
82 | 82 | || 'Apply to the following list of address: ' || addresses
|
@@ -129,7 +129,7 @@ select
|
129 | 129 | dbms_cloud_ai.generate (
|
130 | 130 | action => 'chat',
|
131 | 131 | profile_name => '&AI_PROFILE_NAME',
|
132 |
| - prompt => 'Summarize the support chat into the following json values without any comments: {summary, keyPhrases, sentiment, supportRep}. content: ' |
| 132 | + prompt => 'Summarize the support chat into the following json values without any comments - only return valid JSON - no other text: {summary, keyPhrases, sentiment, supportRep}. content: ' |
133 | 133 | || support_chat || '. The result should 1) be a valid json document that can be validated against a json schema, 2) begin with { and end with }, 3) be simple text, not markdown. '
|
134 | 134 | || 'Apply these rules to determine the values: '
|
135 | 135 | || 'supportRep: the name of the customer service representative, '
|
|
0 commit comments