07. UI&Server
10/27/23Less than 1 minute
| URI | Type | ReqParam | Resp | Desc |
|---|---|---|---|---|
| /api/models | GET | None | [{label: "", value: ""},{label: "", value: ""}] | Get avaliable models list |
| /api/manual_levels | GET | None | {"level_name": ""} | Get the definition of Manual levels |
| /api/parse | POST | Click Here for Details | Click Here for Details | Make summarization and make levels based on contents |
Request Parameters of Parse API
For Manual Levels
{
"level": "Manual",
"model": "",
"LevelDefinition": {
"level_name": "definition"
},
"text": "The content"
}For Auto Levels
{
"level": "Auto",
"model": "",
"text": "The content"
}Response of Parse API
Response Data For Manual Levels
{
"Level": "normal",
"Summarization": "Joseph caught running red light, adjudicated by TCI."
}Response Data For Auto Levels
{
"level": 3,
"reason": "Minor traffic violation captured by camera.",
"domain": "Traffic Law",
"narrative": "Joseph Citizen caught running red light."
}https://haystack.deepset.ai/
https://www.philschmid.de/inferentia2-llama-7b
