Create an AnswerSet
Seed with a provider, build manually, or import an existing AnswerSet.
Open Answers and select New AnswerSet. The guided provider setup opens immediately. Set up manually and Import existing are secondary options.
Seed with provider
Use guided setup when you want the fastest path to an initial AnswerSet.
- Select a Provider connection.
- Select a discovered Model.
- Describe the AnswerSet Purpose.
- Choose Knowledge seeds, from 1 to 200. The console submits an initial batch of up to 10 and requests additional draft batches when needed.
- Optionally attach reference files.
- Select Build AnswerSet.
- The console opens Knowledge. Review generated drafts, correct inaccuracies, and select Approve & publish for each verified answer. Then open Test to confirm reuse.
Supported reference files:
- TXT
- Markdown
- CSV
- JSON
The console accepts up to 12 files, up to 2 MiB per file and 8 MiB total.
Provider seeding creates:
- an AnswerSet name and purpose
- one initial configuration
- AnswerSet instructions
- the selected provider/model binding
- initial Knowledge, up to the requested seed count
Seeded Knowledge is marked as an AI-generated draft until an authorized user reviews and publishes it. Drafts remain visible in Knowledge, but cannot be used for direct reuse, independent quality scoring ground truth, or further Knowledge-generation grounding. The default guided seed count is 3, and you can request 1 to 200. Provider limits or generation failures can yield fewer drafts than requested; the console retains the created AnswerSet rather than silently retrying creation.
Configure an output contract during guided creation
Enable Use an output contract when the new AnswerSet must return approved values or a defined JSON structure. The guided builder offers Generate with AI, Configure manually, and Import JSON. Generated output candidates are a preview, not an automatic approval: inspect the values or template and explicitly confirm the reviewed contract before creating the AnswerSet. AI fixed-value previews accept 1–25 candidates per request; for larger catalogs, import an approved JSON array. Importing an output contract does not apply it until you review and submit the form.
Seed through the API
POST https://lakeshark.dev/api/answers/v1/answer-set-seeds
Authorization: Bearer <ACCESS_TOKEN>
Content-Type: application/json
Example:
{
"purpose": "Answer employee questions about phishing, suspicious links, credential theft, and incident reporting using our approved security procedures.",
"provider_connection_id": "30f51446-dd2f-498d-bf0e-c589d4d9de44",
"model": "gpt-5.6",
"knowledge_seed_count": 10,
"references": [
{
"name": "security-policy.md",
"media_type": "text/markdown",
"content": "# Phishing\nEmployees must report suspected phishing to Security Operations. If credentials were entered, immediately reset the password and contact the security team."
}
]
}
For uploaded files use:
POST /v1/answer-set-seeds/files
That endpoint accepts multipart form fields for purpose, provider_connection_id, model, knowledge_seed_count, and files.
Build manually
Use Set up manually when you already know the desired AnswerSet behavior.
The console asks for:
- Name
- Purpose
- Provider connection
- Model
- AnswerSet instructions
- Output format
- Optional approved-answer restriction
- Learning approval mode
Equivalent API request:
POST https://lakeshark.dev/api/answers/v1/answer-sets
Authorization: Bearer <ACCESS_TOKEN>
Content-Type: application/json
{
"name": "Security help desk",
"purpose": "Answer employee security support questions.",
"provider_connection_id": "30f51446-dd2f-498d-bf0e-c589d4d9de44",
"model": "gpt-5.6",
"fallback_instructions": "Answer directly from approved company policy. If the answer is not supported, say that the user should contact Security Operations.",
"answer_type": "text",
"answer_options": [],
"strict_answers": [],
"auto_approve_confidence": null
}
After creation, add Knowledge or use Generate with source: "approved_knowledge" to expand reviewed material, or source: "purpose" to draft unverified candidates without an approved Knowledge anchor. Review and publish generated drafts before relying on them.
Import AnswerSet
Use Import existing for a portable .lakeshark.json bundle.
Imports preserve portable behavior such as:
- purpose
- AnswerSet instructions
- output policy
- scoring rules
- Knowledge
- provider/model hints
Imports do not contain credentials, Question Keys, tenant identifiers, runtime metrics, or pending proposals.
You select the destination provider connection and model during import.
After creation
For any creation path:
- Review generated drafts under Knowledge, then approve and publish verified material.
- Open Test and ask representative questions.
- Review pending Learning proposals instead of assuming every suggestion is correct.
- Open Output rules to choose the response format and optional approved text, number, boolean or JSON values.
- Open Manage → Configuration & scoring to adjust instructions or thresholds.
- Apply required incoming-question safeguards through the GovernanceSet assignment API. A GovernanceSet node in a saved Flow graph does not change those runtime assignments.
- Configure Manage → Automatic learning only if you want controlled gap learning.
- Create a Question Key in Test → Question API and call
POST /v1/questions. - Check actual reuse and scoring evidence in Results.