Graph Query
AdvancedLocation: /studio/[project]/query
The Query tab is a Graph RAG search tool for asking your ontology graph questions in natural language. By default it runs a key-free deterministic search: queryGraph returns the entities matching the question, a 2-hop subgraph around them, and a grounded answer. It shows the matched entities and relations as chips and a list; an optional AI Answer button has an LLM compose a more natural answer grounded only in that subgraph (no invented facts).
- 1Open the Query tab and make sure the ontology is populated (an empty notice shows otherwise).
- 2Type a natural-language question or click an example chip.
- 3Press Ask (or Cmd+Enter) to get the deterministic answer, matched entities, and subgraph.
- 4Optionally press AI Answer to have an LLM compose a grounded answer from the subgraph.
The base search (queryGraph) is deterministic and LLM-free. Only the optional AI Answer uses llmComplete (local CLI agent preferred, BYOK OpenAI/Anthropic/Google fallback).
The base search works instantly without an API key; only AI Answer needs an LLM backend, so graph search remains usable without keys.