AnswerSets
One governed answering use case with approved Knowledge, provider fallback, policies, and application credentials.
An AnswerSet is the core LakeShark product: a reusable answering configuration with approved Knowledge, a provider fallback, scoring, and reviewed learning. It also owns its output policy, optional safeguards, and application Question Keys.
Open Answers in the LakeShark console to create or manage AnswerSets.
Create an AnswerSet
Select New AnswerSet to start guided setup immediately. Choose a provider, describe the use case, and optionally add approved reference material. Provider-generated Knowledge is a draft starting point and should be checked before production use.
For an existing bundle use Import existing; for exact configuration control use Set up manually.
Create an AnswerSet explains all paths.
What you configure
| Area | Purpose |
|---|---|
| Purpose and instructions | Specify the use case and provider fallback behavior |
| Knowledge | Approved reusable answers that can avoid an AI provider call |
| Provider/model | Select a model for questions Knowledge cannot answer confidently |
| Output policy | Require text, number, boolean, JSON, list, or approved fixed values |
| AnswerSet action bindings | Use the management API to attach HTTP ExecutionSets with typed mappings and Manual or explicitly approved Automatic dispatch |
| GovernanceSets | Compose reusable server-enforced controls through explicit assignment |
| Learning and Auto Seed | Decide how candidate Knowledge and improvements are reviewed |
| Question Keys | Authenticate application traffic to this AnswerSet |
| Versions and metrics | Inspect immutable behavior revisions, scoring evidence, and request metrics |
What happens when an application asks a question?
Application + Question Key
|
+-- Verify key and resolve organization, workspace and AnswerSet
|
+-- Search approved Knowledge
|-- Good match -> return approved answer without a provider call
|
+-- Otherwise -> apply behavior and GovernanceSets
-> call the configured provider/model
-> validate output policy
-> record run evidence
The Question Key is the tenant and AnswerSet binding. Applications cannot select a different organization, AnswerSet, or independent Flow through a question payload. Approved legacy Automatic ExecutionSet connections may cause external side effects; inspect action evidence before retrying an uncertain request. For independent workflow orchestration, see Flow Studio.
Console reference
AnswerSets can be used independently or referenced by a separate Flow. Manage independent workflows in the top-level Flows area, not inside an AnswerSet. See Flow Studio for editor and rollout guidance.
| Page | What to do there |
|---|---|
| Overview | Understand the reuse, fallback, scoring and learning cycle; follow the recommended next step |
| Test | Ask questions, inspect why Knowledge or AI was used, and manage Question Keys |
| Knowledge | Add, edit, search, label, generate and delete reusable answers |
| Output rules | Choose the response format and manage exact approved values, including JSON |
| Learning | Review candidate Knowledge and configuration changes before approval |
| Results | Review observed reuse, scoring, provider calls, failures, tokens and latency |
| Manage | Edit the AnswerSet, open configuration and scoring, automatic learning or version history, export, or delete |
Call it from an application
Create a Question Key under Test → Question API, then call:
curl --fail-with-body \
'https://lakeshark.dev/api/answers/v1/questions' \
-H "Authorization: Bearer $LAKESHARK_QUESTION_KEY" \
-H 'Content-Type: application/json' \
-d '{"question":"How do I report a suspicious email?"}'
A successful response contains an answer and metadata indicating whether it came from Knowledge or provider fallback. Read the Question API contract.
Where to go next
- Manage Knowledge and provider-assisted generation
- Control JSON, list and fixed-value responses
- Compose dynamic JSON results from request context and answers
- Configure GovernanceSets
- Understand matching confidence and answer-quality scoring
- Review Auto Seed, learning and metrics
- Export or move an AnswerSet
- Build an independent Flow
- Connect an AnswerSet to an HTTP action
- Understand action authorization and external egress