SheikhGPT
SheikhGPT · Ações GPT
Get answers
Retrieves answers to similiar questions that were asked
GET /searchanswersGetSimiliarAnswersGets answers to similar questions that were asked
Esquema API original
{
"openapi": "3.1.0",
"info": {
"title": "Get answers",
"description": "Retrieves answers to similiar questions that were asked",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://sheikhaiinternal.pythonanywhere.com"
}
],
"paths": {
"/searchanswers": {
"get": {
"description": "Gets answers to similar questions that were asked",
"operationId": "GetSimiliarAnswers",
"parameters": [
{
"name": "query",
"in": "query",
"description": "The question to retrieve answers for",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Top 5 results",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"answers": {
"type": "array",
"description": "Array of top 5 matching answers",
"items": {
"type": "object",
"properties": {
"answer": {
"type": "string",
"description": "Matching answer to the question"
},
"question": {
"type": "string",
"description": "Similiar question that was asked"
},
"url": {
"type": "string",
"description": "Answer's URL"
},
"score": {
"type": "string",
"description": "similiarty score of the answer from 0-1"
}
},
"required": [
"question",
"answer",
"url",
"score"
]
}
}
},
"required": [
"answers"
]
}
}
}
}
},
"deprecated": false
}
}
},
"components": {
"schemas": {
"getAnswers": {
"type": "object",
"properties": {
"answers": {
"items": {
"type": "object",
"properties": {
"answer": {
"type": "string",
"description": "Matching answer to the question"
},
"question": {
"type": "string",
"description": "Similar question that was asked"
},
"url": {
"type": "string",
"description": "Answer's URL"
},
"score": {
"type": "number",
"description": "similarity score of the answer from 0-1"
}
}
}
}
},
"required": [
"answers"
]
}
}
}
}