LmCast :: Stay tuned in

JulianFlux: Electrodynamic vector retrieval and causal routing for AI

Recorded: Oct. 12, 2026, 12:10 a.m.

Original Summarized

GitHub - julianjohnson-web/julianflux-research: Electrodynamic field retrieval and causal routing for AI agents. · GitHub

Skip to content

Navigation MenuSign inAppearance settingsPlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesCode QualityEnforce quality at mergeAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricingSearch/Sign inSign upAppearance settings

You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

julianjohnson-webjulianflux-researchRepository navigationCodeIssuesPull requestsActionsProjectsSecurity and qualityInsightsMore items

julianflux-researchPublicNotificationsYou must be signed in to change notification settingsFork0 (0)Star1 (1)You must be signed in to star a repositoryAboutElectrodynamic field retrieval and causal routing for AI agents.ResourcesReadmeActivityStars1 starWatchers0 watchingForks0 forksReport repositorymainBranchesTagsGo to fileCodeOpen more actions menuLatest commit History24 Commits24 CommitsFolders and filesNameNameLast commit messageLast commit dateREADME.mdREADME.md  euclidean_baseline.pyeuclidean_baseline.py  julian_flux_visualizer.htmljulian_flux_visualizer.html  julianflux_educational_mvp.pyjulianflux_educational_mvp.py  julianflux_engine.pyjulianflux_engine.py  requirements.txtrequirements.txt  scale_ab_benchmark.pyscale_ab_benchmark.py  View all filesRepository files navigationREADMEMore itemsJulianFlux 🧲: Electrodynamic Reasoning Infrastructure for AI Agents
Autonomous AI Agents are failing in enterprise environments because standard Vector Databases (Pinecone, Milvus) act as static filing cabinets. They rely on discrete Euclidean metrics like Cosine Similarity, which blindly retrieve contradictory information (hallucinations) and return unordered text fragments, causing agents to get trapped in logic loops.
JulianFlux elevates the database to a kinetic reasoning engine. We compress high-dimensional embeddings into a low-rank manifold and calculate a Continuous Electrodynamic Field to retrieve and route data.

🚀 The Core Breakthrough: The Lorentz Force (F = q(E + S))
Instead of measuring distance, we measure physics. We route agents using a modified Lorentz Force equation:

The Julian-Gauss Fast Transform (JG-FT): We project massive 768D semantic spaces down to a mathematically sound 128D manifold using a normal distribution, preserving mapping accuracy while drastically reducing arithmetic cost.
Dynamic Bandwidths (σ): We dynamically calculate the Gaussian bandwidth for each vector based on its Nearest Neighbor distance, allowing the field to perfectly adapt to local semantic densities.
The Electric Field (E): Mathematically repels hallucinations. We assign topological charges (q) to data (−1.0 for contradictions, +1.0 for truth) via NLI Logic Gates. The repulsive electric field physically blocks the AI from accessing poisoned data.
Faraday's Law of Induction (-∂A/∂t): We decay old facts and corporate policies over time, generating a repulsive field against deprecated workflows.
The Poynting Flux (S): Extracts causal sequences to create Semantic Momentum. By computing the interior contraction product in Geometric Algebra (S = E ⌟ B), we generate a momentum vector that pushes the agent sequentially from Step A → Step B → Step C.

🗺️ Repository Map: Which file should I run?
We have open-sourced our core mathematics in Python to demonstrate how continuous field architecture completely outperforms standard Euclidean RAG.
(Note: These files are designed to be run locally in the order below).
1. euclidean_baseline.py (The Problem)
Run this first. It demonstrates a standard Cosine Similarity retrieval in a poisoned dataset. You will watch standard RAG fail entirely, blindly retrieving contradictory data and collapsing the causal workflow.
2. julianflux_educational_mvp.py (The Fast Solution)
The lightweight, instantly runnable JulianFlux engine. It uses the 128D projection, dynamic σ, and Lorentz Force, but utilizes fast Geometric Median clustering to assign truth charges instead of heavy AI models. Run this for a blazing-fast demonstration of the Lorentz Force routing the agent correctly.
3. scale_ab_benchmark.py (The Stress Test)
An end-to-end adversarial scale test generating thousands of background vectors. It runs Standard RAG and JulianFlux head-to-head, proving a 0.0% hallucination rate at scale.
4. julian_flux_engine.py (The Full Physics Engine)
The spacetime engine. This file replaces the fast geometric clustering with a heavy DeBERTa-v3 NLI Cross-Encoder for enterprise-grade truth verification. Crucially, it introduces Faraday's Law of Induction and Temporal Decay, mathematically repelling the AI away from recently deprecated corporate policies. (Note: Requires downloading the DeBERTa model).

🛠 Quick Start
Clone the repository:
git clone https://github.com/julianjohnson-web/julianflux-research.git
cd julianflux-research

Install the required dependencies:
pip install -r requirements.txt

Run the scale benchmark:
python scale_ab_benchmark.py

🏢 JulianFlux Enterprise (The Rust Core)
Note: This repository contains the pure Python bindings intended for educational research and open-source mathematical validation.

For high-frequency production environments, the JulianFlux Enterprise Cloud executes these multivector physics equations in a zero-copy Rust/CUDA backend. This eliminates the Python Global Interpreter Lock (GIL), allowing the Lorentz Force equations to execute across billions of vectors with sub-millisecond p99 latencies.

To inquire about Enterprise Cloud access or Design Partnerships, please contact the founder at: julian.johnson@justudios.io

AboutElectrodynamic field retrieval and causal routing for AI agents.ResourcesReadmeActivityStars1 starWatchers0 watchingForks0 forksReport repositoryReleasesPackagesContributorsLanguages

Footer

© 2026 GitHub, Inc.

Footer navigation

Terms

Privacy

Security

Status

Community

Docs

Contact

Manage cookies

Do not share my personal information

You can’t perform that action at this time.

Autonomous AI agents struggle in enterprise settings because conventional Vector Databases, such as Pinecone or Milvus, rely on static Euclidean metrics like Cosine Similarity for retrieval, which often results in the retrieval of contradictory information and unordered text fragments, leading agents into logical loops and hallucinations. Julian Flux proposes elevating the database structure into a kinetic reasoning engine by utilizing principles of electrodynamics for causal routing and data retrieval instead of simple distance measurement.

The core innovation is framed around a modified Lorentz Force equation, F = q(E + S), which replaces traditional distance metrics with physical field interactions. This framework incorporates several derived concepts to manage semantic space. The Julian-Gauss Fast Transform (JG-FT) is employed to project massive semantic spaces, such as 768D embeddings, down to a mathematically sound 128D manifold using a normal distribution, thereby preserving mapping accuracy while significantly reducing computational expense. Furthermore, dynamic bandwidths, represented by the Gaussian bandwidth sigma, are calculated dynamically based on the nearest neighbor distance, allowing the resulting field to adapt precisely to local semantic densities.

The Electric Field (E) component is designed to actively repel hallucinations by assigning topological charges (q) to data points, where contradictions are assigned a charge of negative one point five and truths are assigned a charge of positive one point zero, determined via NLI Logic Gates. This repulsive electric field physically blocks the AI agent from accessing poisoned data. Complementing this is Faraday's Law of Induction (-∂A/∂t), which is introduced to mathematically account for temporal decay, allowing the system to generate a repulsive field against deprecated workflows by decaying outdated facts over time. The Semantic Momentum is extracted through the Poynting Flux (S), which computes the interior contraction product within Geometric Algebra (S = E ⌟ B) to generate a momentum vector that guides the agent sequentially through a causal sequence of steps.

The research is supported by an open-source set of Python files demonstrating this continuous field architecture. Starting with euclidean_baseline.py, the system first illustrates the failure mode of standard Retrieval Augmented Generation (RAG) on poisoned datasets. julianflux_educational_mvp.py provides a lightweight demonstration of the Julian Flux engine, utilizing fast Geometric Median clustering, and the principles of the Lorentz Force for correct agent routing. scale_ab_benchmark.py serves as an adversarial stress test, comparing the performance of standard RAG against Julian Flux, demonstrating a zero percent hallucination rate at scale. The comprehensive julian_flux_engine.py file implements the full physics engine, substituting the fast clustering with a heavy DeBERTa-v3 NLI Cross-Encoder for enterprise-grade truth verification, incorporating the temporal decay mechanisms.

For high-frequency production environments, the underlying mathematics of the Julian Flux engine are implemented in a zero-copy Rust/CUDA backend. This implementation is designed to execute the multivector physics equations, ensuring that the Lorentz Force calculations can operate across billions of vectors with sub-millisecond latency by circumventing the Python Global Interpreter Lock. The repository structure supports this duality, housing the educational mathematical validations in Python while focusing the performance-critical implementation in Rust to achieve enterprise-grade processing speeds.