APIs for Uniphore Business AI platform spanning data, knowledge, models, and agents.
Uniphore Business AI Cloud (1.0.0)
Metadata
Key | Value |
---|---|
owner | Uniphore Technologies Pvt Ltd |
team | Business AI |
department | Engineering |
status | Beta |
- Demo Instance for Uniphore Business AI Cloud
https://forge-api-gateway-x-forge.dev.uniphorecloud.com/question-answer/v1/question/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://forge-api-gateway-x-forge.dev.uniphorecloud.com/question-answer/v1/question/ \
-H 'Content-Type: application/json' \
-H 'authorization: ' \
-d '{
"query": {},
"use_kg": false,
"eval": false,
"doc_store": {
"id": "",
"type": "astradb",
"data": {
"property1": null,
"property2": null
}
},
"kg_doc_store": {
"id": "",
"type": "astradb",
"data": {
"property1": null,
"property2": null
}
},
"kg_embedder": {
"model": "Snowflake/snowflake-arctic-embed-l-v2.0",
"api_base_url": "http://pegasus-inference-api.dev.uniphorecloud.com/openai/v1/",
"api_key": "",
"max_retries": 3
},
"rag_type": "document",
"knowledge_base": {
"id": ""
},
"embedder": {
"model": "Snowflake/snowflake-arctic-embed-l-v2.0",
"api_base_url": "http://pegasus-inference-api.dev.uniphorecloud.com/openai/v1/"
},
"retriever": {
"top_k": 80
},
"ranker": {
"top_k": 15,
"scale_score": true,
"calibration_factor": 1,
"score_threshold": 0
},
"generator": {
"model": "meta-llama/Llama-3.1-70B-Instruct",
"temperature": 0.3,
"max_tokens": 32000,
"api_base_url": "http://pegasus-inference-api.dev.uniphorecloud.com/openai/v1",
"top_p": 0.9
},
"tag": {
"execute_query": false,
"validate_query": false
},
"setup": {},
"rag_prompt": {},
"tag_prompt": {}
}'
Response
application/json
{ "id": {}, "data": null, "query": null, "documents": [ { … } ], "referenced_docs": [ null ], "chartable": {}, "follow_up_questions": [ null ], "meta": { "property1": null, "property2": null }, "config": { "property1": null, "property2": null }, "guardrail_violations": [ null ], "tag_result": { "description": {}, "sql_query": {}, "follow_up_questions": [ … ], "is_valid_sql": {}, "reasoning": {}, "query_execution_result": [ … ], "final_answer": {} } }
- Demo Instance for Uniphore Business AI Cloud
https://forge-api-gateway-x-forge.dev.uniphorecloud.com/question-answer/v1/question/batch
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://forge-api-gateway-x-forge.dev.uniphorecloud.com/question-answer/v1/question/batch \
-H 'Content-Type: application/json' \
-H 'authorization: ' \
-d '{
"query": {},
"use_kg": false,
"eval": false,
"doc_store": {
"id": "",
"type": "astradb",
"data": {
"property1": null,
"property2": null
}
},
"kg_doc_store": {
"id": "",
"type": "astradb",
"data": {
"property1": null,
"property2": null
}
},
"kg_embedder": {
"model": "Snowflake/snowflake-arctic-embed-l-v2.0",
"api_base_url": "http://pegasus-inference-api.dev.uniphorecloud.com/openai/v1/",
"api_key": "",
"max_retries": 3
},
"rag_type": "document",
"knowledge_base": {
"id": ""
},
"embedder": {
"model": "Snowflake/snowflake-arctic-embed-l-v2.0",
"api_base_url": "http://pegasus-inference-api.dev.uniphorecloud.com/openai/v1/"
},
"retriever": {
"top_k": 80
},
"ranker": {
"top_k": 15,
"scale_score": true,
"calibration_factor": 1,
"score_threshold": 0
},
"generator": {
"model": "meta-llama/Llama-3.1-70B-Instruct",
"temperature": 0.3,
"max_tokens": 32000,
"api_base_url": "http://pegasus-inference-api.dev.uniphorecloud.com/openai/v1",
"top_p": 0.9
},
"tag": {
"execute_query": false,
"validate_query": false
},
"setup": {},
"rag_prompt": {},
"tag_prompt": {}
}'
Response
application/json
{ "responses": [ { … } ] }
- Demo Instance for Uniphore Business AI Cloud
https://forge-api-gateway-x-forge.dev.uniphorecloud.com/question-answer/v1/question/{question_id}/feedback
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://forge-api-gateway-x-forge.dev.uniphorecloud.com/question-answer/v1/question/{question_id}/feedback' \
-H 'Content-Type: application/json' \
-H 'authorization: ' \
-d '{
"feedback": null,
"reason": {},
"comments": {},
"knowledge_base_id": {}
}'
- Demo Instance for Uniphore Business AI Cloud
https://forge-api-gateway-x-forge.dev.uniphorecloud.com/question-answer/v1/question/list
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://forge-api-gateway-x-forge.dev.uniphorecloud.com/question-answer/v1/question/list \
-H 'Content-Type: application/json' \
-H 'authorization: ' \
-d '{
"doc_store_id": "",
"knowledge_base_id": "",
"offset": 0,
"limit": 50,
"scope": "all"
}'
Response
application/json
{ "items": [ { … } ] }
Query
Bodyapplication/jsonrequiredOptional question ID to reference
Any of:
Optional question ID to reference
any(uuid)(Question Id)
Optional question ID to reference
- Demo Instance for Uniphore Business AI Cloud
https://forge-api-gateway-x-forge.dev.uniphorecloud.com/question-answer/v1/chart
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://forge-api-gateway-x-forge.dev.uniphorecloud.com/question-answer/v1/chart \
-H 'Content-Type: application/json' \
-H 'authorization: ' \
-d '{
"context": {},
"chart_type": {},
"generator": {
"api_base_url": "http://pegasus-inference-api.dev.uniphorecloud.com/openai/v1",
"model": "meta-llama/Llama-3.1-70B-Instruct",
"max_tokens": 32000,
"temperature": 0.3,
"top_p": 0.9,
"frequency_penalty": 0.2,
"presence_penalty": 0.2,
"max_retries": 3,
"response_format": {
"type": "json_schema",
"json_schema": {
"description": "An answer to the question, plus references to the documents, suggested follow-up questions, chart data in json and recommended chart type",
"name": "chart_structured_answer",
"schema": {
"additionalProperties": false,
"properties": {
"chart_json_data": {
"additionalProperties": true,
"default": {},
"title": "Chart Json Data",
"type": "object"
},
"chart_type": {
"default": "bar",
"title": "Chart Type",
"type": "string"
},
"y_axis_unit": {
"default": "Value",
"title": "Y Axis Unit",
"type": "string"
}
},
"title": "ChartStructuredAnswer",
"type": "object"
},
"strict": true
}
},
"timeout": 30,
"http_client_kwargs": {
"property1": null,
"property2": null
}
},
"chart_prompt": {}
}'
Response
application/json
{ "id": {}, "data": { "chart_json_data": {}, "chart_type": "bar", "y_axis_unit": "Value" }, "chart": {} }