Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.topk.io/llms.txt

Use this file to discover all available pages before exploring further.

Prerequisites
1

Install CLI

brew tap topk-io/topk
brew install topk
If you don’t have Homebrew installed, you can install it here.
2

Authenticate

topk login
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:
export TOPK_API_KEY="your-api-key"
3

Create a dataset

A dataset is a named container for your documents. To create a dataset, run the following command:
topk dataset create quickstart --region aws-us-east-1-elastica
The --region flag determines where your data is stored. See available regions.
4

Upload a file

Upload a file to your dataset:
topk upload ./report.pdf --dataset quickstart
5

Ask a question

topk ask "What was the total net income of Bank of America in 2024?" -d quickstart
Congratulations! You’ve just ingested your first document and asked a question.

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.