SPARQL reasoning
SPARQL matches patterns against facts, follows relationships, and returns exact results. It does not rely on probabilistic guessing.Symbolic logic
Given triples such asuser:person wazoo:uses wazoo:worlds, query for the
resource:
Neuro-symbolic reasoning
Worlds fuses semantic discovery with symbolic logic. Hybrid search disambiguates the natural language intent into a specific starting item, while SPARQL executes the deterministic traversal across verified facts.
The Worlds API provides an external source of truth that an agent can
deterministically verify. In practice, an LLM accesses this source of truth via
tool calling, which lets it ground its responses in verified facts rather than
probabilistic weights.
LLM inference vs. graph queries
LLM inference predicts the next token from model weights and prompt context. That makes it useful for language, synthesis, and planning, but weak as a source of truth. SPARQL queries a graph of stored facts. When an agent asks Worlds a question, the model can use a tool call to retrieve facts instead of relying only on probabilistic generation.
In practice, the LLM decides what to ask. Worlds answers from the graph. The
final response can still be natural language, but the facts come from a
deterministic query path.
Operational tradeoff
Graph grounding changes where the system spends resources. Instead of paying the model to reconstruct facts from long prompts on every answer, you store and index facts once, then retrieve them through short queries.
This tradeoff is deliberate. The system uses storage and indexes to reduce
repeated inference cost and keeps an inspectable path back to the source facts.
Caching hot reads
After facts move into a graph, caching can optimize repeated reads. A cache stores derived query results or materialized views for hot paths, while the graph remains the authoritative state.High-stakes context
Standard RAG struggles with evolving facts and complex relational queries. Worlds maintains a living knowledge graph and resolves contradictions at the data layer.The evolving fact
Consider a scenario where information changes rapidly:- Monday: “I am working on Project Apollo.”
- Wednesday: “I am pausing Apollo to focus on Project Hermes.”
- Friday: “What am I working on?”
Grounding agents in ontologies
By using thediscoverSchema tool from @wazoo/tools, agents retrieve the
world’s ontology before attempting to query it.
- Discovery: Agent retrieves the world’s ontology.
- Mapping: Agent maps intent to specific RDF classes and predicates.
- Querying: Agent executes precise SPARQL queries instead of depending solely on vector similarity.