Import and export AnswerSets
Copy portable AnswerSet behavior and Knowledge between workspaces without transferring secrets.
Import/export helps move a tested AnswerSet from one workspace to another. It is a configuration transfer, not a tenant copy, credential migration, or approval for production use.
Export from the source workspace
- Open Answers, select the source AnswerSet, then choose Manage → Export AnswerSet.
- Save the resulting
.lakeshark.jsonbundle in an approved location. - Inspect it before sharing; exports contain behavior and Knowledge that may be confidential.
Portable bundles identify their resource type:
{
"api_version": "lakeshark.dev/v1alpha1",
"kind": "AnswerSet"
}
What travels with the bundle?
| Included | Not included |
|---|---|
| Name and purpose | Organization/workspace IDs |
| Instructions and output policy | Provider credentials or connection IDs |
| One portable configuration | Question Keys |
| Scoring rules | Runtime metrics or run history |
| Approved Knowledge and labels | Pending learning proposals |
| Provider/model hints | GovernanceSet assignments |
Use this distinction when planning a transfer. A bundle alone will not make the destination workspace operational.
Import into the destination
- Switch to the destination organization/workspace.
- Open Answers and choose the new AnswerSet action, then Import AnswerSet.
- Upload the bundle and select a destination provider connection and model.
- Create the AnswerSet; review its Knowledge, output policy and instructions.
- Explicitly reassign destination GovernanceSets.
- Issue new Question Keys for destination applications.
- Ask known, unknown and prohibited questions in Try it out before live traffic.
Check: The imported AnswerSet uses the intended destination provider/model and its runtime controls have been verified. Source Question Keys and provider credentials never authorize the new workspace.
API
GET /v1/answer-sets/{answer_set_id}/export
POST /v1/answer-set-imports
Both operations require a management bearer token with the applicable Answers permissions. They are not authenticated with a Question Key.
Common mistakes
| Mistake | Why it matters |
|---|---|
| Expecting a source provider credential to import | Credentials are tied to workspace connections and intentionally excluded |
| Assuming GovernanceSets transfer automatically | Explicit policy assignment is destination-specific |
| Keeping the old Question Key | Keys remain scoped to the original AnswerSet and workspace |
| Skipping Knowledge review | Source procedures may not apply in the destination |
| Assuming version history transfers | Historical revisions and run evidence are excluded |
See also: AnswerSets · Providers · Assign GovernanceSets.