▲ 13 r/vectordatabase+1 crossposts

Built a causal graph RAG — +0.33 on multi-hop vs flat RAG with Haiku

Been working on a RAG system that builds a directed causal graph from documents instead of chunking. The idea: when someone asks "what ultimately caused X?", flat RAG fails because the cause and effect live in different chunks with no shared vocabulary. If you follow the graph edges instead, you get the full chain.

Benchmark: 54 questions across two domains (subprime mortgage crisis, Chernobyl), three question types (fact lookups, multi-hop, root-cause), Claude Haiku for generation, Sonnet as judge, paired Wilcoxon against a strong BM25+dense flat baseline.

Results:

  • Multi-hop: +0.33 (p=0.002)
  • Root-cause: +0.22 (p=0.006)
  • Fact lookups: +0.01 (statistical tie — graph doesn't hurt)

The fact-lookup tie was the thing I cared most about honestly. Earlier versions had a -0.03 regression on facts which made the system impractical. Fixed that with a score gate that falls back to flat coverage when no chain clears a relevance threshold.

Coverage sentence retrieval is hybrid BM25+dense RRF (k=60). Chains are ranked with a 5-channel RRF: name match, VSA hypervector similarity, BM25, dense, path signature. Entity normalization merges near-duplicate nodes before indexing.

Graph traversal (root cause, impact, shortest path) needs no LLM — instant BFS, useful for on-call engineers who need answers before reading the document.

Repo: https://github.com/linga009/causal-graph-rag

Happy to discuss methodology — especially whether the judge setup is sound, that's always the sketchy part of LLM-as-judge evals.

reddit.com
u/linga009 — 9 days ago
▲ 7 r/SciFiConcepts+6 crossposts

Avatar artificial living organism

​Beyond Transformers: Why Artificial Life Needs Physics, Not Just Data

​The current era of artificial intelligence is entirely dominated by static pattern recognition. We have built massive, highly capable models that can predict the next token with astonishing accuracy. But for all their complexity, these models are frozen in time. They lack temporal continuity, they lack physical grounding, and most importantly, they lack life.

​If our goal is to build truly autonomous digital organisms, we cannot rely solely on the discrete, feed-forward nature of standard transformer architectures. We need systems that experience continuous time, manage internal energy states, and adapt dynamically to their environments.

​This is the exact problem I set out to solve with Avatar, an open-source Artificial Life framework designed from the ground up to integrate theoretical physics with machine learning.

​The Illusion of Life in Modern AI

​Most AI agents today operate on discrete timesteps. They are fundamentally reactive: an input is provided, a computation is performed, and an output is generated.

​Biological life does not operate this way. A living organism is a continuous, self-maintaining system (an autopoietic system). It possesses internal states—hunger, fatigue, curiosity—that continuously evolve over time, driving embodied learning and behavior even when there is no external prompt. To replicate this digitally, we need a fundamentally different mathematical foundation.

​Enter the Avatar Architecture

​Avatar shifts the paradigm from "data processing" to "embodied simulation" by relying on two major architectural pillars:

​1. Continuous-Time Dynamics via Hamiltonian Neural ODEs

​Instead of updating discrete neural network layers, Avatar models the organism's internal states using Ordinary Differential Equations (ODEs). Specifically, by structuring these equations around Hamiltonian mechanics (\mathcal{H}), the system inherently respects physical principles like energy conservation.

​This means the organism doesn't just "decide" to move; its movement is a continuous mathematical evolution governed by its internal energy constraints. If the agent runs out of energy (fatigue), the Hamiltonian dynamics naturally dictate a change in its behavioral trajectory to seek sustenance.

​2. Cognitive Topology via MERA Tensor Networks

​To handle the complex, hierarchical nature of sensory processing and decision-making, Avatar utilizes Multi-scale Entanglement Renormalization Ansatz (MERA) tensor networks. Originally developed in quantum many-body physics to manage complex correlations, MERA provides a highly efficient way to structure cognitive tiers.

​Instead of a flat neural network, the organism's brain processes sensory flux through a dimensional hierarchy. Lower tiers handle immediate, high-frequency sensory inputs, while higher tiers abstract this data into long-term behavioral goals.

​Why Build This?

​Building Avatar has been an exercise in pushing the boundaries of what is possible when we stop treating AI as a software product and start treating it as a synthetic biological complex. It is a proof-of-concept that artificial life can, and should, be mathematically grounded in the physics of the natural world.

​As I finalize the avalanche power law metrics and prepare the late-breaking abstract for the upcoming ALife 2026 conference in Waterloo, I am opening the core repository for community review and collaboration.

​If you are a researcher, physicist, or developer interested in emergent systems, autopoietic design, or continuous-time neural networks, I invite you to explore the codebase and run the simulations yourself.

Explore the Repository here: https://github.com/linga009/Avatar

u/linga009 — 9 days ago