File tree Expand file tree Collapse file tree 1 file changed +31
-20
lines changed Expand file tree Collapse file tree 1 file changed +31
-20
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments