Skip to content
LakeSharkDocumentation
ANSWERSETS / DOCUMENTATION

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

  1. Open Answers, select the source AnswerSet, then choose Manage → Export AnswerSet.
  2. Save the resulting .lakeshark.json bundle in an approved location.
  3. 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

  1. Switch to the destination organization/workspace.
  2. Open Answers and choose the new AnswerSet action, then Import AnswerSet.
  3. Upload the bundle and select a destination provider connection and model.
  4. Create the AnswerSet; review its Knowledge, output policy and instructions.
  5. Explicitly reassign destination GovernanceSets.
  6. Issue new Question Keys for destination applications.
  7. 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.