Get a new JWT bearer token for use with API calls for authorization
Description of the new bearer token request body
client_id | string Client ID of the API client |
client_secret | string Pre-shared secret |
{- "client_id": "string",
- "client_secret": "string"
}
{- "access_token": "string",
- "expires_in": 3600
}
Invoke a multi-modal response from the co-pilot in response to the given query text/prompt.
Description of the request body to prompt the co-pilot
project_id | string <uuid> = 36 characters Unique co-pilot ID. Example: <some_uuid4_string>. The copilot_id is a unique identifier for the specific co-pilot being prompted. |
end_user_id | string <uuid> = 36 characters Unique end_user ID. Example: <some_uuid4_string>. The end_user_id is a unique identifier for the end-user interacting with the customer's co-pilot. |
interaction_id | string <uuid> = 36 characters Unique interaction or session ID. Example: <some_uuid4_string>. The interaction_id is a unique identifier for an instance of a multi-turn dialogue between the end-user and the customer's co-pilot. |
files | Array of strings <binary> [ items <binary > ] A list of files to be uploaded and made available to a multi-modal co-pilot. |
query | string Prompt. Example: I am looking for help managing some recurring upper back pain. This is one instance/turn of conversation from the customer to the copilot. All queries in an interaction are appended in received order, along with the co-pilot's generated responses, in the interaction history. |
stage_id | integer Default: -1 The processing stage/agent of the co-pilot (which can be a network of agents) that must process this query. |
max_history | integer [ 0 .. 20 ] Default: 3 The maximum number of previous turns of conversation that must be fed in to the co-pilot's context as conversation history. |
model | string The name of the model to be used for generating the response. |
temperature | number [ 0 .. 1 ] Default: 0 Temperature setting for the co-pilot's text response generator. |
max_out_tokens | integer The approximate maximum number of tokens the co-pilot must generate in its text response. This parameter is clipped to the model's maximum output token limit. |
nnq | integer [ 0 .. 3 ] Default: 0 The number of 'suggested next questions' that the model should propose for the next turn of conversation. |
fetch_k | integer [ 0 .. 10000 ] Default: 20 The number of relevant vectors (embedded chunks of text) that the retriever should fetch from the vector database. |
fetch_p | number [ 0 .. 1 ] Default: 0 The threshold for the hybrid relevance score below which vectors from the vector database should be ignored. |
hybrid_alpha | number [ 0 .. 1 ] Default: 0.8 The relative weightage towards vector similarity vs. keyword search-based matching between the input query and vector objects. |
debug | boolean Default: false Flag that controls diagnostic-mode output from the API. |
{- "response_id": "696f09c4-2678-4263-8db2-0a7204e502c2",
- "timestamp": "2019-08-24T14:15:22Z",
- "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
- "end_user_id": "c5ac076e-1e7a-4f0d-9ad4-cae618230def",
- "interaction_id": "fd463a24-cab4-49e4-b915-3c70a62977c3",
- "query": "string",
- "stage_id": -1,
- "expert_supervised": false,
- "stage_locked": false,
- "ai_response_text": "string",
- "response_text": "string",
- "generation_config": {
- "temp": 0,
- "nnq": 0,
- "resp_length": 0,
- "history": 0,
- "fetch_k": 0
}, - "thumbs_up": true,
- "thumbs_feedback": "string",
- "star_rating": 1,
- "star_feedback": "string",
- "finish_reason": "string",
- "next_questions": [
- "string"
], - "grounding": [
- "string"
], - "usage": {
- "prompt_tokens": 0,
- "completion_tokens": 0,
- "total_tokens": 0
}, - "languageModel": "string",
- "sys_fp": "string",
- "response_tts_path": "string",
- "ttsresponse_id": "string",
- "sttresponse_id": "string",
- "log_probs": [ ],
- "scores": [
- 0
], - "llm_full_answer": "string",
- "project_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
Get filter criteria metadata for retrieval of multi-modal responses from conversation history.
project_id required | string <uuid> = 36 characters Unique project ID. Example: <some_uuid4_string>. The copilot_id for the co-pilot whose conversation history filter metadata is being requested. |
end_user_id required | string <uuid> = 36 characters Unique end-user ID. Example: <some_uuid4_string>. The end_user_id for the end-user whose conversation history filter metadata with this co-pilot is being requested. |
interaction_id required | string <uuid> = 36 characters Unique interaction or session ID. Example: <some_uuid4_string>. The interaction_id for the interaction or session whose conversation history filter metadata with this co-pilot is being requested. |
{- "users": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "interactions": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "from_timestamp": "2019-08-24T14:15:22Z",
- "to_timestamp": "2019-08-24T14:15:22Z"
}
Get the multi-modal chat history given filtering and pagination criteria.
project_id required | string <uuid> = 36 characters Unique project ID. Example: <some_uuid4_string>. The copilot_id for the co-pilot whose conversation history is being requested. |
end_user_id required | string <uuid> = 36 characters Unique end-user ID. Example: <some_uuid4_string>. The end_user_id for the end-user whose conversation history with this co-pilot is being requested. |
interaction_id required | string <uuid> = 36 characters Unique interaction or session ID. Example: <some_uuid4_string>. The interaction_id for the interaction or session whose conversation history with this co-pilot is being requested. |
page | number >= 1 The specific page of results to be returned. This is not a filtering criterion. |
per_page | number >= 1 The number of entries to be returned per page. This is not a filtering criterion. |
from_timestamp | string <date-time> Filtering criterion specifying the earliest timestamp (in ISO-8601 format) from which responses need to be retrieved. |
to_timestamp | string <date-time> Filtering criterion specifying the latest timestamp (in ISO-8601 format) till which responses need to be retrieved. |
{- "num_results": 0,
- "page": 0,
- "per_page": 0,
- "has_next": true,
- "has_prev": true,
- "results": [
- {
- "schema": {
- "response_id": "696f09c4-2678-4263-8db2-0a7204e502c2",
- "timestamp": "2019-08-24T14:15:22Z",
- "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
- "end_user_id": "c5ac076e-1e7a-4f0d-9ad4-cae618230def",
- "interaction_id": "fd463a24-cab4-49e4-b915-3c70a62977c3",
- "query": "string",
- "stage_id": -1,
- "expert_supervised": false,
- "stage_locked": false,
- "ai_response_text": "string",
- "response_text": "string",
- "generation_config": {
- "temp": 0,
- "nnq": 0,
- "resp_length": 0,
- "history": 0,
- "fetch_k": 0
}, - "thumbs_up": true,
- "thumbs_feedback": "string",
- "star_rating": 1,
- "star_feedback": "string",
- "finish_reason": "string",
- "next_questions": [
- "string"
], - "grounding": [
- "string"
], - "usage": {
- "prompt_tokens": 0,
- "completion_tokens": 0,
- "total_tokens": 0
}, - "languageModel": "string",
- "sys_fp": "string",
- "response_tts_path": "string",
- "ttsresponse_id": "string",
- "sttresponse_id": "string",
- "log_probs": [ ],
- "scores": [
- 0
], - "llm_full_answer": "string",
- "project_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
}
]
}
Transcribe a live recording or an uploaded audio file to text.
The audio data to be transcribed.
audio_file | string <binary> |
project_id | string <uuid> = 36 characters |
end_user_id | string <uuid> = 36 characters |
interaction_id | string <uuid> = 36 characters |
input_language | string The language of the audio file. |
{- "stt_response_id": "590e1b8c-cec2-401d-a213-2144483eeb2c",
- "timestamp": "2019-08-24T14:15:22Z",
- "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
- "end_user_id": "c5ac076e-1e7a-4f0d-9ad4-cae618230def",
- "interaction_id": "fd463a24-cab4-49e4-b915-3c70a62977c3",
- "text_translated": "string",
- "translated": true,
- "path": "string",
- "text": "string",
- "language": "string",
- "usage": {
- "stt": {
- "model": "string",
- "duration": 0
}, - "translation": {
- "model": "string",
- "completion_tokens": 0,
- "prompt_tokens": 0,
- "total_tokens": 0
}
}
}
Synthesize audio from text.
The text to be synthesized.
response_id | string <uuid> = 36 characters The multi-modal response ID (in UUID4 format), the text portion of which is to be synthesized. |
{- "response_id": "696f09c4-2678-4263-8db2-0a7204e502c2"
}
{- "tts_response_id": "2931dfb2-45b4-4854-aacc-d891ea0bf813",
- "timestamp": "2019-08-24T14:15:22Z",
- "response_id": "696f09c4-2678-4263-8db2-0a7204e502c2",
- "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
- "end_user_id": "c5ac076e-1e7a-4f0d-9ad4-cae618230def",
- "interaction_id": "fd463a24-cab4-49e4-b915-3c70a62977c3",
- "path": "string",
- "usage": {
- "model": "string",
- "token_count": 0
}
}
Get filter criteria metadata for retrieval of inference responses.
copilot_id required | string <uuid> = 36 characters Unique co-pilot ID. Example: <some_uuid4_string>. The ID of the co-pilot whose inference history filter metadata is being requested. |
user_id | string <uuid> = 36 characters Unique end-user ID. Example: <some_uuid4_string>. The ID of the end-user whose inference history filter metadata with this co-pilot is being requested. |
{- "users": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "interactions": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "from_timestamp": "2019-08-24T14:15:22Z",
- "to_timestamp": "2019-08-24T14:15:22Z"
}
Submit a payload for inference.
copilot_id required | string <uuid> = 36 characters Unique copilot ID. Example: <some_uuid4_string>. The copilot_id for the co-pilot on which the inference is being requested. |
user_id required | string <uuid> = 36 characters Unique end-user ID. Example: <some_uuid4_string>. The end_user_id for the end-user making the inference request. |
A list of predictor values (including files, such as images), the inference model, and model-specific inference payload.
model | string Inference model identifier. |
payload | object Model-specific payload. |
{- "model": "ooogenai/xwsegnet",
- "payload": "{\"key1\": \"value1\", \"key2\": \"value2\"}"
}
{- "response_id": "696f09c4-2678-4263-8db2-0a7204e502c2",
- "timestamp": "2019-08-24T14:15:22Z",
- "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
- "end_user_id": "c5ac076e-1e7a-4f0d-9ad4-cae618230def",
- "model": "string",
- "payload": { },
- "file_list": [
- {
- "type": null
}
], - "inferences": [
- {
- "type": null
}
]
}
Get inference history given filtering and pagination criteria.
copilot_id required | string <uuid> = 36 characters Unique co-pilot ID. Example: <some_uuid4_string>. The ID of the co-pilot whose image inference history is being requested. |
user_id required | string <uuid> = 36 characters Unique end-user ID. Example: <some_uuid4_string>. The ID of the end-user whose image inference history with this co-pilot is being requested. |
page | number >= 1 The specific page of results to be returned. This is not a filtering criterion. |
per_page | number >= 1 The number of entries to be returned per page. This is not a filtering criterion. |
from_timestamp | string <date-time> Filtering criterion specifying the earliest timestamp (in ISO-8601 format) from which responses need to be retrieved. |
to_timestamp | string <date-time> Filtering criterion specifying the latest timestamp (in ISO-8601 format) till which responses need to be retrieved. |
{- "num_results": 0,
- "page": 0,
- "per_page": 0,
- "has_next": true,
- "has_prev": true,
- "results": [
- {
- "schema": {
- "response_id": "696f09c4-2678-4263-8db2-0a7204e502c2",
- "timestamp": "2019-08-24T14:15:22Z",
- "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
- "end_user_id": "c5ac076e-1e7a-4f0d-9ad4-cae618230def",
- "interaction_id": "fd463a24-cab4-49e4-b915-3c70a62977c3",
- "query": "string",
- "stage_id": -1,
- "expert_supervised": false,
- "stage_locked": false,
- "ai_response_text": "string",
- "response_text": "string",
- "generation_config": {
- "temp": 0,
- "nnq": 0,
- "resp_length": 0,
- "history": 0,
- "fetch_k": 0
}, - "thumbs_up": true,
- "thumbs_feedback": "string",
- "star_rating": 1,
- "star_feedback": "string",
- "finish_reason": "string",
- "next_questions": [
- "string"
], - "grounding": [
- "string"
], - "usage": {
- "prompt_tokens": 0,
- "completion_tokens": 0,
- "total_tokens": 0
}, - "languageModel": "string",
- "sys_fp": "string",
- "response_tts_path": "string",
- "ttsresponse_id": "string",
- "sttresponse_id": "string",
- "log_probs": [ ],
- "scores": [
- 0
], - "llm_full_answer": "string",
- "project_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
}
]
}
Create a new co-pilot
projectId | string <uuid> = 36 characters The co-pilot's UUID in UUID v4 format. |
customerId | string <uuid> = 36 characters The UUID, in UUID v4 format, of the customer that owns this co-pilot. |
useCase | string The co-pilot use case. |
createdAt | string <date-time> The date and time (UTC, is ISO-8601 format) when the co-pilot was created. |
lastUpdatedAt | string <date-time> The date and time (UTC, in ISO-8601 format) when the co-pilot was last updated. |
createdBy | string The user or entity that created the co-pilot. |
agentName | string Name of the co-pilot. |
agentDescription | string Description of the co-pilot. |
companyUrl | string <uri> The company's website (or any other site that they would like to be fed to the co-pilot for RAG). |
Array of objects (Dataset) List of datasets question associated with the co-pilot. | |
Array of objects (Section) List of co-pilot enhancements. | |
defaultPrompt | string The "system" prompt for the co-pilot. If it is not set here, a generic default prompt will be assumed, assuming the co-pilot has broad open-domain knowledge. |
languageModel | string Default: "gpt-3.5-turbo-0125" The language model used by the co-pilot (e.g. 'Llama-2-13B'). |
{- "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "useCase": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "agentName": "string",
- "agentDescription": "string",
- "datasets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "location": "string",
- "date": "2019-08-24",
- "type": "string",
- "upload_path": "string",
- "content_type": "string",
- "size": 0
}
], - "sections": [
- {
- "template_var_vals": [
- "string"
], - "section_text": [
- "string"
], - "last_section_ts": "2019-08-24T14:15:22Z",
- "recommended_text": [
- "string"
], - "last_recommended_ts": "2019-08-24T14:15:22Z",
- "display_order": 0,
- "llm_used": "gpt-3.5-turbo-0125"
}
], - "defaultPrompt": "string",
- "languageModel": "gpt-3.5-turbo-0125"
}
{- "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "useCase": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "agentName": "string",
- "agentDescription": "string",
- "datasets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "location": "string",
- "date": "2019-08-24",
- "type": "string",
- "upload_path": "string",
- "content_type": "string",
- "size": 0
}
], - "sections": [
- {
- "template_var_vals": [
- "string"
], - "section_text": [
- "string"
], - "last_section_ts": "2019-08-24T14:15:22Z",
- "recommended_text": [
- "string"
], - "last_recommended_ts": "2019-08-24T14:15:22Z",
- "display_order": 0,
- "llm_used": "gpt-3.5-turbo-0125"
}
], - "defaultPrompt": "string",
- "languageModel": "gpt-3.5-turbo-0125",
- "files_job_id": "528f51ef-cfc5-4c00-8241-f5b7124925dd",
- "website_job_id": "889f1a4a-a108-4b04-92bc-cb8082fef964"
}
Retrieve a list of all co-pilots (owned by this customer).
{- "projects": [
- {
- "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "useCase": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "agentName": "string",
- "agentDescription": "string",
- "datasets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "location": "string",
- "date": "2019-08-24",
- "type": "string",
- "upload_path": "string",
- "content_type": "string",
- "size": 0
}
], - "sections": [
- {
- "template_var_vals": [
- "string"
], - "section_text": [
- "string"
], - "last_section_ts": "2019-08-24T14:15:22Z",
- "recommended_text": [
- "string"
], - "last_recommended_ts": "2019-08-24T14:15:22Z",
- "display_order": 0,
- "llm_used": "gpt-3.5-turbo-0125"
}
], - "defaultPrompt": "string",
- "languageModel": "gpt-3.5-turbo-0125"
}
]
}
Retrieve a specific co-pilot by its ID
project_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the co-pilot |
{- "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "useCase": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "agentName": "string",
- "agentDescription": "string",
- "datasets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "location": "string",
- "date": "2019-08-24",
- "type": "string",
- "upload_path": "string",
- "content_type": "string",
- "size": 0
}
], - "sections": [
- {
- "template_var_vals": [
- "string"
], - "section_text": [
- "string"
], - "last_section_ts": "2019-08-24T14:15:22Z",
- "recommended_text": [
- "string"
], - "last_recommended_ts": "2019-08-24T14:15:22Z",
- "display_order": 0,
- "llm_used": "gpt-3.5-turbo-0125"
}
], - "defaultPrompt": "string",
- "languageModel": "gpt-3.5-turbo-0125"
}
Update a co-pilot given its ID
project_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the co-pilot |
llm | string The language model to use to generate the co-pilot's default prompt. Unsupported values are ignored (the system default is used instead). |
mode | string Enum: "sections-only" "prompt-only" "full" Indicates whether to regenerate only the section texts ('sections-only'), or the default prompt ('prompt-only'), or both ('full', default). |
projectId | string <uuid> = 36 characters The co-pilot's UUID in UUID v4 format. |
customerId | string <uuid> = 36 characters The UUID, in UUID v4 format, of the customer that owns this co-pilot. |
useCase | string The co-pilot use case. |
createdAt | string <date-time> The date and time (UTC, is ISO-8601 format) when the co-pilot was created. |
lastUpdatedAt | string <date-time> The date and time (UTC, in ISO-8601 format) when the co-pilot was last updated. |
createdBy | string The user or entity that created the co-pilot. |
agentName | string Name of the co-pilot. |
agentDescription | string Description of the co-pilot. |
companyUrl | string <uri> The company's website (or any other site that they would like to be fed to the co-pilot for RAG). |
Array of objects (Dataset) List of datasets question associated with the co-pilot. | |
Array of objects (Section) List of co-pilot enhancements. | |
defaultPrompt | string The "system" prompt for the co-pilot. If it is not set here, a generic default prompt will be assumed, assuming the co-pilot has broad open-domain knowledge. |
languageModel | string Default: "gpt-3.5-turbo-0125" The language model used by the co-pilot (e.g. 'Llama-2-13B'). |
{- "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "useCase": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "agentName": "string",
- "agentDescription": "string",
- "datasets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "location": "string",
- "date": "2019-08-24",
- "type": "string",
- "upload_path": "string",
- "content_type": "string",
- "size": 0
}
], - "sections": [
- {
- "template_var_vals": [
- "string"
], - "section_text": [
- "string"
], - "last_section_ts": "2019-08-24T14:15:22Z",
- "recommended_text": [
- "string"
], - "last_recommended_ts": "2019-08-24T14:15:22Z",
- "display_order": 0,
- "llm_used": "gpt-3.5-turbo-0125"
}
], - "defaultPrompt": "string",
- "languageModel": "gpt-3.5-turbo-0125"
}
{- "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "useCase": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "agentName": "string",
- "agentDescription": "string",
- "datasets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "location": "string",
- "date": "2019-08-24",
- "type": "string",
- "upload_path": "string",
- "content_type": "string",
- "size": 0
}
], - "sections": [
- {
- "template_var_vals": [
- "string"
], - "section_text": [
- "string"
], - "last_section_ts": "2019-08-24T14:15:22Z",
- "recommended_text": [
- "string"
], - "last_recommended_ts": "2019-08-24T14:15:22Z",
- "display_order": 0,
- "llm_used": "gpt-3.5-turbo-0125"
}
], - "defaultPrompt": "string",
- "languageModel": "gpt-3.5-turbo-0125"
}
This method synthesizes the co-pilot's default prompt from the rest of the the co-pilot's settings
project_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the co-pilot whose default prompt needs to be (re-)generated |
llm | string The language model to use to generate the co-pilot's default prompt. Unsupported values are ignored (the system default is used instead). |
mode | string Enum: "sections-only" "prompt-only" "full" Indicates whether to regenerate only the section texts ('sections-only'), or the default prompt ('prompt-only'), or both ('full', default). |
{- "message": "string"
}
Upload a list of datasets to a copilot
project_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the co-pilot |
files | Array of strings <binary> [ items <binary > ] |
website | string <uri> |
{- "message": "string",
- "files_job_id": "528f51ef-cfc5-4c00-8241-f5b7124925dd",
- "website_job_id": "889f1a4a-a108-4b04-92bc-cb8082fef964"
}
Retrieve the datasets attached to a co-pilot
project_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the co-pilot |
dataset_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the dataset |
{- "docs": [
- "string"
], - "images": [
- "string"
], - "tables": [
- "string"
]
}
Update a dataset attached to a co-pilot
project_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the co-pilot |
dataset_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the dataset |
files | Array of strings <binary> [ items <binary > ] |
website | string <uri> |
{- "message": "string"
}
Delete dataset(s) from a co-pilot
project_id required | string <uuid> = 36 characters ID of the co-pilot |
dataset_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the dataset |
{- "message": "string",
- "files": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "location": "string",
- "date": "2019-08-24",
- "type": "string",
- "upload_path": "string",
- "content_type": "string",
- "size": 0
}
]
}
Retrieve dataset ingestion logs
job_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the ingestion job |
{- "ingest_log": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
- "message": "string"
}
]
}
Retrieve aggregate dataset ingestion job metrics or individual job status
copilot_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the co-pilot |
job_id | string <uuid> = 36 characters ID (in UUID v4 format) of the ingestion job |
{- "status_counts": {
- "queued": 0,
- "running": 0,
- "completed": 0,
- "failed": 0
}, - "recent_failures": [
- "string"
], - "avg_processing_time_ms": 0
}
Publishes a new enhancement to this co-pilot
project_id required | string <uuid> = 36 characters ID (in UUID v4 format) for the co-pilot to which this enhancement is to be added. |
llm | string The language model to use to generate the co-pilot's default prompt. Unsupported values are ignored (the system default is used instead). |
mode | string Enum: "sections-only" "prompt-only" "full" Indicates whether to regenerate only the section texts ('sections-only'), or the default prompt ('prompt-only'), or both ('full', default). |
Description of the request body to publish a co-pilot enhancement.
section_id | string <uuid> = 36 characters |
cname | string The canonical name for this enhancement. This should not change even if the creator decides to change the name. |
name | string A name or title for this enhancement that allows a co-pilot creator to understand, apply and configure it correctly. |
description | string A description of this enhancement, to elaborate beyond what the name can mean. |
prompt | string A prompt that can be used to generate content for this enhancement that makes it as a part of the final (configured) co-pilot system prompt template. |
template_var_keys | Array of strings A list of content placeholders for the enhancement-specific prompt template that needs to make it to the final (configured) co-pilot system prompt template. |
template_var_vals | Array of strings A list of values to substitute in the corresponding content placeholders in the enhancement-specific prompt template. |
section_text | Array of strings The contribution of this enhancement to the co-pilot's system prompt as finally decided by the co-pilot creator. |
last_section_ts | string <date-time> The timestamp of the last update to 'section_text'. |
recommended_text | Array of strings The LLM's suggested contribution (through this enhancement) to the co-pilot's system prompt. |
last_recommended_ts | string <date-time> The timestamp of the last update to 'recommended_text'. |
display_order | integer The position at which to show this enhancement in the co-pilot's list of enhancements, in the co-pilot configuration unauthorized. |
llm_used | string Default: "gpt-3.5-turbo-0125" The language model used to generate the 'section_text'. |
{- "section_id": "f5e5c4dc-7d2e-40f1-a895-9bb2f8703fd8",
- "cname": "string",
- "name": "string",
- "description": "string",
- "prompt": "string",
- "template_var_keys": [
- "string"
], - "template_var_vals": [
- "string"
], - "section_text": [
- "string"
], - "last_section_ts": "2019-08-24T14:15:22Z",
- "recommended_text": [
- "string"
], - "last_recommended_ts": "2019-08-24T14:15:22Z",
- "display_order": 0,
- "llm_used": "gpt-3.5-turbo-0125"
}
{- "message": "string"
}
Lists all co-pilot enhancements
project_id required | string <uuid> = 36 characters ID (in UUID v4 format) for the co-pilot whose enhancements are to be retrieved. |
cname required | string Canonical name for this enhancement. Ignore to get all enhancements for this co-pilot. |
{- "sections": [
- {
- "section_id": "f5e5c4dc-7d2e-40f1-a895-9bb2f8703fd8",
- "cname": "string",
- "name": "string",
- "description": "string",
- "prompt": "string",
- "template_var_keys": [
- "string"
], - "template_var_vals": [
- "string"
], - "section_text": [
- "string"
], - "last_section_ts": "2019-08-24T14:15:22Z",
- "recommended_text": [
- "string"
], - "last_recommended_ts": "2019-08-24T14:15:22Z",
- "display_order": 0,
- "llm_used": "gpt-3.5-turbo-0125"
}
]
}
Update an existing co-pilot enhancement configuration that can apply to all co-pilots.
project_id required | string <uuid> = 36 characters ID (in UUID v4 format) for the co-pilot whose enhancement is to be retrieved. |
cname required | string Canonical name for this section. |
llm | string The language model to use to generate the co-pilot's default prompt. Unsupported values are ignored (the system default is used instead). |
mode | string Enum: "sections-only" "prompt-only" "full" Indicates whether to regenerate only the section texts ('sections-only'), or the default prompt ('prompt-only'), or both ('full', default). |
Description of the request body to publish a co-pilot enhancement configuration.
section_id | string <uuid> = 36 characters |
cname | string The canonical name for this enhancement. This should not change even if the creator decides to change the name. |
name | string A name or title for this enhancement that allows a co-pilot creator to understand, apply and configure it correctly. |
description | string A description of this enhancement, to elaborate beyond what the name can mean. |
prompt | string A prompt that can be used to generate content for this enhancement that makes it as a part of the final (configured) co-pilot system prompt template. |
template_var_keys | Array of strings A list of content placeholders for the enhancement-specific prompt template that needs to make it to the final (configured) co-pilot system prompt template. |
template_var_vals | Array of strings A list of values to substitute in the corresponding content placeholders in the enhancement-specific prompt template. |
section_text | Array of strings The contribution of this enhancement to the co-pilot's system prompt as finally decided by the co-pilot creator. |
last_section_ts | string <date-time> The timestamp of the last update to 'section_text'. |
recommended_text | Array of strings The LLM's suggested contribution (through this enhancement) to the co-pilot's system prompt. |
last_recommended_ts | string <date-time> The timestamp of the last update to 'recommended_text'. |
display_order | integer The position at which to show this enhancement in the co-pilot's list of enhancements, in the co-pilot configuration unauthorized. |
llm_used | string Default: "gpt-3.5-turbo-0125" The language model used to generate the 'section_text'. |
{- "section_id": "f5e5c4dc-7d2e-40f1-a895-9bb2f8703fd8",
- "cname": "string",
- "name": "string",
- "description": "string",
- "prompt": "string",
- "template_var_keys": [
- "string"
], - "template_var_vals": [
- "string"
], - "section_text": [
- "string"
], - "last_section_ts": "2019-08-24T14:15:22Z",
- "recommended_text": [
- "string"
], - "last_recommended_ts": "2019-08-24T14:15:22Z",
- "display_order": 0,
- "llm_used": "gpt-3.5-turbo-0125"
}
{- "message": "string"
}
Deletes one or all co-pilot section configurations
project_id required | string <uuid> = 36 characters ID (in UUID v4 format) for the co-pilot whose enhancements are to be deleted. |
cname required | string <uuid> = 36 characters Canonical name for this section. Ignore to delete all of this co-pilot's enhancements. |
llm | string The language model to use to generate the co-pilot's default prompt. Unsupported values are ignored (the system default is used instead). |
mode | string Enum: "sections-only" "prompt-only" "full" Indicates whether to regenerate only the section texts ('sections-only'), or the default prompt ('prompt-only'), or both ('full', default). |
{- "message": "string"
}
Run an evaluation/benchmark on the specified co-pilot
copilot_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the co-pilot for which to fetch the evaluation result |
eval_name required | string A name for the evaluation |
Description of the request body to run an evaluation.
file | string <byte> The input file to evaluate. |
model_list | string A comma-separated list of model names to evaluate. |
{- "eval_id": "b7fe92ca-3c59-4b75-8341-1d28fad399a5",
- "copilot_id": "bf7c880d-78d8-4455-8571-a18b07e3c79a",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "user_name": "string",
- "eval_name": "string",
- "eval_csv_address": "string",
- "timestamp": "string",
- "input_filename": "string",
- "models_used": [
- "string"
], - "num_queries": 0,
- "status": "string"
}
Gets all evaluations for the specified co-pilot
copilot_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the co-pilot for which to fetch evaluation results |
all_tests | string If 'true'/'True'/'t'/'T'/'yes'/'Yes'/'y'/'Y'/'1', returns evaluations conducted by all users. Else, only returns evaluations conducted by the logged-in user. |
{- "evals": [
- {
- "eval_id": "string",
- "user_id": "string",
- "user_name": "string",
- "eval_name": "string",
- "timestamp": "string",
- "models_used": [
- "string"
], - "num_queries": 0,
- "status": "string"
}
]
}
Gets the specified evaluation for the specified co-pilot
copilot_id required | string <uuid> = 36 characters ID (in UUID v4 format) of the co-pilot for which to fetch the evaluation result |
eval_id | string <uuid> = 36 characters ID (in UUID v4 format) of the evaluation result to fetch |
{- "eval": "string"
}