v1

latestOpenAPI 3.0.32026-07-1718918.2 KB
Models
Topics
Documents

Get top documents for a topic (JSON)

Returns a JSON array of documents associated with a topic in model k. Each returned document includes id, label, metadata, plus: - prob: similarity/probability value (as emitted by server) - topics: map of topic-id to probability for that document Supports n query parameter to limit the number of documents. Supports conditional requests via ETag / If-None-Match.

get/{k}/topics/{topic_no}.json

Path parameters

kinteger required

Model size (number of topics).

topic_nointeger required

Topic number.

Query parameters

ninteger

Max number of results to return.

Response

Array of documents with topic mixtures

idstring required

Document identifier (label key used by server).

labelstring required

Human-readable label for the document.

metadataMetadata required

Arbitrary metadata fields from the corpus.

probnumber float required

Probability/similarity score emitted by the server.

topicsobject required

Map of topic id (string) to probability for this document.