Skip to content
LakeSharkDocumentation
START HERE / DOCUMENTATION

QuickStart

Connect a provider, create an AnswerSet, test it, and send your first Question API request.

Start with an AnswerSet that answers one well-defined type of question. This walkthrough uses an employee security help desk as an example.

What you need

A LakeShark workspace, permission to manage AnswerSets and providers, and a credential from the AI provider you plan to use. LakeShark is hosted SaaS: no installation or cluster deployment is required.

1. Connect a provider

Open Providers → Provider Catalog, choose a provider, and select Connect.

  1. Give the connection a recognizable name and provide the required credential.
  2. Save the connection, then open Connected Providers.
  3. Select Check health and choose a model that the connection supports.

Expected result: A healthy connection with a usable model. If health fails, verify the credential, endpoint and provider account permissions before continuing.

2. Build an AnswerSet

Open Answers, select the new AnswerSet action, then choose Seed with provider.

Field Example
Provider connection The connection you just created
Model One of its supported models
Purpose Answer employee phishing and incident reporting questions
Initial Knowledge 5 seeds
References Optional approved policy files

Use a narrow purpose:

Answer employee questions about suspicious email and phishing incidents using
approved company security procedures. Do not invent company policy. If no
supporting procedure exists, direct the employee to Security Operations.

Select Build AnswerSet. Provider seeding produces initial configuration and Knowledge, but the generated content still requires review.

Expected result: The new AnswerSet appears in Answers with a purpose, provider and model. For fully controlled setup, choose Build manually instead.

3. Review Knowledge and test

  1. Open Knowledge and verify every generated item against your approved source material.
  2. Edit or remove unsupported claims; add missing approved answers.
  3. Open Try it out and ask a question that Knowledge should cover.
  4. Ask a question that is out of scope and confirm the response does not invent policy.
What should I do if I opened a suspicious attachment?

Inspect source, model, latency and tokens. A strong Knowledge match can return an approved answer without a provider call. A fallback answer uses the selected provider.

Manage Knowledge · Configure output policy

4. Assign governance if required

In Governance, create the needed GovernanceSet. From your AnswerSet, open Manage → GovernanceSets and explicitly assign it. A newly created GovernanceSet does not apply automatically.

GovernanceSets guide

5. Create a Question Key

In the AnswerSet’s Try it out page, locate Question API and create a Question Key.

Copy the raw key when shown and store it in your application secret manager. It is bound to the organization, workspace and AnswerSet and cannot be retrieved again in plaintext.

6. Call the Question API

Export the key into your shell as LAKESHARK_QUESTION_KEY without committing it to a repository.

curl --fail-with-body \
  -X POST '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?"}'

Expected result: An HTTP success and a JSON answer with routing information. The application does not supply tenant IDs or provider credentials. LakeShark resolves tenant context from the Question Key.

If something goes wrong

Symptom Check
Provider health fails Connection credentials, endpoint and model
Wrong or made-up answer Approved Knowledge, purpose and instructions
Too many provider calls Knowledge coverage, routing and request metrics
HTTP 401 Question Key value or revocation
HTTP 403 Caller permission or selected workspace for management actions
HTTP 429 Plan quotas; honor any Retry-After header

Continue

AnswerSets · Import/export · Question API · Permissions

Want an approved HTTP call after a governed answer? Continue with Build an AnswerSet action. Manual actions require a separate authorized invocation. If you later approve Automatic connections for this AnswerSet, ordinary Question Key calls may trigger those external side effects. Supply and reuse a UUID Idempotency-Key for safe retries, and inspect actions evidence if delivery is uncertain.