MilanM commited on
Commit
271dcf9
·
verified ·
1 Parent(s): e896582

Upload 5 files

Browse files
prompt_templates/code_prototypers/llama_3_code_prototyper.txt ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <|start_header_id|>user<|end_header_id|>\n\nUsing the provided information, generate a highly efficient, minimalist yet well documented python function using the requests library with appropriate input variables for any undefined elements. Provide the response as a JSON output.
2
+
3
+ OpenAPI Introductory Documentation Segment:
4
+ ---
5
+ Introduction
6
+ Last updated: 2023-07-10
7
+ IBM® watsonx.data is a data management solution for collecting, storing, querying, and analyzing all your enterprise data (structured, semi-structured, and unstructured) with a single unified data platform. It provides a flexible and reliable platform that is optimized to work on open data formats.
8
+
9
+ The api are in beta state and expected to change.
10
+
11
+
12
+ Endpoint URLs
13
+ The base URLs come from the service instance. To find the URL, view the service credentials by clicking the name of the service in the Resource list. Use the value of the URL. Add the method to form the complete API endpoint for your request.
14
+
15
+
16
+ Authentication
17
+ Required Purpose: To work with the API, you must use an IBM Cloud Identity and Access Management (IAM) access token. The token is used to determine the actions that a user or service ID has access to when they use the API.
18
+
19
+ You can generate an IAM token for an authenticated user or service ID by using the IAM Identity Services API. IAM tokens are generated by using the user or service ID's API key. For more information, see Generating an IBM Cloud IAM token by using an API key.
20
+
21
+ To use the API, add a valid IAM token to the HTTP Authorization request header, for example, -H 'Authorization: Bearer {TOKEN}'.
22
+
23
+ To retrieve your access token:
24
+
25
+ curl -X POST "https://iam.cloud.ibm.com/identity/token" --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' --data-urlencode 'grant_type=urn:ibm:params:oauth:grant-type:apikey' --data-urlencode 'apikey={API_KEY}'
26
+
27
+ Replace {API_KEY} with your IAM API key.
28
+
29
+
30
+ Auditing
31
+ Required if applicable Purpose: Describes that the API generates auditing events that can be consumed by the Activity Tracker service, and links to your related product docs for more information. Required only if any of the API's methods is enabled to generate auditing events.
32
+
33
+ Example:
34
+
35
+ You can monitor API activity within your account by using the IBM Cloud Activity Tracker service. Whenever an API method is called, an event is generated that you can then track and audit from within Activity Tracker. The specific event type is listed for each individual method.
36
+
37
+ For more information about how to track Certificate Manager activity, see Auditing events for Certificate Manager.
38
+
39
+
40
+ Error handling
41
+ This API uses standard HTTP response codes to indicate whether a method completed successfully. A 200 response indicates success. A 400 type response indicates a failure, and a 500 type response indicates an internal system error.
42
+
43
+ HTTP Error Code Description Recovery
44
+ 200 Success The request was successful.
45
+ 201 Created The requested resource successfully created in a synchronous manner.
46
+ 204 No Content The server successfully processed the request and is not returning any content.
47
+ 400 Bad Request The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all required parameters in your request.
48
+ 401 Unauthorized You are not authorized to make this request. Log in to IBM Cloud and try again. If this error persists, contact the account owner to check your permissions.
49
+ 403 Forbidden The supplied authentication is not authorized to access '{namespace}'.
50
+ 404 Not Found The requested resource could not be found.
51
+ 409 Conflict The entity is already in the requested state.
52
+ 500 Internal Server Error Your request could not be processed. Wait a few minutes and try again.
53
+
54
+ Pagination
55
+ Some API requests might return many results. To avoid performance issues, these results are returned one page at a time, with a limited number of results on each page. GET requests for the following resources use pagination:
56
+
57
+ /v1/statement
58
+ For the request that uses pagination, the response does include following urls to make subsequent requests :
59
+
60
+ infoUri: The URL for requesting the first page of results.
61
+ nextUri: The URL for requesting the next page of results.
62
+
63
+ ---
64
+ OpenAPI Specification Segment to Utilize:
65
+ ---
66
+ Path: {paths}
67
+
68
+ Methods: {methods}
69
+
70
+ Operation IDs: {operation_ids}
71
+
72
+ Simple Rigid Autogenerated Request Example: {request_examples}
73
+
74
+ Simple Rigid Autogenerated Summary Description: {summaries}
75
+ ---
76
+
77
+ Provide the response as a JSON output without any other formatting or response elements.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n
prompt_templates/code_prototypers/llama_3_code_prototyper_var.txt ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <|start_header_id|>user<|end_header_id|>\n\nUsing the provided information, generate a highly efficient, minimalist yet well documented python function using the requests library with appropriate input variables for any undefined elements. Provide the response as a JSON output.
2
+
3
+ OpenAPI Introductory Documentation Segment:
4
+ ---
5
+ {wxdata_apispec}
6
+
7
+ ---
8
+ OpenAPI Specification Segment to Utilize:
9
+ ---
10
+ Path: {paths}
11
+
12
+ Methods: {methods}
13
+
14
+ Operation IDs: {operation_ids}
15
+
16
+ Simple Rigid Autogenerated Request Example: {request_examples}
17
+
18
+ Simple Rigid Autogenerated Summary Description: {summaries}
19
+ ---
20
+
21
+ Provide the response as a JSON output without any other formatting or response elements.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n
prompt_templates/llama/llama_base_system.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ <|start_header_id|>system<|end_header_id|>\n\nWrite your system prompt in this area
2
+ <|eot_id|><|start_header_id|>user<|end_header_id|>\n\nWrite your prompt in this area
3
+ <|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n
prompt_templates/llama/llama_base_user.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ <|start_header_id|>user<|end_header_id|>\n\nWrite your prompt in this area
2
+ <|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n
prompt_templates/mistral/mistral_base.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ [INST] Write your prompt in this area [/INST]