v1

latestOpenAPI 3.0.32026-07-1718918.2 KB
Models
Documents

Get top documents matching a query string (JSON)

Returns a JSON array of up to n documents for model k based on a query q (server lowercases). Each document includes id, label, metadata, plus: - prob - topics (topic mixture map) Supports conditional requests via ETag / If-None-Match.

get/{k}/word_docs.json

Path parameters

kinteger required

Model size (number of topics).

Query parameters

qstring required

Query string used to retrieve documents.

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.