SDGs Insight (Sustainable Development Goals)

SDGs Insight (Sustainable Development Goals) · Actions GPT

Match User Input API

When a question is asked, it will leverage background knowledge

  • POST /api/embeddings/train/queryProcess User Input

    When a question is asked, it will leverage background knowledge

Schéma original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "Match User Input API",
    "version": "1.0.0",
    "description": "When a question is asked, it will leverage background knowledge"
  },
  "servers": [
    {
      "url": "https://gpts-backend.mggis0or1.workers.dev"
    }
  ],
  "paths": {
    "/api/embeddings/train/query": {
      "post": {
        "operationId": "GetKnowledge",
        "summary": "Process User Input",
        "description": "When a question is asked, it will leverage background knowledge",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string"
                  }
                },
                "required": [
                  "query"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "When a question is asked, it will leverage background knowledge",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad request, when the request body does not contain the required fields."
          },
          "500": {
            "description": "Internal server error, when there is an error processing the request."
          }
        }
      }
    }
  }
}