Kaiwu

Kaiwu · GPT Actions

Kaiwu

For querying academic papers and professional documents.

  • POST /search_sci_dbSearch Sci

    This endpoint allows you to perform hybrid search (semantic and key word search) on the academic journal paper database for precise and specialized information. It takes a query string as input and returns a list of documents that match the query.

  • POST /search_education_dbSearch Edu

    This endpoint allows you to perform hybrid search (semantic and key word search) on the educational documents database for precise and specialized information. It takes a query string as input and returns a list of documents that match the query.

  • POST /search_esg_dbSearch Esg

    This endpoint allows you to perform hybrid search (semantic and key word search) on the ESG report database for precise and specialized information. It takes a query string as input and returns a list of documents that match the query.

  • POST /search_patent_dbSearch Patent

    This endpoint allows you to perform hybrid search (semantic and key word search) on the patent database for precise and specialized information. It takes a query string as input and returns a list of documents that match the query.

  • POST /search_standard_dbSearch Standard

    This endpoint allows you to perform hybrid search (semantic and key word search) on the standard database for precise and specialized information. It takes a query string as input and returns a list of documents that match the query.

  • POST /search_report_dbSearch Report

    This endpoint allows you to perform hybrid search (semantic and key word search) on the report database for precise and specialized information. It takes a query string as input and returns a list of documents that match the query.

  • POST /search_textbook_dbSearch Textbook

    This endpoint allows you to perform hybrid search (semantic and key word search) on the textbook database for precise and specialized information. It takes a query string as input and returns a list of documents that match the query.

原始 API 定义
{
  "openapi": "3.1.0",
  "info": {
    "title": "Kaiwu",
    "description": "For querying academic papers and professional documents.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://gpt.kaiwu.info"
    }
  ],
  "paths": {
    "/search_sci_db": {
      "post": {
        "summary": "Search Sci",
        "description": "This endpoint allows you to perform hybrid search (semantic and key word search) on the academic journal paper database for precise and specialized information.\nIt takes a query string as input and returns a list of documents that match the query.",
        "operationId": "search_sci_search_sci_db_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "List of documents matching the query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/search_education_db": {
      "post": {
        "summary": "Search Edu",
        "description": "This endpoint allows you to perform hybrid search (semantic and key word search) on the educational documents database for precise and specialized information.\nIt takes a query string as input and returns a list of documents that match the query.",
        "operationId": "search_edu_search_education_db_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "List of documents matching the query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/search_esg_db": {
      "post": {
        "summary": "Search Esg",
        "description": "This endpoint allows you to perform hybrid search (semantic and key word search) on the ESG report database for precise and specialized information.\nIt takes a query string as input and returns a list of documents that match the query.",
        "operationId": "search_esg_search_esg_db_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "List of documents matching the query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/search_patent_db": {
      "post": {
        "summary": "Search Patent",
        "description": "This endpoint allows you to perform hybrid search (semantic and key word search) on the patent database for precise and specialized information.\nIt takes a query string as input and returns a list of documents that match the query.",
        "operationId": "search_patent_search_patent_db_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "List of patents matching the query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/search_standard_db": {
      "post": {
        "summary": "Search Standard",
        "description": "This endpoint allows you to perform hybrid search (semantic and key word search) on the standard database for precise and specialized information.\nIt takes a query string as input and returns a list of documents that match the query.",
        "operationId": "search_standard_search_standard_db_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "List of documents matching the query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/search_report_db": {
      "post": {
        "summary": "Search Report",
        "description": "This endpoint allows you to perform hybrid search (semantic and key word search) on the report database for precise and specialized information.\nIt takes a query string as input and returns a list of documents that match the query.",
        "operationId": "search_report_search_report_db_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "List of documents matching the query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/search_textbook_db": {
      "post": {
        "summary": "Search Textbook",
        "description": "This endpoint allows you to perform hybrid search (semantic and key word search) on the textbook database for precise and specialized information.\nIt takes a query string as input and returns a list of documents that match the query.",
        "operationId": "search_textbook_search_textbook_db_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "List of documents matching the query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "SearchRequest": {
        "properties": {
          "query": {
            "type": "string",
            "title": "Query"
          },
          "top_k": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Top K",
            "default": 8
          },
          "ext_k": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ext K",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "query"
        ],
        "title": "SearchRequest"
      },
      "SearchResponse": {
        "properties": {
          "result": {
            "items": {
              "$ref": "#/components/schemas/SearchResultWithSource"
            },
            "type": "array",
            "title": "Result"
          }
        },
        "type": "object",
        "required": [
          "result"
        ],
        "title": "SearchResponse"
      },
      "SearchResultWithSource": {
        "properties": {
          "content": {
            "type": "string",
            "title": "Content"
          },
          "source": {
            "type": "string",
            "title": "Source"
          }
        },
        "type": "object",
        "required": [
          "content",
          "source"
        ],
        "title": "SearchResultWithSource"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}