knowledge_graph

kg_evaluate_retrieval

Check how well a set of kg_search results is backed by the knowledge graph before you answer from them. Pass the chunk ids kg_search returned. Each chunk gets a bucket: authored-grounded (backed by links people authored), extracted-high-conf or extracted-low-conf (backed by links inferred from text, with high or low confidence), or no-support (nothing in the graph backs it). Also returns the overall distribution, dominant_bucket, recommend_refusal and a short agent_summary. Use it to decide whether to answer confidently, add a caveat, or decline. It only reads stored information: no AI call is made, so it is quick and adds no cost.

post/tools/kg_evaluate_retrieval

Request

  • Base URL: https://api.stablebaseline.io/functions/v1/cloud-serve/api/v1
  • URL: https://api.stablebaseline.io/functions/v1/cloud-serve/api/v1/tools/kg_evaluate_retrieval
  • Auth: HTTP bearer

Request body

chunkIdsstring[] required

The chunks to assess: the chunk_id of each kg_search result.

Response

Tool result (shape varies per tool — refer to the tool's docs for the exact return value).

object required

Changes

No recorded changes to this operation across all 1 revision of this API.