LLM Stack APIs (0.0.1)

Download OpenAPI specification:Download

This is a API specs for LLM Stack. You can find out more about LLM Stack at Documentation Page.

Some useful links:

generic

Generic APIs

Executing a flow

Authorizations:
bearerAuth
Request Body schema: application/json
flow_id
string

Flow ID

inputs
Array of objects

Inputs to the flow, each item is processed independently and results are returned in the same order

Responses

Request samples

Content type
application/json
{
  • "flow_id": "SGTS-QnA-Bot-1575B4B9",
  • "inputs": [
    ]
}

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": [
    ]
}

Publishing a flow

Publish flow using yaml file.

  • If flow_id is not defined in the yaml, flow id will be returned to be used in /flows/execute or app.

  • If flow_id is defined in the yaml, it will update an existing published flow.

Authorizations:
bearerAuth
Request Body schema: multipart/form-data
creator_id
string

Creator id to associate with (only required for systems)

flow_yaml_file
required
string <binary>

Flow config yaml file meeting schema defined at TODO

object

Basic information about the app.

If provided, will check if it's an allowed app using yaml's flow_type.

Required if flow_type supports app.

Responses

Response samples

Content type
application/json
{
  • "status": "string",
  • "message": "string",
  • "data": {
    }
}

Get an S3 presigned url to upload file into S3 for flow

Get a presigned URL to upload file into S3 for use in flow execution

query Parameters
flow_id
required
string

Flow id to associate with file to be stored

filename
required
string

Filename of file to be stored

Responses

Response samples

Content type
application/json
{}

vsm

Vector Store Management APIs using Execute Flow API

Executing a flow for VSM management - remove `/#vsm` in url

Authorizations:
bearerAuth
Request Body schema: application/json
flow_id
string

Flow ID

user_id
string

User ID

Array of objects

Inputs to the flow, each item is processed independently and results are returned in the same order

Responses

Request samples

Content type
application/json
{
  • "flow_id": "Flow_LLMS_Vector_Store_Upsert_Documents_83d6fc4e",
  • "user_id": "a_b@c.com",
  • "inputs": []
}

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": [
    ]
}

Executing a Delete flow for VSM management - remove `/#vsmd` in url

Authorizations:
bearerAuth
Request Body schema: application/json
flow_id
string

Flow ID

user_id
string

User ID

Array of objects

Inputs to the flow, each item is processed independently and results are returned in the same order

Responses

Request samples

Content type
application/json
{
  • "flow_id": "Flow_LLMS_Vector_Store_Delete_Documents_ad34ccbb",
  • "user_id": "a_b@c.com",
  • "inputs": [
    ]
}

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": [
    ]
}