Skip to main content
Getting a first cited answer takes four steps: create a collection, add a source and sync it, create an assistant over that collection, then ask it a question. All four are below, taking an empty organisation to a grounded, cited answer. It uses the HTTP API throughout, so each step can be copied as-is. The console equivalents are noted where they exist.

Before you begin

You need:
  • A MITHUNAI organisation. Your MITHUNAI administrator provisions organisations; there is no self-service sign-up.
  • An API key with the Editor role or higher. An Owner or Administrator creates it in the console under Operations → API keys. See API keys.
  • A documentation site, sitemap, GitHub repository or set of files to answer from.
Set two environment variables. Every example below uses them.
An API key is a secret. Keep it on servers and in secret managers. Never put it in a web page, a mobile app or a repository.
1

Confirm a model is available

Pick a model whose capabilities include chat and save its id, such as openai/gpt-4o, as MODEL_ID. If the list is empty, contact your MITHUNAI administrator; no model provider is configured.
2

Create a collection

A collection is the corpus an assistant answers from. Its embedding model is fixed when you create it.
Save the id from the response as COLLECTION_ID.
In the console, the Knowledge page creates a collection for you the first time you connect a source.
3

Connect a knowledge source

Register your documentation site. A sitemap is usually faster and more complete than a crawl; see Knowledge sources for every source type.
Save the source id as SOURCE_ID. In the console: Knowledge → Connect a knowledge source.
4

Ingest it

Registering a source does not read it. Start an ingestion job, then poll it until it finishes.
Ingestion runs in the background and a large site takes minutes. Wait for the job to complete before asking questions. See Ingestion.
5

Create an assistant over the collection

Save the assistant id as ASSISTANT_ID. Without model, an assistant uses anthropic/claude-sonnet-5, which answers only if your deployment offers it.In the console: Assistants → New assistant, then tick the collection under Knowledge. See Create and configure assistants.
An assistant answers only from the knowledge attached to it, and refuses questions until at least one collection is attached.
6

Ask a question

Start a conversation, then ask.
The response contains the answer and its citations. If the answer has "abstained": true, your content did not support an answer. That is a correct result, not an error. See How answers work.You can also ask in the console on the Ask page.

Next steps

Embed the widget

Put the assistant on your website.

Stream answers

Show the answer as it is written.

Test before launch

Check grounded answers and abstentions against your own questions.

Connect MCP clients

Query your knowledge from Claude and IDE assistants.

Compare the channels

Which of the widget, the API and MCP suits who is asking.

When a step goes wrong

Empty model lists, failed ingestion jobs, and what a 401 or 429 means.
Last modified on September 26, 2026