Semantic search over datasets (tRPC)
topK
nearest snippets.userId
; searches the user namespace.userId
; searches the dataset namespace.{ "input": { datasetId, query, userId?, topK? } }
datasetId
(string, required)query
(string, required)userId
(string, required for user datasets; omit for population)topK
(number, optional; default 10, max 100)kontext.dev.{developerId}.user.{userId}
kontext.dev.{developerId}.ds.{datasetId}
userId
missing for a user‑anchored datasetrows[].score
may be a similarity or distance score depending on backend configuration; treat it as a relevance indicator only./trpc/datasets.query
) for answers strictly from extracted facts.