Skip to content

Commit 84377d3

Browse files
committed
changes to QA_gen
Signed-off-by: Miguel Brandão <[email protected]>
1 parent 1bcb73e commit 84377d3

File tree

1 file changed

+31
-20
lines changed

1 file changed

+31
-20
lines changed

docs/guide/model.md

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -345,29 +345,40 @@ optional parameter `controller`.
345345
## Sample QAGen kind models requests and responses
346346

347347
### Generate
348-
??? note "Genarate request payload"
348+
??? note "Generate request payload"
349349
```json
350350
{
351-
"apiVersion": "string",
352-
"kind": "QAGenModel",
353-
"metadata": {
354-
"annotations": {
355-
"deepsearch.res.ibm.com/x-deadline": "2038-01-18T00:00:00.000Z",
356-
"deepsearch.res.ibm.com/x-transaction-id": "string",
357-
"deepsearch.res.ibm.com/x-attempt-number": "string",
358-
"deepsearch.res.ibm.com/x-max-attempts": "string"
359-
}
360-
},
361-
"spec": {
362-
"generateAnswers": {
363-
"contexts": [
364-
["What is the best model"]
365-
],
366-
"questions": [
367-
"If you are a dummy repeat what I said!"
351+
"apiVersion":"v1",
352+
"kind":"QAGenModel",
353+
"metadata":{
354+
"annotations":{
355+
"deepsearch.res.ibm.com/x-deadline":"2028-04-20T12:26:01.479484+00:00",
356+
"deepsearch.res.ibm.com/x-transaction-id":"testing",
357+
"deepsearch.res.ibm.com/x-attempt-number":5,
358+
"deepsearch.res.ibm.com/x-max-attempts":5
359+
}
360+
},
361+
"spec":{
362+
"generateAnswers":{
363+
"contexts":[
364+
[
365+
{
366+
"text":"A textual transformation of a given table",
367+
"type":"table",
368+
"representation_type":"triplets"
369+
},
370+
{
371+
"text":"A raw paragraph as it appears on the raw text",
372+
"type":"text",
373+
"representation_type":"raw"
374+
}
368375
]
369-
}
370-
}
376+
],
377+
"questions":[
378+
"42"
379+
]
380+
}
381+
}
371382
}
372383
```
373384

0 commit comments

Comments
 (0)