Download OpenAPI specification:
This API is used to interact with all aspects of Kiln AI. For example, it can create and manage the data model (projects, tasks, prompts, evals, etc). It can also control the execution of the application including running tasks, evals, and more.
| v | integer (V) Default: 1 Schema version for migration support. |
Id (string) or Id (null) (Id) Unique identifier for this record. | |
Path (string) or Path (null) (Path) File system path where the record is stored. | |
| created_at | string <date-time> (Created At) Timestamp when the model was created. Timezone-aware; stores the writer's local offset. |
| created_by | string (Created By) User ID of the creator. |
| name required | string (Name) [ 1 .. 120 ] characters The name of the project. |
Description (string) or Description (null) (Description) A description of the project for you and your team. Will not be used in prompts/training/validation. |
{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string"
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| property name* additional property | any |
{ }{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "model_type": "string"
}| project_path required | string (Project Path) File path to the project.kiln file to import. |
{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| property name* additional property | any |
{ }{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "instruction": "string",
- "requirements": [ ],
- "output_json_schema": "string",
- "input_json_schema": "string",
- "thinking_instruction": "string",
- "default_run_config_id": "string",
- "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
[- {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "instruction": "string",
- "requirements": [ ],
- "output_json_schema": "string",
- "input_json_schema": "string",
- "thinking_instruction": "string",
- "default_run_config_id": "string",
- "model_type": "string"
}
]| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| property name* additional property | any |
{ }{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "instruction": "string",
- "requirements": [ ],
- "output_json_schema": "string",
- "input_json_schema": "string",
- "thinking_instruction": "string",
- "default_run_config_id": "string",
- "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "instruction": "string",
- "requirements": [ ],
- "output_json_schema": "string",
- "input_json_schema": "string",
- "thinking_instruction": "string",
- "default_run_config_id": "string",
- "model_type": "string"
}Determines which rating options should be shown for a given dataset item.
| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
{- "options": [
- {
- "requirement": {
- "id": "string",
- "name": "string",
- "description": "string",
- "instruction": "string",
- "priority": 0,
- "type": "five_star"
}, - "show_for_all": true,
- "show_for_tags": [
- "string"
]
}
]
}Return a workspace-wide list of projects and their tasks, with truncated task.instruction values. Unlike typical list endpoints, entries here are intentionally lossy — the shape is tuned for LLM-agent context efficiency, not for driving UIs that need the full Task model.
{- "projects": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "tasks": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "instruction": "string"
}
]
}
]
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
Generator Id (string) or Generator Id (null) (Generator Id) The generator ID if this prompt was auto-generated. | |
| name required | string (Name) The name of the prompt. |
Description (string) or Description (null) (Description) A description of the prompt. | |
| prompt required | string (Prompt) The prompt text. |
Chain Of Thought Instructions (string) or Chain Of Thought Instructions (null) (Chain Of Thought Instructions) Chain of thought instructions to include in the prompt. |
{- "generator_id": "string",
- "name": "string",
- "description": "string",
- "prompt": "string",
- "chain_of_thought_instructions": "string"
}{- "name": "string",
- "description": "string",
- "generator_id": "string",
- "prompt": "string",
- "chain_of_thought_instructions": "string",
- "id": "string",
- "type": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
{- "generators": [
- {
- "id": "string",
- "short_description": "string",
- "description": "string",
- "name": "string",
- "chain_of_thought": true
}
], - "prompts": [
- {
- "name": "string",
- "description": "string",
- "generator_id": "string",
- "prompt": "string",
- "chain_of_thought_instructions": "string",
- "id": "string",
- "type": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string"
}
]
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| prompt_id required | string (Prompt Id) The unique identifier of the prompt. |
| name required | string (Name) The updated name. |
Description (string) or Description (null) (Description) The updated description. |
{- "name": "string",
- "description": "string"
}{- "name": "string",
- "description": "string",
- "generator_id": "string",
- "prompt": "string",
- "chain_of_thought_instructions": "string",
- "id": "string",
- "type": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| prompt_id required | string (Prompt Id) The unique identifier of the prompt. |
nullBuild a prompt with task instruction, requirements, and optional custom examples.
Uses the same formatting as the FewShotPromptBuilder but with user-provided examples.
| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
Array of objects (Examples) Default: [] Few-shot examples to include in the prompt. |
{- "examples": [ ]
}{- "prompt": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| name required | string (Name) [ 1 .. 120 ] characters The name of the spec. |
| definition required | string (Definition) non-empty A detailed definition of the spec. |
required | any (Properties) The properties of the spec. |
| priority | integer (Priority) Default: 1 Enum: 0 1 2 3 The priority of the spec. |
| status | string (SpecStatus) Default: "active" Enum: "active" "future" "deprecated" "archived" The status of the spec. |
| tags | Array of strings (Tags) The tags of the spec. |
| evaluate_full_trace | boolean (Evaluate Full Trace) Default: false Whether to evaluate the full trace instead of the final answer. |
TaskSample (object) or null An example task input/output pair. |
{- "name": "string",
- "definition": "string",
- "properties": {
- "spec_type": "desired_behaviour",
- "desired_behaviour_description": "string",
- "correct_behaviour_examples": "string",
- "incorrect_behaviour_examples": "string"
}, - "priority": 0,
- "status": "active",
- "tags": [
- "string"
], - "evaluate_full_trace": false,
- "task_sample": {
- "input": "string",
- "output": "string"
}
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "definition": "string",
- "properties": {
- "spec_type": "desired_behaviour",
- "desired_behaviour_description": "string",
- "correct_behaviour_examples": "string",
- "incorrect_behaviour_examples": "string"
}, - "priority": 0,
- "status": "active",
- "tags": [ ],
- "eval_id": "string",
- "task_sample": {
- "input": "string",
- "output": "string"
}, - "synthetic_data_generation_session_config": {
- "topic_generation_config": {
- "model_name": "string",
- "provider_name": "string",
- "prompt": "string"
}, - "input_generation_config": {
- "model_name": "string",
- "provider_name": "string",
- "prompt": "string"
}, - "output_generation_config": {
- "model_name": "string",
- "provider_name": "string",
- "prompt": "string"
}
}, - "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
[- {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "definition": "string",
- "properties": {
- "spec_type": "desired_behaviour",
- "desired_behaviour_description": "string",
- "correct_behaviour_examples": "string",
- "incorrect_behaviour_examples": "string"
}, - "priority": 0,
- "status": "active",
- "tags": [ ],
- "eval_id": "string",
- "task_sample": {
- "input": "string",
- "output": "string"
}, - "synthetic_data_generation_session_config": {
- "topic_generation_config": {
- "model_name": "string",
- "provider_name": "string",
- "prompt": "string"
}, - "input_generation_config": {
- "model_name": "string",
- "provider_name": "string",
- "prompt": "string"
}, - "output_generation_config": {
- "model_name": "string",
- "provider_name": "string",
- "prompt": "string"
}
}, - "model_type": "string"
}
]| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| spec_id required | string (Spec Id) The unique identifier of the spec. |
{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "definition": "string",
- "properties": {
- "spec_type": "desired_behaviour",
- "desired_behaviour_description": "string",
- "correct_behaviour_examples": "string",
- "incorrect_behaviour_examples": "string"
}, - "priority": 0,
- "status": "active",
- "tags": [ ],
- "eval_id": "string",
- "task_sample": {
- "input": "string",
- "output": "string"
}, - "synthetic_data_generation_session_config": {
- "topic_generation_config": {
- "model_name": "string",
- "provider_name": "string",
- "prompt": "string"
}, - "input_generation_config": {
- "model_name": "string",
- "provider_name": "string",
- "prompt": "string"
}, - "output_generation_config": {
- "model_name": "string",
- "provider_name": "string",
- "prompt": "string"
}
}, - "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| spec_id required | string (Spec Id) The unique identifier of the spec. |
Name (string) or Name (null) (Name) The updated name. | |
Definition (string) or Definition (null) (Definition) The updated definition. | |
Properties (any) or Properties (null) (Properties) The updated spec properties. | |
Priority (integer) or null The updated priority. | |
SpecStatus (string) or null The updated status. | |
Array of Tags (strings) or Tags (null) (Tags) The updated tags. |
{- "name": "string",
- "definition": "string",
- "properties": {
- "spec_type": "desired_behaviour",
- "desired_behaviour_description": "string",
- "correct_behaviour_examples": "string",
- "incorrect_behaviour_examples": "string"
}, - "priority": 0,
- "status": "active",
- "tags": [
- "string"
]
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "definition": "string",
- "properties": {
- "spec_type": "desired_behaviour",
- "desired_behaviour_description": "string",
- "correct_behaviour_examples": "string",
- "incorrect_behaviour_examples": "string"
}, - "priority": 0,
- "status": "active",
- "tags": [ ],
- "eval_id": "string",
- "task_sample": {
- "input": "string",
- "output": "string"
}, - "synthetic_data_generation_session_config": {
- "topic_generation_config": {
- "model_name": "string",
- "provider_name": "string",
- "prompt": "string"
}, - "input_generation_config": {
- "model_name": "string",
- "provider_name": "string",
- "prompt": "string"
}, - "output_generation_config": {
- "model_name": "string",
- "provider_name": "string",
- "prompt": "string"
}
}, - "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| spec_id required | string (Spec Id) The unique identifier of the spec. |
null| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| run_id required | string (Run Id) The unique identifier of the task run. |
{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "input": "string",
- "input_source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "output": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "output": "string",
- "source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "rating": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "type": "five_star",
- "value": 0,
- "requirement_ratings": { },
- "model_type": "string"
}, - "model_type": "string"
}, - "repair_instructions": "string",
- "repaired_output": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "output": "string",
- "source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "rating": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "type": "five_star",
- "value": 0,
- "requirement_ratings": { },
- "model_type": "string"
}, - "model_type": "string"
}, - "intermediate_outputs": {
- "property1": "string",
- "property2": "string"
}, - "tags": [ ],
- "usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0,
- "cost": 0,
- "cached_tokens": 0,
- "total_llm_latency_ms": 0
}, - "cumulative_usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0,
- "cost": 0,
- "cached_tokens": 0
}, - "trace": [
- {
- "content": "string",
- "role": "developer",
- "name": "string"
}
], - "parent_task_run_id": "string",
- "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| run_id required | string (Run Id) The unique identifier of the task run. |
null| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| run_id required | string (Run Id) The unique identifier of the task run. |
| property name* additional property | any |
{ }{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "input": "string",
- "input_source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "output": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "output": "string",
- "source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "rating": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "type": "five_star",
- "value": 0,
- "requirement_ratings": { },
- "model_type": "string"
}, - "model_type": "string"
}, - "repair_instructions": "string",
- "repaired_output": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "output": "string",
- "source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "rating": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "type": "five_star",
- "value": 0,
- "requirement_ratings": { },
- "model_type": "string"
}, - "model_type": "string"
}, - "intermediate_outputs": {
- "property1": "string",
- "property2": "string"
}, - "tags": [ ],
- "usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0,
- "cost": 0,
- "cached_tokens": 0,
- "total_llm_latency_ms": 0
}, - "cumulative_usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0,
- "cost": 0,
- "cached_tokens": 0
}, - "trace": [
- {
- "content": "string",
- "role": "developer",
- "name": "string"
}
], - "parent_task_run_id": "string",
- "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
[- {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "input": "string",
- "input_source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "output": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "output": "string",
- "source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "rating": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "type": "five_star",
- "value": 0,
- "requirement_ratings": { },
- "model_type": "string"
}, - "model_type": "string"
}, - "repair_instructions": "string",
- "repaired_output": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "output": "string",
- "source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "rating": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "type": "five_star",
- "value": 0,
- "requirement_ratings": { },
- "model_type": "string"
}, - "model_type": "string"
}, - "intermediate_outputs": {
- "property1": "string",
- "property2": "string"
}, - "tags": [ ],
- "usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0,
- "cost": 0,
- "cached_tokens": 0,
- "total_llm_latency_ms": 0
}, - "cumulative_usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0,
- "cost": 0,
- "cached_tokens": 0
}, - "trace": [
- {
- "content": "string",
- "role": "developer",
- "name": "string"
}
], - "parent_task_run_id": "string",
- "model_type": "string"
}
]Create a TaskRun directly without running a model.
| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| input required | string (Input) The input for the task run |
| output required | string (Output) The output for the task run |
| tags | Array of strings (Tags) Default: [] Tags to apply to the task run |
TaskOutputRating (object) or null Optional rating for the output | |
| model_name required | string (Model Name) The name of the model used to generate the data |
| model_provider required | string (Model Provider) The provider of the model used to generate the data |
| adapter_name required | string (Adapter Name) The name of the adapter used to generate the data |
{- "input": "string",
- "output": "string",
- "tags": [ ],
- "rating": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "type": "five_star",
- "value": 0,
- "requirement_ratings": { }
}, - "model_name": "string",
- "model_provider": "string",
- "adapter_name": "string"
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "input": "string",
- "input_source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "output": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "output": "string",
- "source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "rating": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "type": "five_star",
- "value": 0,
- "requirement_ratings": { },
- "model_type": "string"
}, - "model_type": "string"
}, - "repair_instructions": "string",
- "repaired_output": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "output": "string",
- "source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "rating": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "type": "five_star",
- "value": 0,
- "requirement_ratings": { },
- "model_type": "string"
}, - "model_type": "string"
}, - "intermediate_outputs": {
- "property1": "string",
- "property2": "string"
}, - "tags": [ ],
- "usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0,
- "cost": 0,
- "cached_tokens": 0,
- "total_llm_latency_ms": 0
}, - "cumulative_usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0,
- "cost": 0,
- "cached_tokens": 0
}, - "trace": [
- {
- "content": "string",
- "role": "developer",
- "name": "string"
}
], - "parent_task_run_id": "string",
- "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
[- {
- "id": "string",
- "rating": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "type": "five_star",
- "value": 0,
- "requirement_ratings": { },
- "model_type": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "input_preview": "string",
- "output_preview": "string",
- "repair_state": "string",
- "model_name": "string",
- "input_source": "string",
- "tags": [
- "string"
]
}
]| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
[- "string"
]nullInvoke an AI model on a task and return the result. Unlike 'Create Run', this actually executes the model.
| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
required | KilnAgentRunConfigProperties (object) or McpRunConfigProperties (object) (Run Config Properties) The run configuration specifying model, prompt, and generation parameters. |
Plaintext Input (string) or Plaintext Input (null) (Plaintext Input) The task input as plaintext. Use for unstructured tasks. | |
Structured Input (object) or Array of Structured Input (any) or Structured Input (null) (Structured Input) The task input as structured JSON. Use for tasks with an input schema. | |
Array of Tags (strings) or Tags (null) (Tags) Tags to apply to the resulting task run. |
{- "run_config_properties": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}, - "plaintext_input": "string",
- "structured_input": { },
- "tags": [
- "string"
]
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "input": "string",
- "input_source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "output": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "output": "string",
- "source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "rating": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "type": "five_star",
- "value": 0,
- "requirement_ratings": { },
- "model_type": "string"
}, - "model_type": "string"
}, - "repair_instructions": "string",
- "repaired_output": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "output": "string",
- "source": {
- "type": "human",
- "properties": { },
- "run_config": {
- "type": "kiln_agent",
- "model_name": "string",
- "model_provider_name": "openai",
- "prompt_id": "string",
- "top_p": 1,
- "temperature": 1,
- "structured_output_mode": "default",
- "thinking_level": "string",
- "tools_config": {
- "tools": [
- "string"
]
}
}
}, - "rating": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "type": "five_star",
- "value": 0,
- "requirement_ratings": { },
- "model_type": "string"
}, - "model_type": "string"
}, - "intermediate_outputs": {
- "property1": "string",
- "property2": "string"
}, - "tags": [ ],
- "usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0,
- "cost": 0,
- "cached_tokens": 0,
- "total_llm_latency_ms": 0
}, - "cumulative_usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0,
- "cost": 0,
- "cached_tokens": 0
}, - "trace": [
- {
- "content": "string",
- "role": "developer",
- "name": "string"
}
], - "parent_task_run_id": "string",
- "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| file required | string <binary> (File) The CSV file containing run data to import. |
Splits (string) or Splits (null) (Splits) JSON string mapping split names to numeric proportions (0-1). |
{- "success": true,
- "filename": "string",
- "imported_count": 0
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| run_id required | string (Run Id) The unique identifier of the task run. |
[- {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "feedback": "string",
- "source": "run-page",
- "model_type": "string"
}
]| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| run_id required | string (Run Id) The unique identifier of the task run. |
| feedback required | string (Feedback) non-empty Free-form text feedback on the task run. |
| source required | string (FeedbackSource) Enum: "run-page" "spec-feedback" Where this feedback originated. |
{- "feedback": "string",
- "source": "run-page"
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "feedback": "string",
- "source": "run-page",
- "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| task_id required | string (Task Id) The unique identifier of the task within the project. |
| run_id required | string (Run Id) The unique identifier of the task run. |
| feedback_id required | string (Feedback Id) The unique identifier of the feedback. |
null| project_id required | string (Project Id) The unique identifier of the project. |
Array of Files (strings) or Files (null) (Files) The files to upload. | |
Array of Names (strings) or Names (null) (Names) Optional names for the files. | |
Array of Tags (strings) or Tags (null) (Tags) Tags to apply to all created documents. |
{- "created_documents": [
- {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "name_override": "string",
- "description": "string",
- "original_file": {
- "filename": "string",
- "size": 0,
- "mime_type": "string",
- "attachment": { }
}, - "kind": "document",
- "tags": [
- "string"
], - "model_type": "string",
- "friendly_name": "string"
}
], - "failed_files": [
- "string"
]
}| project_id required | string (Project Id) The unique identifier of the project. |
Tags (string) or Tags (null) (Tags) Comma-separated list of tags to filter by. |
[- {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "name_override": "string",
- "description": "string",
- "original_file": {
- "filename": "string",
- "size": 0,
- "mime_type": "string",
- "attachment": { }
}, - "kind": "document",
- "tags": [
- "string"
], - "model_type": "string",
- "friendly_name": "string"
}
]Return mapping of document id to list of extractions for the given extractor config id.
| project_id required | string (Project Id) The unique identifier of the project. |
| extractor_config_id required | string (Extractor Config Id) The unique identifier of the extractor configuration. |
{- "property1": [
- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "source": "string",
- "output_content": "string",
- "extractor": {
- "id": "string",
- "name": "string",
- "description": "string",
- "output_format": "text/plain",
- "passthrough_mimetypes": [
- "text/plain"
], - "extractor_type": "litellm"
}, - "output_content_truncated": true
}
], - "property2": [
- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "source": "string",
- "output_content": "string",
- "extractor": {
- "id": "string",
- "name": "string",
- "description": "string",
- "output_format": "text/plain",
- "passthrough_mimetypes": [
- "text/plain"
], - "extractor_type": "litellm"
}, - "output_content_truncated": true
}
]
}| project_id required | string (Project Id) The unique identifier of the project. |
| document_id required | string (Document Id) The unique identifier of the document. |
{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "name_override": "string",
- "description": "string",
- "original_file": {
- "filename": "string",
- "size": 0,
- "mime_type": "string",
- "attachment": { }
}, - "kind": "document",
- "tags": [
- "string"
], - "model_type": "string",
- "friendly_name": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| document_id required | string (Document Id) The unique identifier of the document. |
Name Override (string) or Name Override (null) (Name Override) A name for this document. | |
Description (string) or Description (null) (Description) The description of the document | |
Array of Tags (strings) or Tags (null) (Tags) Tags for the document |
{- "name_override": "string",
- "description": "string",
- "tags": [
- "string"
]
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "name_override": "string",
- "description": "string",
- "original_file": {
- "filename": "string",
- "size": 0,
- "mime_type": "string",
- "attachment": { }
}, - "kind": "document",
- "tags": [
- "string"
], - "model_type": "string",
- "friendly_name": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
Name (string) or Name (null) (Name) A name for this entity. | |
Description (string) or Description (null) (Description) The description of the extractor config | |
| model_provider_name required | string (ModelProviderName) Enum: "openai" "groq" "amazon_bedrock" "ollama" "openrouter" "fireworks_ai" "kiln_fine_tune" "kiln_custom_registry" "openai_compatible" "anthropic" "gemini_api" "azure_openai" "huggingface" "vertex" "together_ai" "siliconflow_cn" "cerebras" "docker_model_runner" The name of the model provider to use for the extractor config. |
| model_name required | string (Model Name) The name of the model to use for the extractor config. |
| output_format required | string (OutputFormat) Enum: "text/plain" "text/markdown" The output format of the extractor config |
| passthrough_mimetypes | Array of strings (Passthrough Mimetypes) Items Enum: "text/plain" "text/markdown" MIME types that bypass extraction and return the file content as-is. |
required | object (LitellmExtractorConfigProperties) The properties of the extractor config, specific to the selected extractor_type. |
{- "name": "string",
- "description": "string",
- "model_provider_name": "openai",
- "model_name": "string",
- "output_format": "text/plain",
- "passthrough_mimetypes": [
- "text/plain"
], - "properties": {
- "extractor_type": "litellm",
- "prompt_document": "string",
- "prompt_image": "string",
- "prompt_video": "string",
- "prompt_audio": "string"
}
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "is_archived": false,
- "description": "string",
- "model_provider_name": "string",
- "model_name": "string",
- "output_format": "text/plain",
- "passthrough_mimetypes": [
- "text/plain"
], - "extractor_type": "litellm",
- "properties": {
- "extractor_type": "litellm",
- "prompt_document": "string",
- "prompt_image": "string",
- "prompt_video": "string",
- "prompt_audio": "string"
}, - "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
[- {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "is_archived": false,
- "description": "string",
- "model_provider_name": "string",
- "model_name": "string",
- "output_format": "text/plain",
- "passthrough_mimetypes": [
- "text/plain"
], - "extractor_type": "litellm",
- "properties": {
- "extractor_type": "litellm",
- "prompt_document": "string",
- "prompt_image": "string",
- "prompt_video": "string",
- "prompt_audio": "string"
}, - "model_type": "string"
}
]| project_id required | string (Project Id) The unique identifier of the project. |
| extractor_config_id required | string (Extractor Config Id) The unique identifier of the extractor configuration. |
{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "is_archived": false,
- "description": "string",
- "model_provider_name": "string",
- "model_name": "string",
- "output_format": "text/plain",
- "passthrough_mimetypes": [
- "text/plain"
], - "extractor_type": "litellm",
- "properties": {
- "extractor_type": "litellm",
- "prompt_document": "string",
- "prompt_image": "string",
- "prompt_video": "string",
- "prompt_audio": "string"
}, - "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| extractor_config_id required | string (Extractor Config Id) The unique identifier of the extractor configuration. |
Name (string) or Name (null) (Name) A name for this entity. | |
Description (string) or Description (null) (Description) The description of the extractor config | |
Is Archived (boolean) or Is Archived (null) (Is Archived) Whether the extractor config is archived |
{- "name": "string",
- "description": "string",
- "is_archived": true
}{ }| project_id required | string (Project Id) The unique identifier of the project. |
| extractor_config_id required | string (Extractor Config Id) The unique identifier of the extractor configuration. |
Tags (string) or Tags (null) (Tags) Comma-separated list of tags to filter documents by. |
null| project_id required | string (Project Id) The unique identifier of the project. |
| document_id required | string (Document Id) The unique identifier of the document. |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "source": "string",
- "output_content": "string",
- "extractor": {
- "id": "string",
- "name": "string",
- "description": "string",
- "output_format": "text/plain",
- "passthrough_mimetypes": [
- "text/plain"
], - "extractor_type": "litellm"
}, - "output_content_truncated": true
}
]| project_id required | string (Project Id) The unique identifier of the project. |
| document_id required | string (Document Id) The unique identifier of the document. |
| extraction_id required | string (Extraction Id) The unique identifier of the extraction. |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "source": "string",
- "output_content": "string",
- "extractor": {
- "id": "string",
- "name": "string",
- "description": "string",
- "output_format": "text/plain",
- "passthrough_mimetypes": [
- "text/plain"
], - "extractor_type": "litellm"
}, - "output_content_truncated": true
}| project_id required | string (Project Id) The unique identifier of the project. |
| document_id required | string (Document Id) The unique identifier of the document. |
| extraction_id required | string (Extraction Id) The unique identifier of the extraction. |
{ }| project_id required | string (Project Id) The unique identifier of the project. |
| document_id required | string (Document Id) The unique identifier of the document. |
| extraction_id required | string (Extraction Id) The unique identifier of the extraction. |
null| project_id required | string (Project Id) The unique identifier of the project. |
| extractor_config_id required | string (Extractor Config Id) The unique identifier of the extractor configuration. |
{- "document_count_total": 0,
- "document_count_successful": 0,
- "extractor_config": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "is_archived": false,
- "description": "string",
- "model_provider_name": "string",
- "model_name": "string",
- "output_format": "text/plain",
- "passthrough_mimetypes": [
- "text/plain"
], - "extractor_type": "litellm",
- "properties": {
- "extractor_type": "litellm",
- "prompt_document": "string",
- "prompt_image": "string",
- "prompt_video": "string",
- "prompt_audio": "string"
}, - "model_type": "string"
}
}| project_id required | string (Project Id) The unique identifier of the project. |
| document_id required | string (Document Id) The unique identifier of the document. |
nullnull| project_id required | string (Project Id) The unique identifier of the project. |
Name (string) or Name (null) (Name) A name for this entity. | |
Description (string) or Description (null) (Description) The description of the chunker config | |
| chunker_type required | string (ChunkerType) Enum: "fixed_window" "semantic" The type of the chunker |
required | any (Properties) |
{- "name": "string",
- "description": "string",
- "chunker_type": "fixed_window",
- "properties": {
- "chunker_type": "semantic",
- "embedding_config_id": "string",
- "buffer_size": 0,
- "breakpoint_percentile_threshold": 0
}
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "chunker_type": "fixed_window",
- "properties": {
- "chunker_type": "semantic",
- "embedding_config_id": "string",
- "buffer_size": 0,
- "breakpoint_percentile_threshold": 0,
- "include_metadata": true,
- "include_prev_next_rel": true
}, - "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
[- {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "chunker_type": "fixed_window",
- "properties": {
- "chunker_type": "semantic",
- "embedding_config_id": "string",
- "buffer_size": 0,
- "breakpoint_percentile_threshold": 0,
- "include_metadata": true,
- "include_prev_next_rel": true
}, - "model_type": "string"
}
]| project_id required | string (Project Id) The unique identifier of the project. |
Name (string) or Name (null) (Name) A name for this entity. | |
Description (string) or Description (null) (Description) The description of the embedding config | |
| model_provider_name required | string (ModelProviderName) Enum: "openai" "groq" "amazon_bedrock" "ollama" "openrouter" "fireworks_ai" "kiln_fine_tune" "kiln_custom_registry" "openai_compatible" "anthropic" "gemini_api" "azure_openai" "huggingface" "vertex" "together_ai" "siliconflow_cn" "cerebras" "docker_model_runner" The provider of the embedding model |
| model_name required | string (Model Name) The name of the embedding model |
object (EmbeddingProperties) Properties to be used to execute the embedding config. |
{- "name": "string",
- "description": "string",
- "model_provider_name": "openai",
- "model_name": "string",
- "properties": {
- "dimensions": 0
}
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "model_provider_name": "openai",
- "model_name": "string",
- "properties": {
- "dimensions": 0
}, - "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
[- {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "model_provider_name": "openai",
- "model_name": "string",
- "properties": {
- "dimensions": 0
}, - "model_type": "string"
}
]| project_id required | string (Project Id) The unique identifier of the project. |
Name (string) or Name (null) (Name) A name for this entity. | |
Description (string) or Description (null) (Description) The description of the reranker config | |
| top_n required | integer (Top N) > 0 Number of results to return from the reranker |
| model_provider_name required | string (ModelProviderName) Enum: "openai" "groq" "amazon_bedrock" "ollama" "openrouter" "fireworks_ai" "kiln_fine_tune" "kiln_custom_registry" "openai_compatible" "anthropic" "gemini_api" "azure_openai" "huggingface" "vertex" "together_ai" "siliconflow_cn" "cerebras" "docker_model_runner" The name of the model provider to use for the reranker config. |
| model_name required | string (Model Name) The name of the model to use for the reranker config. |
object (CohereCompatibleProperties) Default: {"type":"cohere_compatible"} The properties of the reranker config. |
{- "name": "string",
- "description": "string",
- "top_n": 0,
- "model_provider_name": "openai",
- "model_name": "string",
- "properties": {
- "type": "cohere_compatible"
}
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "top_n": 0,
- "model_provider_name": "string",
- "model_name": "string",
- "properties": {
- "type": "cohere_compatible"
}, - "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
[- {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "top_n": 0,
- "model_provider_name": "string",
- "model_name": "string",
- "properties": {
- "type": "cohere_compatible"
}, - "model_type": "string"
}
]| project_id required | string (Project Id) The unique identifier of the project. |
| embedding_config_id required | string (Embedding Config Id) The unique identifier of the embedding configuration. |
{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "model_provider_name": "openai",
- "model_name": "string",
- "properties": {
- "dimensions": 0
}, - "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
Name (string) or Name (null) (Name) A name for this entity. | |
Description (string) or Description (null) (Description) The description of the vector store config | |
| store_type required | string (VectorStoreType) Enum: "lancedb_fts" "lancedb_hybrid" "lancedb_vector" The type of vector store to use |
required | LanceDBConfigFTSPropertiesPublic (object) or LanceDBConfigVectorPropertiesPublic (object) or LanceDBConfigHybridPropertiesPublic (object) (Properties) The properties of the vector store config, specific to the selected store_type. |
{- "name": "string",
- "description": "string",
- "store_type": "lancedb_fts",
- "properties": {
- "similarity_top_k": 0
}
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "store_type": "lancedb_fts",
- "properties": {
- "store_type": "lancedb_fts",
- "similarity_top_k": 0,
- "overfetch_factor": 0,
- "vector_column_name": "string",
- "text_key": "string",
- "doc_id_key": "string"
}, - "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
[- {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "store_type": "lancedb_fts",
- "properties": {
- "store_type": "lancedb_fts",
- "similarity_top_k": 0,
- "overfetch_factor": 0,
- "vector_column_name": "string",
- "text_key": "string",
- "doc_id_key": "string"
}, - "model_type": "string"
}
]| project_id required | string (Project Id) The unique identifier of the project. |
| rag_config_id required | string (Rag Config Id) The unique identifier of the RAG configuration. |
Name (string) or Name (null) (Name) The updated name. | |
Description (string) or Description (null) (Description) The updated description. | |
Is Archived (boolean) or Is Archived (null) (Is Archived) Whether the config is archived. |
{- "name": "string",
- "description": "string",
- "is_archived": true
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "is_archived": false,
- "description": "string",
- "tool_name": "string",
- "tool_description": "string",
- "extractor_config_id": "string",
- "chunker_config_id": "string",
- "embedding_config_id": "string",
- "vector_store_config_id": "string",
- "reranker_config_id": "string",
- "tags": [
- "string"
], - "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
| rag_config_id required | string (Rag Config Id) The unique identifier of the RAG configuration. |
{- "id": "string",
- "name": "string",
- "description": "string",
- "tool_name": "string",
- "tool_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "is_archived": true,
- "extractor_config": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "is_archived": false,
- "description": "string",
- "model_provider_name": "string",
- "model_name": "string",
- "output_format": "text/plain",
- "passthrough_mimetypes": [
- "text/plain"
], - "extractor_type": "litellm",
- "properties": {
- "extractor_type": "litellm",
- "prompt_document": "string",
- "prompt_image": "string",
- "prompt_video": "string",
- "prompt_audio": "string"
}, - "model_type": "string"
}, - "chunker_config": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "chunker_type": "fixed_window",
- "properties": {
- "chunker_type": "semantic",
- "embedding_config_id": "string",
- "buffer_size": 0,
- "breakpoint_percentile_threshold": 0,
- "include_metadata": true,
- "include_prev_next_rel": true
}, - "model_type": "string"
}, - "embedding_config": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "model_provider_name": "openai",
- "model_name": "string",
- "properties": {
- "dimensions": 0
}, - "model_type": "string"
}, - "vector_store_config": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "store_type": "lancedb_fts",
- "properties": {
- "store_type": "lancedb_fts",
- "similarity_top_k": 0,
- "overfetch_factor": 0,
- "vector_column_name": "string",
- "text_key": "string",
- "doc_id_key": "string"
}, - "model_type": "string"
}, - "reranker_config": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "top_n": 0,
- "model_provider_name": "string",
- "model_name": "string",
- "properties": {
- "type": "cohere_compatible"
}, - "model_type": "string"
}, - "tags": [
- "string"
]
}| project_id required | string (Project Id) The unique identifier of the project. |
Name (string) or Name (null) (Name) A name for this entity. | |
Description (string) or Description (null) (Description) A description for your own reference. | |
| tool_name required | string (Tool Name) A name for the model to identify the Search Tool in conversations. |
| tool_description required | string (Tool Description) A description of the purpose of the tool. The model will use this description to understand the tool's capabilities. |
required | Extractor Config Id (string) or Extractor Config Id (null) (Extractor Config Id) The extractor config to use for the RAG workflow |
required | Chunker Config Id (string) or Chunker Config Id (null) (Chunker Config Id) The chunker config to use for the RAG workflow. |
required | Embedding Config Id (string) or Embedding Config Id (null) (Embedding Config Id) The embedding config to use for the RAG workflow. |
required | Vector Store Config Id (string) or Vector Store Config Id (null) (Vector Store Config Id) The vector store config to use for the RAG workflow. |
Reranker Config Id (string) or Reranker Config Id (null) (Reranker Config Id) The reranker config to use for the RAG workflow. | |
Array of Tags (strings) or Tags (null) (Tags) List of document tags to filter by. If None, all documents in the project are used. |
{- "name": "string",
- "description": "string",
- "tool_name": "string",
- "tool_description": "string",
- "extractor_config_id": "string",
- "chunker_config_id": "string",
- "embedding_config_id": "string",
- "vector_store_config_id": "string",
- "reranker_config_id": "string",
- "tags": [
- "string"
]
}{- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "is_archived": false,
- "description": "string",
- "tool_name": "string",
- "tool_description": "string",
- "extractor_config_id": "string",
- "chunker_config_id": "string",
- "embedding_config_id": "string",
- "vector_store_config_id": "string",
- "reranker_config_id": "string",
- "tags": [
- "string"
], - "model_type": "string"
}| project_id required | string (Project Id) The unique identifier of the project. |
[- {
- "id": "string",
- "name": "string",
- "description": "string",
- "tool_name": "string",
- "tool_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "is_archived": true,
- "extractor_config": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "is_archived": false,
- "description": "string",
- "model_provider_name": "string",
- "model_name": "string",
- "output_format": "text/plain",
- "passthrough_mimetypes": [
- "text/plain"
], - "extractor_type": "litellm",
- "properties": {
- "extractor_type": "litellm",
- "prompt_document": "string",
- "prompt_image": "string",
- "prompt_video": "string",
- "prompt_audio": "string"
}, - "model_type": "string"
}, - "chunker_config": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "chunker_type": "fixed_window",
- "properties": {
- "chunker_type": "semantic",
- "embedding_config_id": "string",
- "buffer_size": 0,
- "breakpoint_percentile_threshold": 0,
- "include_metadata": true,
- "include_prev_next_rel": true
}, - "model_type": "string"
}, - "embedding_config": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "model_provider_name": "openai",
- "model_name": "string",
- "properties": {
- "dimensions": 0
}, - "model_type": "string"
}, - "vector_store_config": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "store_type": "lancedb_fts",
- "properties": {
- "store_type": "lancedb_fts",
- "similarity_top_k": 0,
- "overfetch_factor": 0,
- "vector_column_name": "string",
- "text_key": "string",
- "doc_id_key": "string"
}, - "model_type": "string"
}, - "reranker_config": {
- "v": 1,
- "id": "string",
- "path": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "name": "string",
- "description": "string",
- "top_n": 0,
- "model_provider_name": "string",
- "model_name": "string",
- "properties": {
- "type": "cohere_compatible"
}, - "model_type": "string"
}, - "tags": [
- "string"
]
}
]| project_id required | string (Project Id) The unique identifier of the project. |
Array of Rag Config Ids (strings) or Rag Config Ids (null) (Rag Config Ids) The RAG config ids to get progress for, if left empty, progress for all RAG configs in the project will be returned |
{- "rag_config_ids": [
- "string"
]
}{- "property1": {
- "total_document_count": 0,
- "total_document_completed_count": 0,
- "total_chunk_count": 0,
- "total_chunk_completed_count": 0,
- "total_document_extracted_count": 0,
- "total_document_extracted_error_count": 0,
- "total_document_chunked_count": 0,
- "total_document_chunked_error_count": 0,
- "total_document_embedded_count": 0,
- "total_document_embedded_error_count": 0,
- "total_chunks_indexed_count": 0,
- "total_chunks_indexed_error_count": 0,
- "logs": [
- {
- "level": "info",
- "message": "string"
}
]
}, - "property2": {
- "total_document_count": 0,
- "total_document_completed_count": 0,
- "total_chunk_count": 0,
- "total_chunk_completed_count": 0,
- "total_document_extracted_count": 0,
- "total_document_extracted_error_count": 0,
- "total_document_chunked_count": 0,
- "total_document_chunked_error_count": 0,
- "total_document_embedded_count": 0,
- "total_document_embedded_error_count": 0,
- "total_chunks_indexed_count": 0,
- "total_chunks_indexed_error_count": 0,
- "logs": [
- {
- "level": "info",
- "message": "string"
}
]
}
}Search the vector store associated with a RAG config.
| project_id required | string (Project Id) The unique identifier of the project. |
| rag_config_id required | string (Rag Config Id) The unique identifier of the RAG configuration. |
| query required | string (Query) The search query text |
{- "query": "string"
}{- "results": [
- {
- "document_id": "string",
- "chunk_idx": 0,
- "chunk_text": "string",
- "similarity": 0
}
]
}Return chunks for a document extraction using FixedWindowChunker without persisting.
If chunk_size is None, return a single chunk with the full extraction output. chunk_overlap defaults to 0 when not provided.
| project_id required | string (Project Id) The unique identifier of the project. |
| extractor_config_id required | string (Extractor Config Id) The unique identifier of the extractor configuration. |
| document_id required | string (Document Id) The unique identifier of the document. |
Chunk Size (integer) or Chunk Size (null) (Chunk Size) The size of each chunk in tokens. If None, return a single chunk with the full extraction output. | |
Chunk Overlap (integer) or Chunk Overlap (null) (Chunk Overlap) The overlap between chunks in tokens. If None, use the default overlap for the chunker. |
{- "chunk_size": 0,
- "chunk_overlap": 0
}{- "chunks": [
- {
- "id": "string",
- "text": "string"
}
]
}