模型调用 · 向量化与重排 API (0.1.0)

Download OpenAPI specification:

Public HTTP contract derived from the current route signatures and Pydantic request models. Internal /api/private routes are excluded. Dynamic controller results remain an open JSON schema.

Small Model Reranker

Current route signature. Successful results are returned by the controller without a FastAPI response_model; no fixed response object is enforced at this route.

Authorizations:
BearerAuth
Request Body schema: application/json
required

JSON request accepted by the implemented handler signature. Dictionary fields are validated by the controller.

model
string (Model)

Model name

query
required
string (Query)

Query to rank against

documents
required
Array of any (Documents)

Documents to rank

model_id
string (Model Id)
Default: ""

Model ID

Responses

Request samples

Content type
application/json
{
  • "model": "string",
  • "query": "string",
  • "documents": [
    ],
  • "model_id": ""
}

Response samples

Content type
application/json
null

Small Model Embedding

Current route signature. Successful results are returned by the controller without a FastAPI response_model; no fixed response object is enforced at this route.

Authorizations:
BearerAuth
Request Body schema: application/json
required

JSON request accepted by the implemented handler signature. Dictionary fields are validated by the controller.

model
string (Model)

Model name

input
required
Array of any (Input)

Content to embed

model_id
string (Model Id)
Default: ""

Model ID

Responses

Request samples

Content type
application/json
{
  • "model": "string",
  • "input": [
    ],
  • "model_id": ""
}

Response samples

Content type
application/json
null

Small Model Embeddings

Current route signature. Successful results are returned by the controller without a FastAPI response_model; no fixed response object is enforced at this route.

Authorizations:
BearerAuth
Request Body schema: application/json
required

JSON request accepted by the implemented handler signature. Dictionary fields are validated by the controller.

model
string (Model)

Model name

input
required
Array of any (Input)

Content to embed

model_id
string (Model Id)
Default: ""

Model ID

Responses

Request samples

Content type
application/json
{
  • "model": "string",
  • "input": [
    ],
  • "model_id": ""
}

Response samples

Content type
application/json
null