{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "AI-QA Service",
    "description" : ".\n\n# AI QA Service\n\n<!-- ReDoc-Inject: <security-definitions> -->",
    "version" : "1.0"
  },
  "servers" : [ {
    "url" : "http://ai-qa-service.mo-re"
  } ],
  "paths" : {
    "/aiqa/api/doc/upload" : {
      "post" : {
        "summary" : "upload document",
        "description" : "upload a document, tenant level, pdf, docx and markdown are supported",
        "operationId" : "uploadDocument",
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "file" : {
                    "type" : "string",
                    "format" : "binary"
                  },
                  "tags" : {
                    "type" : "array",
                    "format" : "string",
                    "items" : {
                      "type" : "string",
                      "description" : "tag name"
                    }
                  },
                  "options" : {
                    "type" : "string",
                    "description" : "process options with JSON format"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "file is processing in backend",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "this file is processing in backend."
                    },
                    "data" : {
                      "$ref" : "#/components/schemas/model.File"
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "description" : "Unsupported file format or file with the same name is being processed",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "unsupported file format."
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/doc/convertmd" : {
      "post" : {
        "summary" : "Convert document to Markdown format",
        "description" : "Convert uploaded document to Markdown format, processing all images with a vision model to generate descriptive text that is inserted below each image.\n\nSupported file types: .docx, .pdf, .ppt, .pptx, .doc",
        "operationId" : "convertToMarkdown",
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "file" : {
                    "type" : "string",
                    "format" : "binary",
                    "description" : "Document file to convert"
                  }
                },
                "required" : [ "file" ]
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Successful conversion",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "status" : {
                      "type" : "string",
                      "example" : "success"
                    },
                    "md_content" : {
                      "type" : "string",
                      "description" : "Processed Markdown content with image descriptions",
                      "example" : "# Document Title\n\n![](images/fd32e5cdf8e15b1bd.jpg)\n\n**Image description**: A diagram showing the process flow...\n\nHere is the main content..."
                    },
                    "original_filename" : {
                      "type" : "string",
                      "example" : "example.docx"
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "description" : "Bad request (unsupported file type)",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "file type not supported"
                    },
                    "status" : {
                      "type" : "string",
                      "example" : "error"
                    }
                  }
                }
              }
            }
          },
          "500" : {
            "description" : "Server error during conversion",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "File convert failed: Connection timeout"
                    },
                    "status" : {
                      "type" : "string",
                      "example" : "error"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/doc/download" : {
      "get" : {
        "summary" : "download document",
        "description" : "download a document",
        "operationId" : "downloadDocument",
        "parameters" : [ {
          "name" : "file_id",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer"
          }
        }, {
          "name" : "tenant",
          "in" : "query",
          "description" : "Tenant identifier for the file",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "a file",
            "content" : {
              "application/octet-stream" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              }
            }
          },
          "404" : {
            "description" : "File not found",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "no file found"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/search/doc" : {
      "post" : {
        "summary" : "semantic search uploaded document",
        "description" : "semantic search uploaded document",
        "operationId" : "searchRelevantContexts",
        "requestBody" : {
          "description" : "request body",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.QueryReq"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "response body",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/model.QueryResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/faq/upload" : {
      "post" : {
        "summary" : "upload a FAQ file",
        "description" : "upload a FAQ file",
        "operationId" : "uploadFaq",
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "file" : {
                    "type" : "string",
                    "format" : "binary"
                  },
                  "tags" : {
                    "type" : "array",
                    "format" : "string",
                    "items" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "a file",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "data" : {
                      "type" : "object",
                      "properties" : {
                        "id" : {
                          "type" : "integer"
                        },
                        "name" : {
                          "type" : "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/faq/template" : {
      "get" : {
        "summary" : "download new FAQ template",
        "description" : "download new FAQ template",
        "operationId" : "getFaqTempalte",
        "parameters" : [ ],
        "responses" : {
          "200" : {
            "description" : "template file",
            "content" : {
              "application/octet-stream" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/faq/search" : {
      "post" : {
        "summary" : "semantic search FAQs",
        "description" : "semantic search FAQs",
        "operationId" : "searchFaq",
        "requestBody" : {
          "description" : "request body",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.FaqQueryReq"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "response body",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/model.FaqQueryResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/faq/matching-check" : {
      "post" : {
        "summary" : "Test the matching of corpus",
        "description" : "Test the matching of corpus",
        "operationId" : "matchingCheckFaq",
        "requestBody" : {
          "description" : "request body",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.MatchingCheckReq"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "response body",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/model.MatchingCheckResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/faq/feedback" : {
      "post" : {
        "summary" : "record FAQ feedback",
        "description" : "record FAQ feedback",
        "operationId" : "feedbackForFaq",
        "requestBody" : {
          "description" : "request body",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.FaqFeedbackReq"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "result",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "status" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/faq/list" : {
      "post" : {
        "summary" : "list FAQ",
        "description" : "list FAQ",
        "operationId" : "listFaq",
        "requestBody" : {
          "description" : "request body",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.FaqListReq"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "result",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/model.FaqListResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/faq/save" : {
      "post" : {
        "summary" : "save FAQ",
        "description" : "save FAQ",
        "operationId" : "saveFaq",
        "requestBody" : {
          "description" : "request body",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.Faq"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "result",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "status" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/faq/batch_update" : {
      "post" : {
        "summary" : "batch update FAQ",
        "description" : "batch update FAQ",
        "operationId" : "batchUpdateFaq",
        "requestBody" : {
          "description" : "request body",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.FaqBatchUpdateReq"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "result",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "status" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/faq/category/save" : {
      "post" : {
        "summary" : "save FAQ category",
        "description" : "save FAQ category",
        "operationId" : "saveFaqCategory",
        "requestBody" : {
          "description" : "request body",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.FaqCategory"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "result",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "status" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/faq/category/tree" : {
      "get" : {
        "summary" : "list all FAQ categories",
        "description" : "list all FAQ categories",
        "operationId" : "treeOfCategory",
        "responses" : {
          "200" : {
            "description" : "result",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "data" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/model.FaqCategory"
                      }
                    },
                    "status" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/ai-doc/search/doc/rag" : {
      "post" : {
        "summary" : "document QA with AI",
        "description" : "document QA with AI",
        "operationId" : "documentQa",
        "requestBody" : {
          "description" : "request body",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.RagSearchReq"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "stream output string token one by one, focus on content",
            "content" : {
              "text/event-stream" : {
                "schema" : {
                  "type" : "string",
                  "example" : "data: {\"id\":\"chat-552f5e08ba224ff4b78d8c2ab4a5b985\",\"object\":\"chat.completion.chunk\",\"created\":1730185250,\"model\":\"Qwen-32B-Chat\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"S\"},\"logprobs\":null,\"finish_reason\":null}]}"
                }
              },
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "data" : {
                      "type" : "string",
                      "description" : "generated answer from AI",
                      "example" : "SPOCK is a service provided by InsureMO that leverages cloud-native technology to offer a user-friendly experience for setting up calculation formulas quickly."
                    },
                    "reference_docs" : {
                      "type" : "array",
                      "description" : "reference documents",
                      "items" : {
                        "type" : "string",
                        "example" : "filename@tenant"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/chat" : {
      "post" : {
        "summary" : "Chat with AI",
        "description" : "Chat with AI",
        "operationId" : "chat",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.ChatForm"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Chat result",
            "content" : {
              "text/event-stream" : {
                "schema" : {
                  "type" : "string"
                }
              },
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "data" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "description" : "Unrecognized tenant or user",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "unrecognized tenant or user."
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/chat/file/upload" : {
      "post" : {
        "summary" : "Upload temp files for chat",
        "description" : "upload file for chat, user level",
        "operationId" : "uploadChatFile",
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "files" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "format" : "binary"
                    }
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Files uploaded successfully",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "success_count" : {
                      "type" : "integer"
                    },
                    "fail_count" : {
                      "type" : "integer"
                    },
                    "fail_files" : {
                      "type" : "array",
                      "items" : {
                        "type" : "string"
                      }
                    },
                    "file_index" : {
                      "type" : "string",
                      "description" : "with format of user@tenant"
                    },
                    "success_files" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/model.ChatFileResponse"
                      }
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "description" : "number of files more than 5, exist file bigger than 2M or upload file with format not included in [pdf, docx, markdown]"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/chat/file/list" : {
      "get" : {
        "summary" : "Get chat file list",
        "operationId" : "listChatFiles",
        "parameters" : [ {
          "name" : "file_name",
          "in" : "query",
          "description" : "Filter files by name, fuzzy search",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "page_no",
          "in" : "query",
          "description" : "Page number for pagination",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "default" : 1
          }
        }, {
          "name" : "page_size",
          "in" : "query",
          "description" : "Number of items per page",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "default" : 10
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "A list of chat files",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "success"
                    },
                    "data" : {
                      "type" : "array",
                      "example" : [ "file1.pdf", "file2.pdf" ],
                      "items" : {
                        "type" : "string"
                      }
                    },
                    "detail" : {
                      "type" : "array",
                      "description" : "defail of files",
                      "items" : {
                        "$ref" : "#/components/schemas/model.ChatFileResponse"
                      }
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "description" : "Error due to unrecognized tenant or user",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "unrecognized tenant or user."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/aiqa/api/doc/list" : {
      "get" : {
        "summary" : "Get document list",
        "description" : "Retrieve paginated document list with filters (file name, tags, status)",
        "operationId" : "listDocuments",
        "parameters" : [ {
          "name" : "file_name",
          "in" : "query",
          "description" : "File name (fuzzy search)",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "report.pdf"
          }
        }, {
          "name" : "tags",
          "in" : "query",
          "description" : "Filter by tags (comma-separated)",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "array",
            "example" : [ "finance", "contract" ],
            "items" : {
              "type" : "string"
            }
          }
        }, {
          "name" : "file_status",
          "in" : "query",
          "description" : "Filter by document status",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "description" : "0: INIT, 1: PROCESSING, 2: USABLE, 3: FAILED, 4: REMOVED",
            "enum" : [ 0, 1, 2, 3, 4 ],
            "example" : 2
          }
        }, {
          "name" : "tenant_only",
          "in" : "query",
          "description" : "Show only current tenant's documents (default: true)",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean",
            "default" : true
          }
        }, {
          "name" : "page_no",
          "in" : "query",
          "description" : "Page number (default: 1)",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "default" : 1,
            "example" : 1,
            "minimum" : 1
          }
        }, {
          "name" : "page_size",
          "in" : "query",
          "description" : "Items per page (default: 10, max: 100)",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "default" : 10,
            "example" : 10,
            "maximum" : 100,
            "minimum" : 1
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Success response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/model.FileListResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/doc/chunk" : {
      "get" : {
        "summary" : "Get document chunks",
        "description" : "Retrieve parsed content chunks of a document",
        "operationId" : "getDocumentChunks",
        "parameters" : [ {
          "name" : "file_id",
          "in" : "query",
          "description" : "Document ID",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "example" : 12345
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Success response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "chunks for file 12345 load success."
                    },
                    "data" : {
                      "type" : "array",
                      "description" : "Parsed content chunks",
                      "items" : { }
                    }
                  }
                }
              }
            }
          },
          "404" : {
            "description" : "Document not found",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "file 12345 not found"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/chat/file/delete" : {
      "delete" : {
        "summary" : "Delete chat file",
        "description" : "Delete chat file by ID or filename (mutually exclusive parameters)",
        "operationId" : "deleteChatFile",
        "parameters" : [ {
          "name" : "filename",
          "in" : "query",
          "description" : "Target filename (alternative to file_id)",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "example" : "report.pdf"
          }
        }, {
          "name" : "file_id",
          "in" : "query",
          "description" : "Target file ID (alternative to filename)",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "example" : 12345
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Success response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "delete this file successfully."
                    },
                    "status_code" : {
                      "type" : "integer",
                      "example" : 200
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "description" : "Invalid parameter combination",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "enum" : [ "specify file_id or filename please", "Only one of filename or file_id needs to be selected." ]
                    },
                    "status_code" : {
                      "type" : "integer",
                      "example" : 400
                    }
                  }
                }
              }
            }
          },
          "403" : {
            "description" : "Permission denied",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "no permission to delete this file."
                    },
                    "status_code" : {
                      "type" : "integer",
                      "example" : 403
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/prompt/get" : {
      "get" : {
        "summary" : "Get prompt details",
        "description" : "Retrieve specific prompt by ID",
        "operationId" : "getPromptById",
        "parameters" : [ {
          "name" : "prompt_id",
          "in" : "query",
          "description" : "Unique identifier of the prompt",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64",
            "example" : 20250529001
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Success response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "prompt load success"
                    },
                    "data" : {
                      "$ref" : "#/components/schemas/model.Prompt"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/prompt/version/list" : {
      "get" : {
        "summary" : "List prompt versions",
        "description" : "List immutable versions of a prompt in descending version order",
        "operationId" : "listPromptVersions",
        "parameters" : [ {
          "name" : "prompt_id",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        }, {
          "name" : "page_no",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "default" : 1
          }
        }, {
          "name" : "page_size",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "default" : 10
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Prompt version list",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "data" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/model.PromptVersionSummary"
                      }
                    },
                    "paging" : {
                      "$ref" : "#/components/schemas/model.Paging"
                    }
                  }
                }
              }
            }
          },
          "403" : {
            "description" : "Permission denied"
          },
          "404" : {
            "description" : "Prompt not found"
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/prompt/version/get" : {
      "get" : {
        "summary" : "Get prompt version",
        "description" : "Load one immutable prompt version",
        "operationId" : "getPromptVersion",
        "parameters" : [ {
          "name" : "prompt_id",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        }, {
          "name" : "version_id",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Prompt version details",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "data" : {
                      "$ref" : "#/components/schemas/model.PromptVersion"
                    }
                  }
                }
              }
            }
          },
          "403" : {
            "description" : "Permission denied"
          },
          "404" : {
            "description" : "Prompt or version not found"
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/prompt/version/compare" : {
      "get" : {
        "summary" : "Compare prompt versions",
        "description" : "Compare two versions and return raw snapshots plus structured line differences",
        "operationId" : "comparePromptVersions",
        "parameters" : [ {
          "name" : "prompt_id",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        }, {
          "name" : "from_version_id",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        }, {
          "name" : "to_version_id",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Structured version comparison",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "data" : {
                      "$ref" : "#/components/schemas/model.PromptVersionCompareResult"
                    }
                  }
                }
              }
            }
          },
          "403" : {
            "description" : "Permission denied"
          },
          "404" : {
            "description" : "Prompt or version not found"
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/prompt/version/restore" : {
      "post" : {
        "summary" : "Restore prompt version",
        "description" : "Copy a historical snapshot into a new latest linear version",
        "operationId" : "restorePromptVersion",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.PromptVersionRestoreForm"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Prompt version restored"
          },
          "400" : {
            "description" : "Invalid restore or no content change"
          },
          "403" : {
            "description" : "Permission denied"
          },
          "404" : {
            "description" : "Prompt or version not found"
          },
          "409" : {
            "description" : "Base version is stale"
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/doc/share" : {
      "post" : {
        "summary" : "Update document share status",
        "description" : "Set document public/private visibility",
        "operationId" : "updateDocumentShareStatus",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.File"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Success response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "share/unshare this file successfully."
                    }
                  }
                }
              }
            }
          },
          "403" : {
            "description" : "Forbidden operation",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "no permission to update this file."
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/tag/file" : {
      "post" : {
        "summary" : "Tag file",
        "description" : "tag file with multi tags",
        "operationId" : "tagFile",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/FileTag"
              },
              "examples" : {
                "basicExample" : {
                  "value" : {
                    "file_id" : 20250529001,
                    "tags" : [ "tag1", "tag2" ]
                  }
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "successful",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "description" : "operation status",
                      "example" : "successful"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/tag/prompt" : {
      "post" : {
        "summary" : "Tag prompt",
        "description" : "Add tags to a prompt",
        "operationId" : "tagPrompt",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.PromptTag"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Success response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "successful"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/ie" : {
      "post" : {
        "summary" : "Extract structured JSON data from a file",
        "description" : "Extract structured JSON data from a file using the provided requirements.",
        "operationId" : "extractJsonData",
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "file" : {
                    "type" : "string",
                    "format" : "binary",
                    "description" : "The file to be processed"
                  },
                  "requirements" : {
                    "type" : "string",
                    "description" : "The requirements for information extraction"
                  },
                  "llm_code" : {
                    "type" : "string",
                    "description" : "llm code for information extraction"
                  }
                },
                "required" : [ "file", "requirements" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Information extraction was successful",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "extract information success"
                    },
                    "data" : {
                      "type" : "object",
                      "description" : "The extracted information",
                      "properties" : {
                        "valid_json" : {
                          "type" : "boolean",
                          "description" : "whether the API return a valid json response"
                        },
                        "content" : {
                          "type" : "object",
                          "description" : "json object if valid_json is true, else a unrecognized json str"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "description" : "Bad request, e.g., unsupported file format or empty file content",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "unsupported file format"
                    }
                  }
                }
              }
            }
          },
          "503" : {
            "description" : "Service unavailable, e.g., generation API check failed",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "generation API check failed, please wait for recovery"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/vl" : {
      "post" : {
        "summary" : "Uploads images and generates texts based on requirements",
        "operationId" : "chatWithImage",
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "files" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "format" : "binary"
                    }
                  },
                  "requirements" : {
                    "type" : "string"
                  },
                  "llm_code" : {
                    "type" : "string",
                    "description" : "Code of the visual language model to use"
                  }
                },
                "required" : [ "files", "llm_code", "requirements" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Successfully generated texts",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "data" : {
                      "type" : "object"
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request - Typically due to too many files or unsupported file format",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/chat/file/status" : {
      "post" : {
        "summary" : "Update chat file status",
        "operationId" : "updateChatFileStatus",
        "requestBody" : {
          "description" : "update status of chat files, change it to enabled or disabled which decide whether the file should be referrenced in dialogue",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.ChatFileReq"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Chat file status updated successfully",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "success"
                    },
                    "data" : { }
                  }
                }
              }
            }
          },
          "403" : {
            "description" : "No permission to update the file",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "no permission to update this file."
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/tag/save" : {
      "post" : {
        "summary" : "Save tags batch",
        "description" : "Create or update multiple tags in bulk",
        "operationId" : "saveTags",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/model.Tag"
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "Success response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "successful"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/doc/delete" : {
      "delete" : {
        "summary" : "Delete document",
        "description" : "Permanently remove a document from the system",
        "operationId" : "deleteDocument",
        "parameters" : [ {
          "name" : "file_id",
          "in" : "query",
          "description" : "Target document ID",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "example" : 12345
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Success response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "delete this file successfully."
                    }
                  }
                }
              }
            }
          },
          "403" : {
            "description" : "Permission denied",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "no permission to delete this file."
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/reply/download" : {
      "get" : {
        "summary" : "Download reply template/results",
        "description" : "Download original template or processed results",
        "operationId" : "downloadReplyFile",
        "parameters" : [ {
          "name" : "file_id",
          "in" : "query",
          "description" : "File identifier",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "example" : 12345
          }
        }, {
          "name" : "category",
          "in" : "query",
          "description" : "File category filter",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "replied" ],
            "example" : "replied"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "File stream",
            "content" : {
              "application/octet-stream" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              }
            }
          },
          "404" : {
            "description" : "File not found",
            "content" : {
              "application/json" : {
                "schema" : { }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/reply/upload" : {
      "post" : {
        "summary" : "Upload reply template",
        "description" : "Upload Excel-based reply template with optional LLM processing",
        "operationId" : "uploadReplyTemplate",
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "file" : {
                    "type" : "string",
                    "format" : "binary",
                    "description" : "Excel file (.xlsx/.xlsm)"
                  },
                  "question_range" : {
                    "type" : "string",
                    "description" : "Excel cell range for questions (e.g. A1:B10)",
                    "example" : "Sheet1!A2:C100"
                  },
                  "answer_range" : {
                    "type" : "string",
                    "description" : "Excel cell range for answers",
                    "example" : "Sheet1!D2:F100"
                  },
                  "use_llm" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Enable LLM processing"
                  }
                },
                "required" : [ "file" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "enum" : [ "this file is processing in backend.", "file is saved." ]
                    },
                    "data" : {
                      "$ref" : "#/components/schemas/model.File"
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "description" : "Invalid file format",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "unsupported file format."
                    }
                  }
                }
              }
            }
          },
          "503" : {
            "description" : "LLM service unavailable",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "service of replying with LLM is temporarily unavailable."
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/tag/list" : {
      "get" : {
        "summary" : "List available tags",
        "description" : "Retrieve all tags for the current tenant",
        "operationId" : "listTags",
        "responses" : {
          "200" : {
            "description" : "Success response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "data" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/model.Tag"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/tag/tree" : {
      "get" : {
        "summary" : "Get tag tree structure",
        "description" : "Retrieve tags grouped by category and tenant",
        "operationId" : "getTagTree",
        "responses" : {
          "200" : {
            "description" : "Success response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "data" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/model.TagTree"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/prompt/list" : {
      "get" : {
        "summary" : "List prompts",
        "operationId" : "listPrompts",
        "parameters" : [ {
          "name" : "prompt_name",
          "in" : "query",
          "description" : "Filter prompts by name for fuzzy search, if not specify, API will return all user's prompts",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "prompt_status",
          "in" : "query",
          "description" : "Filter prompts by status",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "page_no",
          "in" : "query",
          "description" : "Page number for pagination",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer"
          }
        }, {
          "name" : "page_size",
          "in" : "query",
          "description" : "Number of items per page",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "A list of prompts",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "data" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/model.Prompt"
                      }
                    },
                    "paging" : {
                      "type" : "object",
                      "properties" : {
                        "page_no" : {
                          "type" : "integer"
                        },
                        "page_size" : {
                          "type" : "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/prompt/upload" : {
      "post" : {
        "summary" : "Upload a prompt",
        "operationId" : "uploadPrompt",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/model.PromptSaveForm"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Prompt saved successfully",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "prompt saved success"
                    },
                    "data" : {
                      "type" : "object",
                      "properties" : {
                        "id" : {
                          "type" : "integer"
                        },
                        "name" : {
                          "type" : "string"
                        },
                        "description" : {
                          "type" : "string"
                        },
                        "content" : {
                          "type" : "string"
                        },
                        "tenant" : {
                          "type" : "string"
                        },
                        "status" : {
                          "type" : "integer"
                        },
                        "upload_time" : {
                          "type" : "string",
                          "format" : "date-time"
                        },
                        "upload_by" : {
                          "type" : "string"
                        },
                        "is_public" : {
                          "type" : "boolean"
                        },
                        "modify_time" : {
                          "type" : "string",
                          "format" : "date-time"
                        },
                        "modify_by" : {
                          "type" : "string"
                        },
                        "tags" : {
                          "type" : "array",
                          "items" : {
                            "type" : "string"
                          }
                        },
                        "memo" : {
                          "type" : "string"
                        },
                        "current_version_id" : {
                          "type" : "integer",
                          "format" : "int64"
                        },
                        "current_version_no" : {
                          "type" : "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "detail" : {
                      "type" : "string",
                      "example" : "the length of prompt should smaller than 8000"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/chat/openai/v1/chat/completions" : {
      "post" : {
        "summary" : "Chat with OpenAI-compatible API",
        "operationId" : "chatWithOpenAI",
        "responses" : {
          "200" : {
            "description" : "Successful chat response"
          },
          "400" : {
            "description" : "Invalid request parameters",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "llm code not found or llm init failed"
                    }
                  }
                }
              }
            }
          },
          "500" : {
            "description" : "Internal server error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string",
                      "example" : "Internal server error occurred"
                    }
                  }
                }
              }
            }
          }
        },
        "security" : [ {
          "ApiKeyAuth" : [ ]
        } ]
      }
    },
    "/aiqa/api/model/list" : {
      "get" : {
        "tags" : [ "Model" ],
        "summary" : "List all usable models",
        "description" : "List all usable models",
        "operationId" : "list_models_ai_agt_model_list_get",
        "parameters" : [ {
          "name" : "model_type",
          "in" : "query",
          "description" : "model type",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "default" : "llm",
            "description" : "model type",
            "title" : "Model Type"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Successful Response",
            "content" : {
              "application/json" : {
                "schema" : { }
              }
            }
          },
          "422" : {
            "description" : "Validation Error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components" : {
    "schemas" : {
      "model.PromptTag" : {
        "type" : "object",
        "properties" : {
          "prompt_id" : {
            "type" : "integer",
            "description" : "Prompt ID",
            "example" : 1001
          },
          "tags" : {
            "type" : "array",
            "description" : "Tags to be added",
            "example" : [ "insurance", "automation" ],
            "items" : {
              "type" : "string"
            }
          }
        },
        "required" : [ "prompt_id", "tags" ]
      },
      "model.File" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string"
          },
          "tenant" : {
            "type" : "string"
          },
          "status" : {
            "type" : "integer",
            "default" : 0,
            "description" : "0: INIT, 1: PROCESSING, 2: USABLE, 3: FAILED, 4: REMOVED"
          },
          "upload_time" : {
            "type" : "string",
            "format" : "date-time"
          },
          "upload_by" : {
            "type" : "string"
          },
          "memo" : {
            "type" : "string"
          },
          "is_public" : {
            "type" : "boolean",
            "default" : false
          },
          "modify_time" : {
            "type" : "string",
            "format" : "date-time"
          },
          "tags" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        }
      },
      "model.TagTree" : {
        "type" : "object",
        "properties" : {
          "group" : {
            "type" : "string",
            "description" : "Tag grouping name",
            "example" : "Document Types"
          },
          "tags" : {
            "type" : "array",
            "description" : "Tags under this group",
            "example" : [ "contract", "policy" ],
            "items" : {
              "type" : "string"
            }
          },
          "is_tenant_tag" : {
            "type" : "boolean",
            "default" : false,
            "description" : "Indicates tenant-specific tags"
          },
          "tenant" : {
            "type" : "string",
            "description" : "Tenant identifier (if tenant-specific)",
            "example" : "tenant_01"
          }
        },
        "required" : [ "group", "tags" ]
      },
      "model.Prompt" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer",
            "readOnly" : true
          },
          "name" : {
            "type" : "string"
          },
          "description" : {
            "type" : "string"
          },
          "content" : {
            "type" : "string"
          },
          "tenant" : {
            "type" : "string"
          },
          "status" : {
            "type" : "integer",
            "default" : 1
          },
          "upload_time" : {
            "type" : "string",
            "format" : "date-time",
            "readOnly" : true
          },
          "upload_by" : {
            "type" : "string"
          },
          "is_public" : {
            "type" : "boolean",
            "default" : false
          },
          "modify_time" : {
            "type" : "string",
            "format" : "date-time",
            "readOnly" : true
          },
          "modify_by" : {
            "type" : "string",
            "readOnly" : true
          },
          "tags" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "memo" : {
            "type" : "string"
          },
          "current_version_id" : {
            "type" : "integer",
            "format" : "int64",
            "readOnly" : true
          },
          "current_version_no" : {
            "type" : "integer",
            "readOnly" : true
          }
        }
      },
      "model.PromptSaveForm" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/model.Prompt"
        }, {
          "type" : "object",
          "properties" : {
            "base_version_id" : {
              "type" : "integer",
              "format" : "int64",
              "description" : "Optional optimistic-lock base version for updates"
            },
            "change_note" : {
              "type" : "string",
              "description" : "Optional description of the version change"
            }
          }
        } ]
      },
      "model.PromptVersionSummary" : {
        "type" : "object",
        "properties" : {
          "version_id" : {
            "type" : "integer",
            "format" : "int64"
          },
          "prompt_id" : {
            "type" : "integer",
            "format" : "int64"
          },
          "version_no" : {
            "type" : "integer"
          },
          "change_type" : {
            "type" : "string",
            "enum" : [ "CREATE", "UPDATE", "RESTORE", "MIGRATION" ]
          },
          "change_note" : {
            "type" : "string"
          },
          "created_by" : {
            "type" : "string"
          },
          "created_at" : {
            "type" : "string",
            "format" : "date-time"
          }
        },
        "required" : [ "change_type", "prompt_id", "version_id", "version_no" ]
      },
      "model.PromptVersion" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/model.PromptVersionSummary"
        }, {
          "type" : "object",
          "properties" : {
            "name" : {
              "type" : "string"
            },
            "description" : {
              "type" : "string"
            },
            "content" : {
              "type" : "string"
            }
          },
          "required" : [ "content", "description", "name" ]
        } ]
      },
      "model.PromptVersionRestoreForm" : {
        "type" : "object",
        "properties" : {
          "prompt_id" : {
            "type" : "integer",
            "format" : "int64"
          },
          "version_id" : {
            "type" : "integer",
            "format" : "int64"
          },
          "base_version_id" : {
            "type" : "integer",
            "format" : "int64"
          },
          "change_note" : {
            "type" : "string"
          }
        },
        "required" : [ "base_version_id", "prompt_id", "version_id" ]
      },
      "model.PromptDiffBlock" : {
        "type" : "object",
        "properties" : {
          "operation" : {
            "type" : "string",
            "enum" : [ "equal", "insert", "delete", "replace" ]
          },
          "from_start" : {
            "type" : "integer",
            "description" : "1-based start line"
          },
          "from_count" : {
            "type" : "integer"
          },
          "from_lines" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "to_start" : {
            "type" : "integer",
            "description" : "1-based start line"
          },
          "to_count" : {
            "type" : "integer"
          },
          "to_lines" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        },
        "required" : [ "from_count", "from_lines", "from_start", "operation", "to_count", "to_lines", "to_start" ]
      },
      "model.PromptDiffStats" : {
        "type" : "object",
        "properties" : {
          "added_lines" : {
            "type" : "integer"
          },
          "deleted_lines" : {
            "type" : "integer"
          },
          "unchanged_lines" : {
            "type" : "integer"
          },
          "replaced_blocks" : {
            "type" : "integer"
          }
        },
        "required" : [ "added_lines", "deleted_lines", "replaced_blocks", "unchanged_lines" ]
      },
      "model.PromptVersionCompareResult" : {
        "type" : "object",
        "properties" : {
          "from_version" : {
            "$ref" : "#/components/schemas/model.PromptVersion"
          },
          "to_version" : {
            "$ref" : "#/components/schemas/model.PromptVersion"
          },
          "blocks" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/model.PromptDiffBlock"
            }
          },
          "stats" : {
            "$ref" : "#/components/schemas/model.PromptDiffStats"
          }
        },
        "required" : [ "blocks", "from_version", "stats", "to_version" ]
      },
      "model.ChatFileReq" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "tenant" : {
            "type" : "string"
          },
          "status" : {
            "type" : "integer"
          },
          "upload_time" : {
            "type" : "string",
            "format" : "date-time"
          },
          "upload_by" : {
            "type" : "string"
          },
          "memo" : {
            "type" : "string"
          },
          "modify_time" : {
            "type" : "string",
            "format" : "date-time"
          }
        },
        "required" : [ "id", "status" ]
      },
      "model.ChatFileResponse" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "tenant" : {
            "type" : "string"
          },
          "status" : {
            "type" : "integer",
            "default" : 1
          },
          "upload_time" : {
            "type" : "string",
            "format" : "date-time"
          },
          "upload_by" : {
            "type" : "string"
          },
          "memo" : {
            "type" : "string"
          },
          "modify_time" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "model.QueryReq" : {
        "type" : "object",
        "properties" : {
          "query" : {
            "type" : "string",
            "description" : "query text",
            "example" : "how to deploy api to InsureMO"
          },
          "tenant_only" : {
            "type" : "boolean",
            "default" : false,
            "description" : "only retrieve documents tenant owned."
          },
          "search_range" : {
            "type" : "string",
            "description" : "search document range",
            "enum" : [ "All", "Documents" ],
            "example" : "All"
          },
          "top_k" : {
            "type" : "integer",
            "description" : "get the first k records, default is 10",
            "example" : 10
          },
          "tags" : {
            "type" : "array",
            "description" : "search for document with specified tags",
            "items" : {
              "type" : "string",
              "example" : "English"
            }
          }
        },
        "required" : [ "query", "search_range" ]
      },
      "model.QueryResponse" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "description" : "query result",
            "items" : {
              "type" : "object",
              "properties" : {
                "passage" : {
                  "type" : "string",
                  "description" : "queried passage; it's answer for FAQ"
                },
                "query" : {
                  "type" : "string",
                  "description" : "querying title, it's question for FAQ"
                },
                "score" : {
                  "type" : "number",
                  "description" : "match score"
                }
              }
            }
          }
        }
      },
      "model.FaqQueryReq" : {
        "type" : "object",
        "properties" : {
          "query" : {
            "type" : "string",
            "description" : "query question",
            "example" : "how to deploy api to InsureMO"
          },
          "category" : {
            "type" : "array",
            "description" : "search for FAQs in which category, array for multi-level category",
            "example" : [ "InsureMO", "API Gateway" ],
            "items" : {
              "type" : "string"
            }
          },
          "tags" : {
            "type" : "array",
            "description" : "search for FAQs with specified tags, all FAQs will be searched if it is empty",
            "items" : {
              "type" : "string",
              "example" : "English"
            }
          },
          "top_k" : {
            "type" : "integer",
            "description" : "get the first k searched records, default is 10",
            "example" : 10
          },
          "acceptable_score" : {
            "type" : "number",
            "description" : "acceptable matching score threshold, records less than this score will be ignored. default is 60.0",
            "example" : 60
          },
          "only_owner" : {
            "type" : "boolean",
            "description" : "only query current tenant faq, the public faq will be ignored. default is false",
            "example" : true
          }
        },
        "required" : [ "query" ]
      },
      "model.Tag" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer",
            "description" : "Tag ID (auto-generated)",
            "example" : 1001
          },
          "name" : {
            "type" : "string",
            "description" : "Tag display name",
            "example" : "insurance"
          },
          "group" : {
            "type" : "string",
            "description" : "Tag grouping category",
            "example" : "business"
          },
          "tenant" : {
            "type" : "string",
            "description" : "Tenant identifier (auto-populated)",
            "example" : "tenant_01"
          }
        },
        "required" : [ "name" ]
      },
      "model.RagSearchReq" : {
        "type" : "object",
        "properties" : {
          "query" : {
            "type" : "string",
            "description" : "query question",
            "example" : "what is InsureMO"
          },
          "tags" : {
            "type" : "array",
            "description" : "search documents with specified tags, all documents will be searched if it is empty",
            "items" : {
              "type" : "string",
              "example" : "English"
            }
          },
          "top_k" : {
            "type" : "integer",
            "description" : "retrieval top_k related paragraphs for answering",
            "example" : 5
          },
          "file_names" : {
            "type" : "array",
            "description" : "specific target documents for retrieval",
            "items" : {
              "type" : "string",
              "example" : "PolicyIndexES.docx"
            }
          },
          "messages" : {
            "type" : "array",
            "description" : "chat history",
            "example" : [ ],
            "items" : {
              "type" : "object",
              "properties" : {
                "content" : {
                  "type" : "string",
                  "example" : "Hello, how can I help you?"
                },
                "role" : {
                  "type" : "string",
                  "description" : "role should be assistant, user or system",
                  "example" : "user"
                }
              }
            }
          },
          "threshold" : {
            "type" : "number",
            "description" : "retrievaled passages whose relevant score should > threshold for answering",
            "example" : 60
          },
          "stream" : {
            "type" : "boolean",
            "default" : true,
            "description" : "if you want tokens returned one by one, set stream=true, else set stream=false"
          },
          "llm_code" : {
            "type" : "string",
            "description" : "llm code for rag"
          }
        },
        "required" : [ "query", "threshold", "top_k" ]
      },
      "model.ChatForm" : {
        "type" : "object",
        "properties" : {
          "query" : {
            "type" : "string",
            "description" : "query question",
            "example" : "write a story with 100 characters."
          },
          "top_k" : {
            "type" : "integer",
            "description" : "retrieval top_k related paragraphs for answering, if you need chat using documents",
            "example" : 5
          },
          "messages" : {
            "type" : "array",
            "description" : "chat history",
            "example" : [ {
              "content" : "hello",
              "role" : "user"
            }, {
              "content" : "I'm AI assistant, what can i help you?",
              "role" : "assistant"
            } ],
            "items" : {
              "type" : "object",
              "properties" : {
                "content" : {
                  "type" : "string",
                  "example" : "hello"
                },
                "role" : {
                  "type" : "string",
                  "description" : "role should be assistant, user or system",
                  "enum" : [ "system", "user", "assistant" ],
                  "example" : "user"
                }
              }
            }
          },
          "threshold" : {
            "type" : "number",
            "default" : 60,
            "description" : "retrievaled passages whose relevant score should > threshold for answering, if you need chat using documents"
          },
          "temperature" : {
            "type" : "number",
            "default" : 0.2,
            "description" : "control the randomness or diversity for AI outputs, larger number means more randomness, range from 0-2"
          },
          "file_ids" : {
            "type" : "array",
            "default" : [ ],
            "description" : "use files uploaded by user to chat with",
            "items" : {
              "type" : "integer",
              "description" : "specify files for the chat"
            }
          },
          "stream" : {
            "type" : "boolean",
            "default" : true,
            "description" : "stream output or not"
          },
          "use_files" : {
            "type" : "boolean",
            "default" : true,
            "description" : "whether use files for chat, default true"
          },
          "llm_code" : {
            "type" : "string",
            "description" : "llm code for chat"
          }
        },
        "required" : [ "messages", "query" ]
      },
      "model.FaqQueryResponse" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "description" : "query result",
            "items" : {
              "type" : "object",
              "properties" : {
                "question" : {
                  "type" : "string",
                  "description" : "queried question of FAQ"
                },
                "answer" : {
                  "type" : "string",
                  "description" : "answer of FAQ"
                },
                "score" : {
                  "type" : "number",
                  "description" : "matching score"
                },
                "meta" : {
                  "type" : "object",
                  "properties" : {
                    "faq_id" : {
                      "type" : "integer",
                      "description" : "faq id"
                    },
                    "tenant" : {
                      "type" : "string",
                      "description" : "the tenant of FAQ"
                    },
                    "is_public" : {
                      "type" : "boolean",
                      "description" : "is it a shared FAQ"
                    },
                    "tags" : {
                      "type" : "array",
                      "description" : "the tags of FAQ",
                      "items" : {
                        "type" : "string"
                      }
                    },
                    "cate_id" : {
                      "type" : "integer",
                      "description" : "the category id of FAQ"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "model.MatchingCheckReq" : {
        "type" : "object",
        "properties" : {
          "query" : {
            "type" : "string",
            "description" : "query string",
            "example" : "how to deploy api to InsureMO"
          },
          "texts" : {
            "type" : "array",
            "description" : "the texts to be matched",
            "example" : [ "What kind of skillset / capability background required to develop and maintain API within InsureMO API factory ecosystem" ],
            "items" : {
              "type" : "string"
            }
          }
        },
        "required" : [ "query", "texts" ]
      },
      "model.MatchingCheckResponse" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "description" : "test result",
            "items" : {
              "type" : "object",
              "properties" : {
                "query" : {
                  "type" : "string",
                  "description" : "query string"
                },
                "text" : {
                  "type" : "string",
                  "description" : "matching text"
                },
                "score" : {
                  "type" : "number",
                  "description" : "matching score"
                }
              }
            }
          }
        }
      },
      "model.FileListResponse" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "description" : "List of documents",
            "items" : {
              "$ref" : "#/components/schemas/model.File"
            }
          },
          "paging" : {
            "$ref" : "#/components/schemas/model.Paging"
          }
        }
      },
      "model.FaqFeedbackReq" : {
        "type" : "object",
        "properties" : {
          "faq_id" : {
            "type" : "integer",
            "description" : "FAQ id"
          },
          "query_string" : {
            "type" : "string",
            "description" : "current query string",
            "example" : "how to deploy api to InsureMO"
          },
          "feedback_helpful" : {
            "type" : "integer",
            "description" : "feedback whether the answer is helpful; 1: helpful, 2: unhelpful",
            "enum" : [ 1, 2 ],
            "example" : 1
          },
          "feedback_score" : {
            "type" : "integer",
            "description" : "feedback score, the value range is [1,5]",
            "enum" : [ 1, 2, 3, 4, 5 ],
            "example" : 3
          },
          "feedback_comment" : {
            "type" : "string",
            "description" : "feedback comment",
            "example" : "need some examples to understand"
          }
        },
        "required" : [ "faq_id" ]
      },
      "model.FaqListReq" : {
        "properties" : {
          "cate_id" : {
            "type" : "integer",
            "description" : "category id",
            "example" : 1
          },
          "question_like" : {
            "type" : "string",
            "description" : "fuzzy query FAQ question"
          },
          "is_valid" : {
            "type" : "boolean",
            "description" : "query effective FAQ"
          },
          "is_removed" : {
            "type" : "boolean",
            "description" : "query logical deleted FAQ"
          },
          "is_public" : {
            "type" : "boolean",
            "description" : "query shared FAQ"
          },
          "paging" : {
            "$ref" : "#/components/schemas/model.Paging"
          }
        }
      },
      "model.Paging" : {
        "type" : "object",
        "properties" : {
          "page_no" : {
            "type" : "integer",
            "description" : "page number",
            "example" : 1
          },
          "page_size" : {
            "type" : "integer",
            "description" : "page size",
            "example" : 10
          },
          "total_records" : {
            "type" : "integer",
            "description" : "quered numbers of FAQ",
            "example" : null
          }
        }
      },
      "model.FaqListResponse" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "description" : "faq list",
            "items" : {
              "$ref" : "#/components/schemas/model.Faq"
            }
          },
          "paging" : {
            "$ref" : "#/components/schemas/model.Paging"
          }
        }
      },
      "model.Faq" : {
        "properties" : {
          "faq_id" : {
            "type" : "integer",
            "description" : "faq id"
          },
          "cate_id" : {
            "type" : "integer",
            "description" : "the category id of FAQ"
          },
          "eff_date" : {
            "type" : "string",
            "description" : "the effective date of FAQ, format: yyyy-mm-dd"
          },
          "exp_date" : {
            "type" : "string",
            "description" : "the expired date of FAQ, format: yyyy-mm-dd"
          },
          "tags" : {
            "type" : "array",
            "description" : "the tags of FAQ",
            "items" : {
              "type" : "string"
            }
          },
          "question" : {
            "type" : "string",
            "description" : "the question of FAQ"
          },
          "answer" : {
            "type" : "string",
            "description" : "the answer of FAQ"
          },
          "min_matching_score" : {
            "type" : "number",
            "description" : "the min matching score of FAQ"
          },
          "is_valid" : {
            "type" : "boolean",
            "description" : "query effective FAQ"
          },
          "is_removed" : {
            "type" : "boolean",
            "description" : "query logical deleted FAQ"
          },
          "is_public" : {
            "type" : "boolean",
            "description" : "query shared FAQ"
          }
        }
      },
      "model.FaqBatchUpdateReq" : {
        "type" : "object",
        "properties" : {
          "faq_ids" : {
            "type" : "array",
            "description" : "faq id list",
            "items" : {
              "type" : "integer"
            }
          },
          "update_type" : {
            "type" : "string",
            "description" : "update type",
            "enum" : [ "Category", "ValidPeriod", "PublicStatus", "Tag", "Delete", "Restore" ]
          },
          "cate_id" : {
            "type" : "integer",
            "description" : "the category id of FAQ"
          },
          "eff_date" : {
            "type" : "string",
            "description" : "the effective date of FAQ, format: yyyy-mm-dd"
          },
          "exp_date" : {
            "type" : "string",
            "description" : "the expired date of FAQ, format: yyyy-mm-dd"
          },
          "tags" : {
            "type" : "array",
            "description" : "the tags of FAQ",
            "items" : {
              "type" : "string"
            }
          },
          "is_public" : {
            "type" : "boolean",
            "description" : "query shared FAQ"
          }
        }
      },
      "model.FaqCategory" : {
        "properties" : {
          "cate_id" : {
            "type" : "integer",
            "description" : "the category id"
          },
          "parent_id" : {
            "type" : "integer",
            "description" : "the parent category id"
          },
          "name" : {
            "type" : "string",
            "description" : "the category name"
          },
          "sub_categories" : {
            "type" : "array",
            "description" : "the sub categories",
            "items" : {
              "type" : "object"
            }
          }
        }
      },
      "FileTag" : {
        "type" : "object",
        "properties" : {
          "file_id" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "file id",
            "example" : 20250529001
          },
          "tags" : {
            "type" : "array",
            "items" : {
              "type" : "string",
              "description" : "tag for file",
              "example" : "tag1"
            }
          }
        },
        "required" : [ "file_id", "tags" ]
      },
      "HTTPValidationError" : {
        "type" : "object",
        "properties" : {
          "detail" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ValidationError"
            },
            "title" : "Detail"
          }
        },
        "title" : "HTTPValidationError"
      },
      "ValidationError" : {
        "type" : "object",
        "properties" : {
          "loc" : {
            "type" : "array",
            "items" : {
              "anyOf" : [ {
                "type" : "string"
              }, {
                "type" : "integer"
              } ]
            },
            "title" : "Location"
          },
          "msg" : {
            "type" : "string",
            "title" : "Message"
          },
          "type" : {
            "type" : "string",
            "title" : "Error Type"
          }
        },
        "required" : [ "loc", "msg", "type" ],
        "title" : "ValidationError"
      }
    },
    "securitySchemes" : {
      "ApiKeyAuth" : {
        "type" : "apiKey",
        "name" : "Authorization",
        "in" : "header"
      }
    }
  },
  "jsonSchemaDialect" : "https://spec.openapis.org/oas/3.1/dialect/base",
  "x-mo-auth-enabled" : true,
  "x-mo-cors-enabled" : true
}