Prerequisites
- TopK account (Sign up here)
- TopK API key (Get API key here)
- CLI
Python SDK
JavaScript SDK
Authenticate
This command prompts you to either create a new API key or set an existing one.You can also provide your API key via the
TOPK_API_KEY environment variable:Create a dataset
A dataset is a named container for your documents.
To create a dataset, run the following command:
The
--region flag determines where your data is stored. See available regions.Next steps
Ingest
Learn how to upload your documents.
Ask
Run an agentic query to get grounded answers with source citations.
Search
Find the most relevant passages in your documents.
Research
Explore topics more deeply with multi-step analysis and grounded citations.