Skip to content

Scope and outcomes

ShinAPI does not index the whole web, and it never implies that it does. It indexes the sites it tracks, in one index, and every response says whether that index answered the question.

Every source is indexed together and every search asks all of it. A request names no collection, subject or category: the query decides what is relevant.

Every response carries one outcome:

Outcome What it means What a model should do
answered The index holds passages on the question, and they follow. Answer from the passages and cite them.
no_match_in_scope The index uses some of the question’s words, in no passage enough. Ask again in the publisher’s terms, then say the sources do not state it.
out_of_scope The index uses none of the question’s words. Use another search, or say it cannot be answered from these sources.

The second outcome is the useful negative: the sources were searched and hold nothing on the question as asked. Matching is on the written word, so a question in everyday words can miss a passage written in formal ones. Ask once more with the term the publisher would use before telling a user that the sources do not state it. The third only says that ShinAPI is the wrong tool for the question.

The index is held in parts, and a search asks every part. When a part cannot be reached in time the search answers from the rest and sets incomplete to true. The outcome then describes only what was reached: a passage may be missing, and no_match_in_scope or out_of_scope is not yet the sources’ last word. Ask again before telling a user that they do not state it. When no part can be reached, the request answers 503 with the code unavailable.

A model chooses a tool by its description, so state the scope there. For example: “Japanese sites of high authority, as they read now. When the outcome is out_of_scope, use a general web search.”

With that description a model sends the right questions to ShinAPI and routes the rest elsewhere by itself.