Skip to main content
This walkthrough takes you from an API key to a grounded, cited answer. It assumes you have an organization with a default environment and tenant (created automatically when you sign up).
1

Set your key and base URL

2

Find your tenant

List the tenants your key can access. Note the id you want to work in.
3

Create a knowledge base

Save the returned knowledge base id.
4

Upload a document

Uploads are a two-step flow: request a presigned URL, then upload the file straight to storage.
Processing starts automatically once the file lands. Poll status until it is processed:
See Document ingestion for the full pipeline and supported file types.
5

Create a chat and ask a question

The response includes the assistant’s grounded answer, the source passages it cited, and usage information.
6

Stream the next turn (optional)

For live progress and final answer content, use the streaming endpoint with the chat_id from the previous step:
See Chat & streaming for handling the event stream.

What next

Build an agent

Turn this knowledge base into a reusable, deployable agent.

Serve your end users

Isolate each of your customers with tenants and external subjects.