Skip to content

Commit

Permalink
changes to QA_gen
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Brandão <[email protected]>
  • Loading branch information
HolyMichael committed Aug 8, 2023
1 parent 1bcb73e commit 84377d3
Showing 1 changed file with 31 additions and 20 deletions.
51 changes: 31 additions & 20 deletions docs/guide/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,29 +345,40 @@ optional parameter `controller`.
## Sample QAGen kind models requests and responses

### Generate
??? note "Genarate request payload"
??? note "Generate request payload"
```json
{
"apiVersion": "string",
"kind": "QAGenModel",
"metadata": {
"annotations": {
"deepsearch.res.ibm.com/x-deadline": "2038-01-18T00:00:00.000Z",
"deepsearch.res.ibm.com/x-transaction-id": "string",
"deepsearch.res.ibm.com/x-attempt-number": "string",
"deepsearch.res.ibm.com/x-max-attempts": "string"
}
},
"spec": {
"generateAnswers": {
"contexts": [
["What is the best model"]
],
"questions": [
"If you are a dummy repeat what I said!"
"apiVersion":"v1",
"kind":"QAGenModel",
"metadata":{
"annotations":{
"deepsearch.res.ibm.com/x-deadline":"2028-04-20T12:26:01.479484+00:00",
"deepsearch.res.ibm.com/x-transaction-id":"testing",
"deepsearch.res.ibm.com/x-attempt-number":5,
"deepsearch.res.ibm.com/x-max-attempts":5
}
},
"spec":{
"generateAnswers":{
"contexts":[
[
{
"text":"A textual transformation of a given table",
"type":"table",
"representation_type":"triplets"
},
{
"text":"A raw paragraph as it appears on the raw text",
"type":"text",
"representation_type":"raw"
}
]
}
}
],
"questions":[
"42"
]
}
}
}
```

Expand Down

0 comments on commit 84377d3

Please sign in to comment.