Context
Before searching or chatting, an agent usually needs to know what a knowledge base is actually about. These two tools return short, LLM-friendly summaries of a KBase: its subject structure (the topics under which content is filed) and its description.
GetIndexContext
Gets the context of a knowledge base: a rendering of the topic structure that the KBase's content is organised under, written so that a language model can read it directly. It is the best way to find out which subjects a KBase can answer questions about, and to phrase a NarrowSearch query that the server can disambiguate.
Parameters
| Name | Type | Description |
|---|---|---|
indexId | string | The Id of the KBase. |
Returns
An LLM-friendly version of the KBase context, as text.
GetIndexDescription
Gets the description of a knowledge base — a short summary of what it contains and what it is for.
Parameters
| Name | Type | Description |
|---|---|---|
indexId | string | The Id of the KBase. |
Returns
An LLM-friendly version of the KBase description, as text.