Installation
Authentication
To authenticate, run:TOPK_API_KEY environment variable and skip the topk login command.
Commands
ask
Get a grounded answer with citations
The query can also be piped via stdin:
search
Find relevant passages in documents
The query can also be piped via stdin:
upload
Upload files to a datasetlist
List documents in a dataset:-o json) outputs one JSON object per line (NDJSON).
delete
Delete a document from a dataset:dataset
Manage datasetslist
List all datasets:get
Get a dataset:create
Create a dataset:update
Update a dataset:delete
Delete a dataset:login
To authenticate, run:TOPK_API_KEY environment variable and skip the topk login command.
logout
Log out and clear cache:Global flags
These flags are accepted by every command:--output
Options:
text(default)json
jq:
--api-key
API key to use for this invocation. Overrides the TOPK_API_KEY environment variable and the key saved via topk login.