Casual Knowledge Graphs·Powered by Grok AI·Three-Phase Retrieval·Neo4j · Qdrant · Redis·Casual Knowledge Graphs·Powered by Grok AI·Three-Phase Retrieval·Neo4j · Qdrant · Redis·Casual Knowledge Graphs·Powered by Grok AI·Three-Phase Retrieval·Neo4j · Qdrant · Redis·Casual Knowledge Graphs·Powered by Grok AI·Three-Phase Retrieval·Neo4j · Qdrant · Redis·
Grok AI · Casual Graphs

understand
why things
happen.

Ask any question. Get a structured cause-and-effect graph built by Grok AI — events, edges, confidence scores, all connected.

3
search phases
<100ms
cache hit
How It Works

Four steps
from question
to graph.

A three-phase retrieval pipeline ensures AI generation only runs when truly needed — keeping latency low and quality high.

Hover a step to preview details
01

Ask a Question

Type any natural-language question — geopolitical, economic, scientific, or social. No special syntax needed.

"Why is the rupee falling against USD?"
02

Three-Phase Retrieval

Neo4j keyword search runs first. On miss, Qdrant semantic search (≥ 0.70 similarity). Only a true miss triggers Grok AI generation.

Neo4j → Qdrant → Grok AI
03

Grok Builds the Graph

A structured prompt to xAI's Grok returns a validated casual JSON graph — event nodes with dates, domains, confidence scores, source URLs, and directed edges with perspectives.

minimal · balanced · quality
04

Persist & Cache

New nodes are bulk-written to Neo4j, embedded by Ollama (nomic-embed-text), and stored in Qdrant. Redis caches by topic + mode + count. Every query makes the system smarter.

Neo4j + Qdrant + Redis
Features

Everything needed to map casuality.

Core Engine

Grok AI Graph Generation

A single structured prompt to xAI's Grok produces a complete casual knowledge graph — nodes with dates, domains, confidence scores, source URLs, and directed edges. No Wikipedia scraping.

grok-3-minigrok-3JSON validatedDirected edges
Flexibility

Three Generation Modes

Minimal (grok-3-mini, 3k tokens) · Balanced (grok-3, 4k) · Quality (grok-3, 6k). Controllable per request.

minimal
balanced
quality
Three-Phase Retrieval

Semantic + Keyword Search

Neo4j keyword → Qdrant vector similarity (≥ 0.70) → Grok generation. Only true misses trigger AI.

Neo4j→Qdrant→Grok
Rich Metadata

Casual Perspectives

Edges carry perspective labels and an is_contested flag. See who says what, and how disputed it is.

MainstreamGeopoliticalStructuralEconomicRevisionist
Analysis

What-If Simulation

Remove an event from the graph and watch its causal impact recalculate in real time — undo anytime.

Impact Analysis→Undo / Redo→Edge Recount
<100ms
Cache hit latency
0.70
Semantic threshold
API Preview

One endpoint. Full casual graph.

Request
# Casual graph search — semantic fallback + Grok generation
GET /api/v1/EventNodes/search
?q=why is rupee falling against usd
&mode=balanced
&count=10
Accept: application/json
Authorization: Bearer <token>
200 OK · 44ms · 8.2 kB
Response
{
"items": [
{
"id": "3f8a2c1d-...",
"title": "US Federal Reserve hikes rates",
"domain": "Economics",
"confidenceScore": 0.91,
"eventDate": "2022-03-16"
},
{
"id": "7b3e9f2a-...",
"title": "Capital Flight from Emerging Markets",
"confidenceScore": 0.84
}
// ... 8 more nodes
],
"totalCount": 10,
"wasAutoGenerated": true,
"cacheHit": false
}
GET /api/v1/EventNodes/search?q=...&mode=balanced&count=10
3
Search phases
0.70
Semantic threshold
<100ms
Cache latency
About

Built to understand
the world casually.

Graph Sight is a production-grade API system that turns natural-language questions into structured casual knowledge graphs. It combines a .NET 8 backend, a Python FastAPI AI sidecar, and five backing services — Neo4j, Qdrant, Ollama, Redis, and PostgreSQL — all orchestrated in Docker.

Most information systems tell you what happened. Graph Sight tells you why. Every event node has a date, domain, confidence score, and source URL. Every edge has a perspective, strength, and contested flag.

.NET 8Python FastAPIGrok (xAI)Neo4jQdrantRedisPostgreSQLDocker
View on GitHub
01

Why, not just what

Most search returns facts. Graph Sight returns causal chains — structured graphs that answer why an event happened, not just that it happened.

02

Generation as last resort

AI generation is expensive and slow. Three search phases run first — only a genuine cache miss triggers Grok. The system gets smarter with every query.

03

Confidence over certainty

Every node carries a confidence score (0.4–0.95) and every edge can be marked contested. Graph Sight acknowledges what is disputed rather than flattening it.