Create a citation for a keyterm prompt test result

post

/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/keyterms/{keyterms_id}/prompts/{keyterms-prompts_id}/testResults/{keyterms-prompts-testResults_id}/citations

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Match All
Show Source
Nested Schema : oraCxSalesCommonKeyterms.PromptTestCitation_post-item
Match All
Show Source
Nested Schema : oraCxSalesCommonKeyterms.PromptTestCitation_item
Match All
Citation is the part of the source document that's referenced by the large language model to get a response.
Show Source
Nested Schema : oraCxSalesCommonKeyterms.PromptTestCitation_item-fields
Type: object
Show Source
Nested Schema : Citation
Type: object
Title: Citation
Citation is the part of the source document that's referenced by the large language model to get a response.
Nested Schema : oraCxSalesCommonKeyterms.PromptTestCitation_post-item-allOf[1]
Type: object
Show Source
Nested Schema : __busObj_context
Type: object
Show Source
Nested Schema : testResult
Match All
Show Source
Nested Schema : oraCxSalesCommonKeyterms.PromptTestResult_item
Match All
Prompt test result includes information about the response provided by the large language model for a specific prompt.
Show Source
Nested Schema : oraCxSalesCommonKeyterms.PromptTestResult_item-fields
Type: object
Show Source
Nested Schema : Prompt Test Result
Type: object
Title: Prompt Test Result
Prompt test result includes information about the response provided by the large language model for a specific prompt.
Nested Schema : testResult-allOf[2]
Type: object
Nested Schema : prompt
Match All
Show Source
Nested Schema : oraCxSalesCommonKeyterms.KeytermPrompt_item
Match All
Key term prompt is the question that's used in a large language model to extract a certain key term from contract documents.
Show Source
Nested Schema : oraCxSalesCommonKeyterms.KeytermPrompt_item-fields
Type: object
Show Source
Nested Schema : Key Term Prompt
Type: object
Title: Key Term Prompt
Key term prompt is the question that's used in a large language model to extract a certain key term from contract documents.
Nested Schema : prompt-allOf[2]
Type: object
Nested Schema : keyterm
Match All
Show Source
Nested Schema : status
Match All
Show Source
  • Title: Status
    Default Value: ORA_OKC_DRAFT
  • Allowed Values: [ "ORA_OKC_DRAFT", "ORA_OKC_ACTIVE", "ORA_OKC_INACTIVE" ]
Nested Schema : oraCxSalesCommonKeyterms.Keyterm_item
Match All
Key term is the metadata present in the contract documents. The key terms to be extracted for each contract type is defined in the application with the corresponding prompts to be used for extraction.
Show Source
Nested Schema : oraCxSalesCommonKeyterms.Keyterm_item-fields
Type: object
Show Source
Nested Schema : Key Term
Type: object
Title: Key Term
Key term is the metadata present in the contract documents. The key terms to be extracted for each contract type is defined in the application with the corresponding prompts to be used for extraction.
Nested Schema : keyterm-allOf[2]
Type: object
Nested Schema : group
Match All
Show Source
Nested Schema : outputType
Match All
Show Source
  • Title: Output Type
  • Allowed Values: [ "ORA_OKC_TEXT", "ORA_OKC_NUMBER", "ORA_OKC_DATE" ]
Nested Schema : oraCxSalesCommonKeyterms.KeytermGroupLookup_item-fields
Match All
Show Source
Nested Schema : oraCommonAppsInfraObjects.LookupCode_abstract-item
Type: object
Show Source
Nested Schema : oraCxSalesCommonKeyterms.KeytermGroupLookup_item-fields-allOf[1]
Type: object
Show Source
Nested Schema : Group
Type: object
Title: Group
Nested Schema : $context
Type: object
Show Source
Nested Schema : testResult
Match One Schema
Show Source
Nested Schema : testResult-oneOf[0]
Type: object
Show Source
Back to Top

Response

Default Response

no content
Back to Top

Examples

The following example shows how to create a citation for a keyterm prompt test result by submitting a post request on the REST resource using cURL.

cURL Command

curl -X POST --location 'https://servername.fa.us2.oraclecloud.com/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/keyterms/{keyterms_id}/prompts/{keyterms-prompts_id}/testResults/{keyterms-prompts-testResults_id}/citations' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <token>' -D @request.json

Example of Request Body

The following shows an example of the request body in JSON format.

{
    "sequenceNumber":10,
    "citation":"Placeholder Text where prompt is present"
}

Example of Response

The following shows an example of the response body in JSON format.

201 Created
Back to Top