I'm an applied AI engineer pursuing a Master of Artificial Intelligence at UTS Sydney.
Before this, I spent four years building software across fintech and healthcare — from apps serving 10,000+ agents to AI-assisted blood testing used in clinics.
My embodied-AI research asks whether the same remembered visual evidence can produce different robot actions when its position labels change. I also tested whether altering those labels helps robots finish tasks—and found that it did not improve success in the tested setting. explore ↗
Each koi carries a paper about memory or AI. Hover for its title; click for a note or the original publication. Click empty water to feed the fish. read reading queued papers wait in the notes
FIELD NOTES / READING ROOMMEMORY · SYSTEMS · AGENTS · EXPERIMENTS
OBSERVATIONS, NOT A KNOWLEDGE BASE
Notes from the edges.
Small questions. Long rabbit holes.
Some are papers unpacked. Others are design decisions, failure modes, or ideas worth testing. Each note begins with the human problem, then opens up the mechanism. Read in any order.
What if remembering meant learning while you read?
A visual explanation of Titans: Learning to Memorize at Test Time. No AI background required. Explore what happens when a model cannot keep its entire past in view—and how Titans tries to remember beyond that window.
One model, three complementary sources of context. An interpretation of the paper—not its original figure.
01 / NoticeWhy a context window isn't enough
02 / RememberWhat gets updated as data arrives
03 / ConnectHow the architecture uses memory
01 — THE PROBLEM
You can't keep every page open.
A Transformer uses attention to look at information inside its current context window. As a stream gets longer, old information may fall outside what it can directly attend to.
TRY IT / SCROLL THROUGH A TINY STORYShort-term context: 3 events
What it can see now
Only the most recent three events fit in this toy window.
→What if the past mattered?
A learned trace
An illustrative memory of an earlier surprising clue.
Add events to see what slips out of the short window.
The key distinction: a longer context stores more tokens; Titans also learns a compressed memory in a separate neural network. The trace above is a teaching analogy—not a live Titans model or a guarantee of perfect recall.
02 — THREE KINDS OF MEMORY
Remembering has different jobs.
The paper combines three roles. Select one to see what it keeps and when it changes.
THE OPEN DESK
What is right in front of you.
Attention relates tokens inside the current window precisely. It's powerful for nearby context, but can't directly see tokens that have dropped out of its window.
03 — THE BIG IDEA
Surprise makes memory move.
Titans updates its neural memory using an associative-learning error signal. It combines the new gradient with momentum from previous updates, while also allowing old memory weights to fade. Explore a tiny numerical analogy.
EXPERIMENT / TURN THE THREE DIALSIllustrative scalar update · not model output
Choose the memory behavior.
How strongly this example responds to the latest gradient (θ).
How much the previous update keeps influencing this one (η).
How strongly old memory weights decay before the update (α).
Watch the ingredients change.
new memory = retained past + new update
Retained past
New update
Combined
A blend of what was there and what just happened.
The actual Titans module is a neural network. These bars show a simplified one-dimensional analogue of its weight-update rule, not how much text a model remembers.
Important: “surprise” here is an associative-memory loss gradient—not an emotion, a novelty classifier, or a guarantee that rare facts will be recalled.
Curious about the real equation? Expand the research note ↗
In the paper, the memory weights update as Mₜ = (1 − αₜ)Mₜ₋₁ + Sₜ, where Sₜ = ηₜSₜ₋₁ − θₜ∇ℓ(Mₜ₋₁; xₜ). M is the neural memory's parameters; S is the update/momentum state; α controls forgetting; η carries past surprise; θ scales the new gradient. The loss ℓ trains the memory to associate projected keys with projected values. The sliders above simplify those vectors/gradients to one positive scalar to reveal the roles of the terms.
04 — PUTTING IT TOGETHER
Three streams. One answer.
In Titans' Memory as Context (MAC) variant, the model brings together the current segment, information read from its updated long-term memory, and learned persistent tokens. Attention can then use these sources together.
EXPLORE / MEMORY AS CONTEXT (MAC)Click a source to inspect it
↓↓↓
attention considers them together
Current segment: the fresh sequence is still processed directly. Titans isn't throwing attention away; it is giving attention access to more than the immediate stream.
MAC · Context
Bring retrieved memory into the attention context. This is the version visualized above.
MAG · Gate
Run attention and memory as different branches, then combine their outputs through a gate.
MAL · Layer
Use neural memory as a layer in the processing stack, alongside attention.
05 — WHAT TO REMEMBER
It's a different way to carry the past.
The authors evaluate Titans on tasks including language modeling, reasoning, time-series, and long-context retrieval. The reported results support the idea that learned memory can complement attention—but do not imply flawless recall.
THE CONTRIBUTION
Memory is a process, not just a longer prompt.
While processing a sequence, a neural memory can update its own weights through a learned rule. This offers a different trade-off from keeping all previous tokens explicitly available to attention.
THE LIMIT
Compression can still lose things.
The memory stores learned associations, not a searchable notebook of exact facts. Which details survive, and how reliably they are used, remains an empirical question.
ONE QUICK CHECK
Which part carries knowledge that is learned across training and is not rewritten for every incoming sequence?
Pick an answer to check your understanding.
INDEPENDENT RESEARCH CASE STUDY
Causal Memory Interference in Embodied AI.
Same memory. Different position. Different action.
A robot can remember the right thing and still make a different decision. I investigated how the position label attached to remembered visual information changes a trained robot policy's predicted actions—and then tested whether changing those labels actually helps the robot complete tasks.
See how it works ↓Plain language first. Technical evidence as you scroll.
INTERACTIVE / THE CORE QUESTIONFIG. 01 / SCHEMATIC
SAME FOUR REMEMBERED FRAMES
◈frame Apos 01
◇frame Bpos 02
▧frame Cpos 03
⌁frame Dpos 04
POLICY PREDICTIONReference actionOriginal position labels.
➜Action A
Conceptual illustration, not recorded robot output. The real experiments controlled the actual trained model tensors and measured action differences.
START HERE / A 32-SECOND EXPLANATIONREAL PROJECT MEDIA · NOT STOCK FOOTAGE
Imagine a robot watching someone hide a red cube under a container. Later, the robot must pick the correct container. It can keep a visual memory of the demonstration—yet the way that memory is positioned inside the model may influence its next move.
My research asks which part of that effect can be traced to position IDs used by attention, and whether modifying them actually improves success during a robot task.
WHAT STAYS FIXEDThe remembered visual evidence.Same task, checkpoint, and controlled inputs.
WHAT CHANGESWhere attention thinks memory belongs.Position IDs assigned to downstream memory keys.
WHAT GETS MEASUREDActions first. Task success separately.Different predicted motion is not necessarily better behavior.
Causal mechanismEstablished in tested policy
Closed-loop benefitNot observed
Broader generalizationExploratory
81/81formal evaluations completed
3frozen inference seeds
432/512position IDs altered in runtime probe
45closed-loop robot rollouts
01 / THE PROBLEM
Remembering a clue isn't the same as using it.
Imagine a robot that saw where an object was placed. Later, it needs that remembered visual clue to decide how to move. A memory-augmented robot policy stores selected past images and uses them to choose actions. But how a memory is positioned inside attention can also influence the choice.
01Past observationsImages the robot saw earlier
→
02Selected memoryFrames kept for later
→
03Memory tokensInternal representations of frames
→
04 / THE INTERVENTIONPosition IDsLabels used in downstream attention
→
05ActionThe robot's next prediction
ACTUAL PROJECT TASK IMAGES
Select a task to see what the robot must remember. These are real frames from project recordings, not exact Target-1 query frames.
VIDEO MEMORY / RECALL A HIDING PLACE
A clue seen earlier must guide an action later.
The robot observes a demonstration, then has to remember which container concealed the target object. This family showed the clearest reduction in action divergence under the tested FAR alignment. That is not the same as a higher task-success rate.
TRY IT / WHERE DOES THE CLUE APPEAR?SCHEMATIC, NOT EXPERIMENTAL OUTPUT
Clue appears early
The same clue comes before a long stretch of distracting history.
I began with controlled FAR/MIDDLE/RECENT histories while keeping the task and other inputs fixed. I then matched retained memory and intervened on downstream position IDs to isolate their effect on action predictions. Merely observing a temporal-history difference would not have identified its cause.
New to robotics or AI? five ideas in plain English ↗
VLA policy
A model that uses images and language instructions to choose robot actions.
Attention
A mechanism for combining information the model considers relevant to its next decision.
Position ID / RoPE
A position label and a mathematical transformation that help attention distinguish where information belongs.
MAE
Mean absolute error: an average difference between two numeric action predictions. Lower here means more similar, not necessarily better.
Closed-loop rollout
The robot takes an action, observes what happens, and continues. Success is measured on the completed task, not just one prediction.
02 / THE CAUSAL TEST
Change the address. Keep the memory.
Think of position IDs as address tags on the robot's remembered information. My intervention changed those tags at the downstream attention interface, without changing the saved visual content or the unrotated memory keys. This let me ask whether the labels themselves affect the predicted action.
WHAT I HELD FIXED
Trained model checkpoint
Current camera observation and task
Retained visual content and memory length
Upstream embeddings and pre-RoPE keys
Initial query tensors and inference seed
WHAT I CHANGED
Memory-key position IDs
→
RoPE rotation
→
Predicted action
RoPE is a position-aware transformation inside attention. The same unrotated memory key can interact differently with a query when assigned a different position ID.
THE MECHANISM / TWO THINGS THAT ARE EASY TO CONFUSE
Reordering a memory is not the same as changing its address.
First, I tested where evidence appears in a long history (FAR, MIDDLE, RECENT). In this separate downstream test, I held the represented memory fixed and tested whether its serialized key-position IDs mattered to the action.
SCHEMATIC U / V / W
REPRESENTED MEMORY / SAME A, B, C
Aposition 1
Bposition 2
Cposition 3
↓ MEMORY ATTENTION USING POSITION IDs
PREDICTED ACTIONReference action
Original represented-memory order and original position IDs.
WHY THE COMPARISON MATTERS
U matches the reference. For explanatory purposes only; the paper's measured actions are shown in the saved-results figure below.
REAL RESULT
With matched floating-point reduction order, transporting each memory unit’s original positional identity (W) recovered the reference action bitwise across 27 fixed primary FrameSamp episodes and 3 fresh process runs (81 checks). Reassigning positions (V) displaced the action in all 81 corresponding checks. The initial ordinary-execution diagnostic recovered only 1/3 selected units, prompting the numerical control.
TRAINED-MODEL RUNTIME INSTRUMENTATION432 / 512
Memory-key position IDs changed. Pre-RoPE keys and initial query tensors stayed fixed. The final action predictions differed.
Each square represents one token position. Blue = changed; outline = unchanged.
03 / WHAT THE RESULTS SAY
The effect was measurable. Not universal.
In 27 experimental episodes evaluated with three frozen seeds, the prespecified FAR-alignment intervention reduced divergence between action predictions on average. A lower mean absolute error (MAE) here means the two action predictions became closer—not that more robotic tasks were completed.
AVERAGE ACTION-DIVERGENCE REDUCTION / FAR ALIGNMENT+0.002948MAE units, mean reduction
95% CONFIDENCE INTERVAL+0.001999 to +0.004049
The interval is positive for this planned comparison. Do not read this as a percentage gain or a task-success improvement.
BEYOND A SIMPLE REORDERING CONTROL
+0.001300
FAR vs common shuffled-position control 95% CI +0.000663 to +0.001917
+0.002089
FAR vs mismatched shuffled-position control 95% CI +0.001377 to +0.002835
Positive differences favor the FAR alignment relative to these controls. The bars scale only these two reported comparison values.
AN IMPORTANT COMPLICATION / TASK DEPENDENCENot every task improved.
↓
VideoUnmask
Strong reduction in action divergence.
POSITIVE↕
InsertPeg
Mixed but generally positive effects.
MIXED↑
VideoPlaceOrder
Divergence worsened on average.
NEGATIVE
Middle alignment was slightly better than FAR descriptively. These are qualitative task-level summaries; the handoff does not supply per-task numerical effect sizes, so no values are fabricated.
FORMAL / TASK-LEVEL EFFECTS
The average hides three different stories.
Positive numbers mean the tested FAR alignment reduced prediction divergence. Negative numbers mean divergence increased. These are changes in action MAE, not percentages or success rates.
MORE DIVERGENCE0 / NO CHANGELESS DIVERGENCE
VideoUnmask
+0.006965
InsertPeg
+0.002913
VideoPlaceOrder
−0.001035
Source: supplied MEMTRACE research-site results. Zero is the center line; bar lengths reflect the reported effect magnitudes on a symmetric ±0.008 MAE scale. Task effects are descriptive across the studied cohort.
VERIFICATION
4,050hash-verified action files
1,080numerical/cache checks
81 / 81formal evaluations completed
THE ORIGINAL FIGURE / SAVED MODEL EVIDENCE
Look at the actual result.
This is a figure from your supplied research-site ZIP—not a visualization generated for this portfolio. It includes a real task frame, the intervention definition, a saved predicted-action trace for InsertPeg episode 22, and the overall cohort contrast.
Actual research figure: one illustrative episode can improve on one temporal contrast and worsen on another; the cohort-average FAR alignment result remains positive. Do not interpret action closeness as task success.
04 / THE REAL TASK TEST
Different prediction. Same success rate.
An action difference is not automatically a useful change. I implemented a conservative age-aware position rule in the actual WebSocket inference path and tested it with simulator feedback—not just saved model outputs.
HOW THE INTERVENTION WAS DEPLOYED
Recent memories stay put.
The rule preserved native positions for the 16 most recent retained frames and remapped older frames. It was tested over 4,099 history lengths before robot rollouts.
100%activation over 4,068 full-memory histories
178.86 /512mean changed tokens in full histories
192 /512IDs changed in matched trained-model probe
0.0004043identity/intervention action MAE, test input
The baseline predicted robot actions without any position-ID override.
293 / 293applicable position interventions activated
0paired task rescues
0paired task regressions
THE CORRECT CONCLUSION
The intervention was operational, but it did not improve closed-loop task success.
All three arms succeeded on the same 7 of 15 matched tasks. The action-level mechanism was real, and the deployed position rule did change internal IDs, but the final success outcomes did not improve for that mapping.
What happened when I tried a more aggressive intervention? development diagnostic ↗
In a separate development-only VideoUnmask test, a stronger demonstration-versus-online split altered 432 key-position IDs. The executed-action prefix changed by 0.003393 MAE (maximum absolute difference 0.015011).
IDENTITY CONTROLFailed at step 119
AGGRESSIVE SPLITFailed at step 105
The robot followed a different trajectory but made an earlier incorrect choice. The test reached up to 15 position collisions. This was diagnostic evidence of sensitivity, not formal evidence of improved performance.
REAL MATCHED OUTCOMES / 15 EPISODES
The successes, failures, and timeouts line up.
The native policy, the identity-hook control, and the position intervention returned the same outcome for every one of these matched episodes.
7 / 15each arm succeeded
Inspect all 15 paired episodes +
Outcome labels and episode identifiers are transcribed from the supplied research site's local source, not inferred from video footage. Repeated arms are matched comparisons, not separate task sets.
05 / ROBUSTNESS
Was this peculiar to one memory rule?
I also evaluated a TokenDrop memory variant. Positional sensitivity appeared again across 27 episodes and three clean-process replications. It changes the upstream way memories are selected, while sharing the downstream attention interface.
PRIMARY MEMORY RULE
FrameSamp
Retains groups of historical visual frames.
SHARED DOWNSTREAM ATTENTION ↔
EXTENSION
TokenDrop
Uses a different sparse-token memory selection.
Scope matters: this is replication within the tested model family, not proof that every robot architecture behaves this way. It does not establish that downstream position assignments fully explain all long-history memory interference.
THE EXPERIMENT, SEEN IN MOTION
Watch the research unfold.
This second video walks through the same scientific distinction at a slower pace: remembered evidence, positional interventions, predicted actions, and the gap between action-level causality and task completion.
01:05 / ORIGINAL PROJECT-PRODUCED VIDEO
01 / OBSERVATION
A memory-dependent task
The robot must use what happened earlier rather than just what its camera sees now. The demonstration frame makes the question concrete.
02 / CAUSAL INTERVENTION
Changing only positional identity
The trained JAX model's unrotated memory keys and initial queries remain fixed in the runtime probe. The changed memory-key position IDs alter RoPE rotations and predicted actions.
03 / SEPARATE UTILITY TEST
Does that matter to the outcome?
A conservative online mapping activated on 293/293 applicable calls, but did not produce a paired task-success rescue or regression in the 45-rollout evaluation.
Press play to watch either original project video. The videos explain the experiment; they are not substitutes for the formal cohort, stored action arrays, or paired outcome logs. Where movement is schematic, it should not be interpreted as an exact trajectory from the experiment.
THE IDEA I TOOK AWAY
Fixing an internal mechanism is not the same as improving the task.
01 / MECHANISM
Can position IDs change an action?
Yes — demonstrated.
Controlled, verified effects in the tested policy.
02 / DEPLOYMENT
Can we change them during online inference?
Yes — implemented.
The intervention activated on all 293 applicable calls.
03 / UTILITY
Did the tested mapping make tasks succeed more often?
No improvement observed.
All three rollout arms completed 7 of 15 tasks.
06 / WHAT I DID
From question to experiment. And then to the robot.
I independently designed and executed the causal-intervention study, rebuilt the policy and simulator environments, implemented downstream position hooks and identity controls, instrumented the trained JAX attention interface, ran multi-seed GPU experiments and closed-loop evaluations, performed statistical analysis, diagnosed failure trajectories, and built hash-verified evidence archives.
I did not train the underlying VLA checkpoint. My contribution was the experimental design, intervention, integration, runtime verification, evaluation, and reproducibility infrastructure.
Frozen checkpoint and seeds, identity and shuffle controls, deterministic replay, saved runtime tensors, and audited action artifacts provide a traceable record of what changed—and what stayed the same.
01 Frozen checkpoint & evaluation seeds
02 Identity and shuffled-position controls
03 Trained-model runtime tensor checks
04 Hash-verified actions & audit receipts
05 Paired outcomes & failure analysis
WHAT A SCIENTIFICALLY HONEST PAGE MUST ALSO SHOW
The controls aren't an appendix to the story. They're the reason to believe it.
How do we know the intervention hit the right place?
The runtime probe directly read the trained checkpoint's attention interface. The initial queries and unrotated memory keys were unchanged, while 432 of 512 position IDs changed in the primary mechanism probe, modifying RoPE-rotated keys and predicted actions. A separate matched online test input changed 192 IDs; those two counts correspond to different tests.
Why are there 81 checks but 27 episodes?
There were 27 fixed primary episodes. The same episode cohort was evaluated under three frozen seeds or fresh process runs in the respective tests. Repeated checks support reproducibility; they are not 81 independent robot episodes.
Why did the first exact-recovery test fail?
Strict U/W equality held for only 1 of 3 selected units during the initial ordinary-execution diagnostic. Numerical floating-point reduction order mattered. The investigators then froze a matched-reduction-order control for the prospective full-cohort test, under which W recovered U exactly. The original failure remains part of the scientific record.
Did this establish a universal fix?
No. The effect is task-dependent; the conservative online intervention did not improve task success, and the TokenDrop replication shares the same downstream architecture family. The results do not establish generalization to independent VLA architectures or universal behavior repair.
MANUSCRIPT / RESEARCH RECORD
Beyond Retention: Causal Localization of Positional Interference
The complete manuscript is available as a PDF alongside the research figures, videos, and bounded findings.
04 / PROJECT ARCHIVE · SIX ENTRIESWHAT I BUILT · WHAT I LEARNED
SOFTWARE, EXPERIMENTS, AND DECISION-MAKING
A few things I've worked through.
An expanding collection of research experiments, engineering systems and collaborative work. Each case study explains the problem, the implementation, the evidence and the limits—without assuming that you already know the field.
Can an AI learn to negotiate and plan when it cannot see what the other players have?
We used the strategy game Settlers of Catan to explore decision-making under uncertainty: estimating opponents' resources, selecting trades, and deciding which investments would pay off later.
+12.2 ppPaired improvement over PPO + offer chooser 95% CI: +9.7 to +14.6 pp
2,000Independent target evaluation boards vs three Greedy Trader (AlphaBeta) opponents
01 / THE PROBLEM
A game of decisions. A problem of uncertainty.
In Catan, four players gather resources, trade with each other and build roads, settlements and cities to earn victory points. Everyone sees the board, but opponents' resource cards are private.
That makes even a simple choice difficult: should you trade now, save for a better building, or choose a plan that only works if the other player accepts?
The opponent's hand is hidden.
The agent has to infer likely resources from what it can observe—previous trades, production and the public game state. It does not get to inspect another player's private cards.
02 / HOW IT WORKS
One agent. Several kinds of intelligence.
The system combines information about the current game, estimates of other players' hands, a learned policy and special decision routines for trading and building. Click each stage to see why it exists.
What is happening in the game?
The agent reads legal actions, resources, the board and other publicly visible information. This is its starting point for every decision.
Conceptual diagram: PPO routes decisions; trading uses an offer chooser, building uses a learned evaluator, and other legal moves remain policy-selected. AlphaBeta was a teacher and evaluation opponent—not the controller of the final agent.
03 / THE EXPERIMENTS
We didn't get there in one attempt.
The first policies struggled. Each experiment exposed a weakness, which guided the next. Select a stage to follow the progression.
Learning from scratch
PPO initially struggled against strong opponents: the reward for winning is rare, and a decision that looks good now may not help until many turns later. We needed a stronger starting signal.
04 / MEASURED RESULTS
Better planning. Better results.
The crucial improvement came from evaluating long-term building decisions, not simply increasing the number of input features. These two charts use different evaluation sets and must not be read as interchangeable results.
Final agent: 28.3% (95% CI 26.4–30.4%). Paired gain over the PPO comparison: +12.2 percentage points (95% CI +9.7 to +14.6 pp). The final agent was comparable to, not demonstrably better than, the AlphaBeta reference. Thin markers show 25% four-player fair share.
Checkpoint selection
Different set · 400 gate boards · Not the final test
Round 0
14.2%
Round 1
28.2%
Round 2 · selected
32.5%
Round 3
32.0%
0%10%20%30%40%
Round 2 was selected because Round 3 did not improve on it. The 32.5% value is a selection result on 400 boards, not the 28.3% final performance from the independent 2,000-board test.
05 / MY CONTRIBUTION
A team project. Specific work I did.
This research was completed collaboratively at UTS. I contributed experiments and evaluation; I am not claiming to have individually created the game environment, every model component, or the entire training architecture.
Imitation learning
I ran teacher-data generation and planning-feature behaviour-cloning experiments, trained and evaluated an imitation policy, and compared its performance across opponent configurations. The extra planning features alone did not solve the strategic weakness.
Expert iteration
I executed the Task 13 v2 experimental workflow on AWS SageMaker, including three expert-iteration rounds, training/evaluation monitoring, checkpoint-selection checks, held-out analysis, artifact recovery and a pull request contributing evidence to the shared repository.
What the result means: We achieved 28.3% on the independent final test, above the 25% equal-share reference, and a +12.2 percentage-point paired gain over the matched PPO baseline. It does not show superiority to AlphaBeta or diverse human negotiators.
06 / UNDER THE HOOD
The tools behind the decisions.
Open any term for a plain-language definition and why it mattered.
Behaviour cloning
Learning from demonstrations made by a stronger rule-based player. This gave the agent a workable starting strategy when rewards for winning were too sparse.
Maskable PPO
Proximal Policy Optimisation is reinforcement learning that updates a policy from experience. Masking excludes actions that violate the game's rules.
Opponent belief estimation
A best guess about cards an opponent may hold, constructed from publicly observable events—not a way to secretly read their hand.
Offer chooser
A specialised trading component that weighs how likely a trade is to be accepted and whether the resource exchange supports future plans.
Monte Carlo play-outs
Simulated possible future games used to estimate whether a prospective building action is strategically valuable beyond its immediate effect.
Expert iteration
A loop of collecting better decision examples, training a learned build-value evaluator and checking which round actually performs best.
Catanatron
The Python Catan environment and game-rule infrastructure used by the research system.
Held-out evaluation
Testing on unseen game boards keeps checkpoint selection from being confused with independent final performance.
Improving the long-term building decisions mattered more than adding features to imitation learning. More training rounds were not automatically better, and independent evaluation was essential.
LEARNED
Good decisions take foresight.
A specialised evaluator for future build value helped where a reactive policy struggled.
LIMITED
Not the whole of negotiation.
The tests primarily used rule-based opponents, simplified trading, and approximate simulation of future outcomes.
NEXT
Test new opponents.
Future work could use flexible offers, adaptive beliefs, better simulation efficiency and unfamiliar or human players.
08 / A DECISION, EXPLAINED
Imagine you need a settlement, but you are one card short.
This is a teaching example rather than a logged game turn. It illustrates why the agent needs more than a single move-scoring network: what looks best now depends on what other players might hold and what will be valuable several turns later.
01 / Hidden state
What can the opponents trade?
The agent sees public actions and history but not every opponent’s resource cards. A belief estimate represents plausible hidden hands, not certain knowledge.
02 / Negotiation
Is this offer worth making?
The offer chooser weighs whether a trade is likely to be accepted against the strategic value of the resources exchanged.
03 / Future value
Should it build or wait?
A learned build-value evaluator compares candidate constructions using simulated future outcomes instead of only immediate points.
A SIMPLE DECISION CHAIN
Observe the board → estimate hidden information → score trade candidates → consider building opportunities → take one legal action. The actual system has additional legal-action routing and policy logic.
09 / WHY THE EVALUATION MATTERS
A promising checkpoint is not the final answer.
During training, the team repeatedly compared candidate models on a smaller set of boards. That helped select a checkpoint, but it also creates a risk: the selected model may be unusually well suited to that smaller set.
01
400 checkpoint-selection boards
Four expert-iteration rounds were compared: 14.2%, 28.2%, 32.5%, then 32.0%. Round 2 was selected. These boards informed model selection.
02
2,000 previously unseen boards
The chosen final agent was then evaluated independently against three Greedy Trader (AlphaBeta) opponents. It won 28.3% (95% CI 26.4–30.4%).
03
A paired baseline on the same boards
The PPO policy with the same offer chooser, but without the final build evaluator, won 16.2%. The paired gain was +12.2 percentage points (95% CI +9.7 to +14.6).
04
A fair reference
An AlphaBeta reference using the same offer chooser won 28.6%. The final agent was statistically comparable, not demonstrably superior, to that reference.
WHAT I WANT A VISITOR TO NOTICE
It is more informative to explain what improved—and under which evaluation—than to display the largest win rate without context.
10 / ENGINEERING & ATTRIBUTION
What I worked on, within the larger team.
This was a collaborative UTS project. My directly documented work centers on imitation-learning and expert-iteration experiments, model selection and evaluation artifacts—not sole authorship of the complete environment or policy stack.
01 / Imitation experiments
Testing what the teacher could transfer
I generated teacher data, trained planning-aware behaviour-cloning variants and assessed their performance against opponent configurations. Adding planning features alone did not reliably resolve long-horizon decisions.
02 / Expert iteration
Running the build-value experiments
I executed three iterative evaluation/training rounds using AWS SageMaker, inspected candidate-build rankings and checked which checkpoint passed the selection gate.
03 / Reproducibility
Making the result inspectable
I organized checkpoints, logs, evaluation summaries and figures and contributed evidence to the team repository through a pull request.
Technical terms, in plain Englishread the detail
Behaviour cloning learns from demonstrations. Maskable PPO improves a policy using experience while avoiding illegal game moves. Monte Carlo play-outs simulate plausible futures. Expert iteration uses those simulated outcomes to build better training targets and evaluate improved decision rules.
LIMITS
The opponents were mainly rule-based; the trading protocol was constrained; future simulation relied on approximations; and these results do not establish success against human negotiators.
When retrieval finds a document, how do we know whether the match is meaningful—or whether the query is difficult enough that a downstream AI should be cautious? RobustVDB adds explanations and reliability diagnostics around FAISS dense search.
Each retrieved result can include its similarity score, matched query words and a heuristic confidence grade. At the query level, the tool checks whether the top result is clearly separated from nearby candidates.
EXPLORE A SEARCH DIAGNOSTIC ILLUSTRATIVE, NOT LIVE EMBEDDING INFERENCE
Result A0.90
Result B0.48
Result C0.42
The top hit is clearly separated from the alternatives. A margin-based warning would be less likely here.
02 / BENCHMARK
The hard queries were harder.
On the SciFact benchmark, the tested clarity threshold flagged 20% of queries. Within that flagged group, 51.7% had Recall@5 below 0.5; the unflagged group had 18.3%. On FiQA, the corresponding rates were 72.5% flagged versus 46.0% unflagged.
SciFact
flagged · 51.7%
not flagged · 18.3%
FiQA
flagged · 72.5%
not flagged · 46.0%
These percentages describe the observed rate of poor retrieval in each group, not the model's accuracy or an improvement caused by the detector.
03 / LIMITATIONS
A useful warning, not a calibrated probability.
The confidence labels are hand-designed heuristics. Clarity thresholds were selected retrospectively on two datasets, using one embedding model; this is not a validated zero-shot confidence estimate or proof of reliability in production.
A search engine can sound certain and still miss the evidence.
Imagine a research assistant receives a medical or financial question, pulls five passages, then asks an LLM to answer. If the passages are off-topic, the model may produce a fluent response grounded in the wrong material. RobustVDB adds checks around the retrieval stage, before answer generation.
01
Represent the question
A sentence-transformer converts a question into an embedding: a vector that encodes aspects of semantic similarity.
02
Find nearby documents
FAISS performs similarity search against stored passage embeddings, returning the most similar candidates.
03
Explain the match
For each result, the wrapper calculates matched query terms, lexical overlap and a heuristic confidence label.
04
Ask if the query itself is difficult
A local top-result margin helps identify queries whose highest-ranked result is not clearly separated from alternatives.
IMPORTANT DISTINCTION
A similarity score is not a probability that a document is correct. A lexical overlap label explains part of a match; it is not a substitute for relevance judgments.
05 / THE INVESTIGATION
The first hard-query warning failed a domain transfer test.
The development story matters because the final detector was not simply chosen by intuition. The initial approach looked at the average distance to a query’s nearest documents. It appeared plausible on SciFact, then gave the wrong directional signal on FiQA.
01 / First approach
Mean-distance heuristic
Flag queries far from nearby documents. On FiQA, the flagged set actually contained a slightly smaller share of low-recall queries than the unflagged set (56.5% versus 59.6%).
02 / Revised signal
Clarity / neighborhood margin
Compare the top result’s similarity with the next local results. When the top hit is barely ahead, the query may be ambiguous and deserve inspection.
03 / Evaluation
Same underlying retrieval
All compared methods used the same dense embeddings and FAISS index. The wrapper identified risky queries; it did not make the base retriever more accurate.
How to read the clarity scoreread the detail
For a top-k neighborhood, the signal uses the gap between the leading similarity and the mean similarity of the remaining retrieved candidates. A small separation suggests the first hit is not a decisive winner. The repository tests its warning rule against query relevance judgments. The threshold was chosen retrospectively from evaluation data; a new dataset could require new calibration.
06 / EVIDENCE IN CONTEXT
The warning concentrated failures, not repaired answers.
The repository evaluates on two BEIR datasets using one fixed embedding model (all-MiniLM-L6-v2). The results below describe conditional failure rates among flagged and unflagged queries; they are not precision, end-to-end RAG accuracy or a percentage improvement.
01
SciFact
The clarity rule flagged 20% of queries. Among them, 51.7% had Recall@5 below 0.5; the remaining group had 18.3%. The overall dense retrieval R@5 remained 0.7413.
02
FiQA
The clarity rule flagged 50% of queries. The low-recall share was 72.5% in flagged questions and 46.0% in the rest. Overall dense retrieval R@5 remained 0.3671.
03
The missed piece
These are retrospective results with dataset-specific thresholds. Broader datasets, independent threshold selection and stronger learned query-performance predictors still need evaluation.
WHY THIS IS USEFUL
A warning can tell a larger RAG application when to retrieve more evidence, ask for clarification or route a query for review. Those downstream policies are possible uses, not validated results from this benchmark.
07 / IMPLEMENTATION
What is actually inside the Python project.
The archive includes a FAISS-based core, embedding pipeline, a search wrapper that returns explanations, robustness metrics, a configurable hard-query mode, a FastAPI interface, and BEIR evaluation scripts. It demonstrates an inspectable research prototype rather than a large distributed vector database.
01 / Metric
Robustness-δ@K
For a labeled query set, compute the fraction of queries whose Recall@K reaches a chosen threshold δ. This shows how consistently a retriever meets an explicit relevance bar.
02 / Per-hit explanation
Matched terms + overlap
These transparent lexical signals let a developer inspect why a dense result appears relevant, while recognizing that lexical overlap can miss paraphrases.
03 / Operational output
Warning alongside results
Clients can receive nearest neighbors and a query-level warning in one response, without changing the embedding model or the FAISS ranking.
Why the measured gains need careful languageread the detail
The benchmark’s flagged and unflagged sets were defined using thresholds selected on the tested datasets. This makes the results useful as an exploratory signal, but they do not establish zero-shot generalization. Also, ranking metrics such as R@5 did not improve merely because RobustVDB attached diagnostics to a result.
The wrong answer might have started three lessons ago.
Built for an education hackathon, CausalPath explores a different kind of AI tutor: rather than immediately giving more practice, it traces a student’s mistake through a curriculum prerequisite graph and asks a targeted question before choosing a response.
7agent stages
57curriculum graph nodes
3distinct learning-gap types
01 / WHY ANOTHER TUTOR?
Similar mistakes can have different causes.
A student might forget a basic rule, believe an incorrect rule, or understand it but struggle to apply it. Those problems call for different teaching responses.
CHOOSE A POSSIBLE ROOT CAUSE FRONT-END TEACHING EXAMPLE · NOT A LIVE LLM DIAGNOSIS
POSSIBLE ROOT CAUSE
A missing prerequisite
The learner cannot recall how fractions represent parts of a whole.
DIFFERENTIATED RESPONSE
Start from a simple fraction example before returning to the original exercise.
The code contains a seven-node LangGraph workflow, ChromaDB semantic mapping, NetworkX prerequisite traversal, a two-step student interaction, FastAPI routes, and a React student/teacher interface. The teacher side aggregates repeated gaps for class-level alerts.
LangGraphFastAPIChromaDBNetworkXReactLLM APIs
03 / WHAT'S VERIFIED
Implemented architecture, not proven educational impact.
The repository includes agent-node tests, API tests, a sample six-student demonstration and a roadmap recording completed hackathon milestones. The materials do not demonstrate a controlled study of real student learning outcomes.
Source archive provided; its declared GitHub repository is not publicly accessible at the time of review.
04 / A STUDENT STORY
One wrong answer can conceal three different problems.
Suppose a student confidently writes that 1/2 + 1/3 = 2/5. Simply generating ten more fraction problems might not help. CausalPath is designed to ask whether the student forgot a prerequisite, holds an incorrect mental model, or cannot transfer a correct rule to a new context.
01
Find the topic
A free-text question or answer is mapped to a curriculum concept through semantic search.
02
Walk backward
The curriculum graph connects each topic to knowledge that should come before it. The agent can inspect prerequisites up to three hops upstream.
03
Locate a candidate root gap
The workflow compares confidence signals to identify a weaker ancestor rather than stopping at the visible mistake.
04
Check with the learner
A targeted Socratic question tests the hypothesis. The follow-up answer helps classify the gap.
05
Respond differently
Re-teach a basic concept, present a counterexample or provide a bridging example, depending on the classified gap.
A CLARIFICATION
The fraction example above is a teaching illustration. The actual LLM diagnosis depends on the input, model, graph, retrieval and session state; it is not guaranteed to be correct.
05 / UNDER THE HOOD
A seven-node agent, not one long prompt.
The codebase separates diagnosis into named stages so each transformation can be inspected and tested. This is what makes the architecture more interesting than merely asking a chatbot to “act like a tutor.”
01 / Curriculum
57 nodes, 74 dependency edges
NESA mathematics concepts are stored as a directed prerequisite graph. NetworkX graph traversal supports explicit explanations of which earlier skill a task relies on.
02 / Retrieval
ChromaDB mapping
Embeddings map student language onto candidate curriculum nodes, reducing dependence on exact terminology.
03 / Orchestration
LangGraph steps
Separate nodes perform assessment, prerequisite traversal, gap selection, Socratic probing, classification, differentiated response and state/alert updates.
04 / Interface
FastAPI + React
Two-step student requests, streaming progress events and a teacher-facing view expose the reasoning path instead of hiding it in a single answer.
What happens across the two student turns?read the detail
Step 1: the student submits an answer; the agent maps the concept, assesses it, searches upstream and generates a targeted probe. Step 2: the student replies to the probe; the agent classifies the issue and drafts a differentiated teaching response. The API tracks sessions in memory, with expiration and cleanup rules, and the teacher view can display aggregated root-gap signals.
06 / FROM ONE LEARNER TO A CLASSROOM
The teacher view changes the audience.
A teacher is not only interested in one answer. Repeated root-gap patterns can suggest that an earlier prerequisite needs attention across a class. The prototype includes a class-level alert path when multiple students are mapped to the same weak concept.
01
Observe individual reasoning
The student receives a response tied to a proposed root cause, not just a correctness judgment.
02
Aggregate a repeated issue
The workflow can increment a class gap counter. The documented prototype uses a threshold of three students for a shared-root-gap alert.
03
Support an educator’s judgment
The dashboard exposes the chain and suggestions so a teacher can review the diagnosis. It is a decision aid, not a validated replacement for an educator.
HOW FAR THE EVIDENCE GOES
The archive contains source modules, mocked agent tests, a local demo and scripted backup cases. It does not provide a controlled study proving learning gains, diagnostic accuracy in real classrooms or curriculum-wide coverage.
07 / ENGINEERING LESSON
Build a system that can explain why it asked the next question.
This project demonstrates graph-guided agent design, two-turn state management, semantic concept mapping and inspectable API stages. The current graph and examples are bounded; model-generated classifications are fallible and should be treated as hypotheses.
01 / Transparency
Visible causal chain
The graph makes each proposed prerequisite relationship inspectable rather than just returning a vague “you should practice more.”
02 / Failure handling
Demo fallback
A scripted offline demonstration path makes it possible to show the concept even when LLM limits or API failures interrupt a live demo; this is not equivalent to live inference.
03 / Next question
Does it improve outcomes?
A convincing next experiment would compare the system with conventional tutoring on unseen errors, using human-reviewed root-gap labels and actual learning outcomes.
An LLM application can repeat nearly the same lengthy instructions but fail to reuse prior computation because of one changing field at the start. I built a trace auditor to identify that field before it becomes a silent reliability and cost problem.
2,816cached tokens · stable case
0cached tokens · broken case
2,816cached tokens · repaired case
01 / THE PROBLEM
A tiny change. An expensive consequence.
Large language models can reuse the beginning of previous requests if it remains identical. Insert a changing request ID before the stable instructions, and much of the prefix may no longer match.
TRY THE PROMPT-CACHE EXAMPLE CONTROLLED LIVE VALIDATION · FROM REPOSITORY
ILLUSTRATIVE PROMPT ORDER
Stable instructionsReusable contextRequest metadata last
OBSERVED CACHED TOKENS
2,816
The prompt retains its shared prefix, so observed cache reuse is preserved.
Prompt blocks are illustrative. Cached-token counts are from one controlled validation reported in the project README, not a general performance benchmark.
CacheSentry parses OpenAI-style, LiteLLM and OpenTelemetry-style traces; estimates stable prefixes and block-aligned reusable tokens; flags volatile UUIDs, timestamps and request IDs; compares against baselines; and can fail CI if cacheability regresses.
Runtime cache hits depend on provider policy, TTL, eviction, routing, isolation and cache state. The live example validates observed cached-token changes, not universal cost or latency savings across deployments.
A language model can reuse computation for a shared beginning of a request. That reusable beginning is called a prefix. If the first lines contain a fresh UUID, timestamp or shuffled tool definition on every call, two logically similar requests may look different token by token.
01
Before the change
A stable system instruction and tool schema come first. A second request has a long identical prefix and is eligible for reuse.
02
The regression
An application update inserts a fresh request ID near the front. The first token difference occurs before most reusable material.
03
The diagnosis
CacheSentry renders the prompt, finds the first divergent token, maps the difference to a field when the renderer supports it, and estimates how many cache blocks were lost.
04
The repair
Moving dynamic metadata after stable instructions can restore prefix stability. This changes prompt organization, not the underlying model.
05 / ANATOMY OF THE AUDITOR
A trace becomes a reproducible engineering report.
The repository implements an inspection pipeline rather than a new LLM serving engine. It looks at requests produced by an existing application and reports where their structure becomes unstable.
01 / Inputs
Normalize several trace formats
Adapters handle OpenAI-style traces, LiteLLM logs and OpenTelemetry GenAI records. Sanitization is important because production traces can contain sensitive content.
02 / Comparison
Render and compare tokens
A deterministic renderer and selected tokenizer turn requests into comparable token sequences. The longest common prefix pinpoints where reuse starts to break.
03 / Attribution
Name the likely culprit
The analyzer looks for volatile request IDs, timestamps, UUIDs, randomized values and schema drift. Simple rendering can associate a changed token with a prompt field.
04 / Outputs
Make the finding actionable
Markdown/JSON reports, severity policies, baseline diffs, GitHub annotations and SARIF output let developers review the change in a pull request.
What is a cached token, and what is the auditor estimating?read the detail
Many LLM servers can avoid recomputing a previously processed prefix. CacheSentry estimates structural eligibility for reuse by comparing rendered prompts and token boundaries. Actual reuse also depends on provider policy, model, routing, available cache entries, block size and expiration. Its runtime validations can compare estimates against observed cache signals, but an offline estimate is not a guarantee of a backend cache hit.
06 / VALIDATION & TRADEOFFS
How the project was tested—and what the result actually says.
The repository contains unit tests, generated traces, baseline/diff checks, local backend replay work, and an opt-in live provider-signal validation. A controlled live OpenAI run observed 2,816 cached tokens in a stable version, zero when a UUID was moved early, then 2,816 again after moving it late.
01
Structural tests
Exercise rendering, token-prefix comparisons, culprit-field detection, input adapters, severity rules, CI output and redaction.
02
Controlled validation
Hold the substantive prompt stable; change the placement of one volatile field; compare the provider-reported cache signal across the three variants.
03
Operational boundary
The tool does not automatically rewrite an application’s prompts. A code review or developer decision is still needed before deploying a fix.
THE RIGHT CONCLUSION
This shows that prompt arrangement can affect observed reuse in the tested setting. It does not prove universal latency savings, cost savings, or accuracy improvements.
07 / DESIGN DECISIONS
Why I treated cacheability as a reliability issue.
The interesting engineering choice is to catch a failure at the application/request boundary, where changing templates can silently defeat an otherwise correct serving backend.
01 / CI first
Catch a regression before release
Store a known-good baseline; compare a pull request’s traces; optionally fail a build when the stable-prefix ratio drops beyond policy.
02 / Privacy
Report structure, not secrets
The project aims to exclude raw prompts, authorization headers, secret values and raw cache keys from generated findings; users should still supply sanitized traces.
03 / Scope
Complement the serving engine
CacheSentry does not implement a KV store, scheduler, attention kernel or universal cache controller. It measures a separate upstream source of cache failure.
A developer-facing workflowread the detail
audit examines traces and explains likely cache breakers. baseline create records expected behavior. diff compares new requests with the baseline and can fail a configured CI policy. SARIF results can surface findings in code-scanning tools. The LiteLLM callback is a separate runtime metadata observer, not a transparent prompt fixer.
A circuit is easier to understand when every gate is a decision.
A small quantum-computing game built with Streamlit and Qiskit. The player moves through procedurally generated sectors, applies gates from a limited inventory and tries to reach a data core while managing noise and mission constraints.
4quantum scenario families
2execution modes described
1game-based learning prototype
01 / THE EXPERIENCE
Quantum gates as tools, not just symbols.
Players manipulate circuits with Hadamard, Pauli-X, Phase-Z and CNOT operations. A scanner exposes probabilities and entanglement signals, while inventory, threats, procedural missions and upgrades add tradeoffs.
EXPLORE THE MISSIONS CONCEPT GUIDE · DOES NOT EXECUTE QUANTUM CIRCUITS
WHAT THE PLAYER EXPLORES
Entanglement
Correlated qubits can behave like parts of a linked system.
GAME MECHANIC
Construct and uncompute a Bell-state circuit to isolate the extraction channel.
The repository contains the Streamlit view layer, Qiskit-based circuit engine, a roguelike run manager, upgrade shop and context-sensitive hints. The README describes optional Quokka Puck hardware execution; external endpoint availability is not guaranteed.
Source declares a GitHub URL, but it was unavailable during review; no public demo deployment is confirmed.
03 / THE GAME LOOP
Learning a circuit by risking a mission.
Instead of beginning with a lecture on complex amplitudes, the game gives the player a mission. Each move changes the quantum circuit, but actions cost resources and increase threat. Success means navigating the challenge rather than simply memorizing gate definitions.
01
Choose a seed and difficulty
The run manager creates a reproducible set of sectors and mission modifiers.
02
Inspect the state
A wavefunction scanner displays probabilities and entanglement information from a local simulated quantum state.
03
Spend limited gates
The player applies H, X, Z and CNOT operations from an inventory while monitoring decoherence/noise and the threat meter.
04
Reach the data core
The final extraction pathway serializes the circuit for a Quokka Puck API attempt when hardware is available.
05
Carry progression forward
Earned credits can fund run-to-run upgrades in the roguelike shop.
GAMEPLAY ≠ HARDWARE VALIDATION
The archived code includes a local statevector engine and a hardware-submission path. A hardware endpoint being configured does not guarantee a remote execution was successful on a given attempt.
04 / FOUR PUZZLE FAMILIES
What the quantum concepts mean in ordinary language.
Each scenario centers on a different property of quantum computation. The clickable mission selector above shows how those concepts appear in the game; these descriptions explain what a visitor is actually learning.
01 / Bell state
Two qubits become correlated
A Hadamard gate creates superposition; CNOT can entangle a pair. “Uncomputing” reverses part of the circuit to isolate a useful outcome.
02 / GHZ state
Correlation extends across several qubits
CNOT operations can entangle more than two qubits. Reversing the preparation sequence is part of the challenge.
03 / Grover
Search by reshaping probabilities
Amplitude amplification increases the probability of a marked outcome, but too many iterations can overshoot the optimal point.
04 / Teleportation
Move an unknown state, not a particle
Pre-shared entanglement and classical communication allow quantum state transfer in the protocol; the game uses this as an extraction puzzle.
05 / SOFTWARE ARCHITECTURE
An educational game with a real circuit engine.
The interface is built with Streamlit, with session state controlling screens and inventory. Qiskit handles circuit construction and statevector calculations. A separate roguelike layer manages procedural missions, modifiers, credits and upgrades.
01 / Frontend
Streamlit views
Reactive dashboard panels expose the circuit, scanner, threat indicator and context-sensitive help.
02 / Model
Qiskit circuit state
Gate operations change a circuit representation; statevector-based inspection gives immediate feedback before final submission.
03 / Gameplay
Run manager + hint system
Difficulty settings, run seeds and mission modifiers create constraints that shape how a player uses gates.
04 / Optional hardware
Quokka Puck integration
The controller includes a QASM submission path and endpoint fallback logic; remote availability is an external dependency.
What does the code not yet guarantee?read the detail
The README lists no stable deployed application URL. State lives in Streamlit memory, so a page reload starts a new session. Hardware endpoints may be unavailable, and the code handles that as an execution error rather than promising a successful run. The present portfolio mini-demo is conceptual and does not execute Qiskit.
06 / WHY I INCLUDED IT
An unusual way to make abstract computation tangible.
Quantum algorithms are often taught as formal circuit diagrams with little immediate feedback. This project explores the opposite direction: present a constrained objective first, then let a person discover why circuit composition, measurement and noise matter.
WHAT THE PROJECT DEMONSTRATES
Application architecture, educational interaction design, quantum-circuit manipulation and integration with an external computation API. It is not evidence that a player learns faster than with conventional teaching, nor that a live cloud deployment is currently available.
CURRENTLY A WORK IN PROGRESS · foundational implementation, not a finished platform
Research Intelligence OS.
Build the trustworthy primitives before the ambitious agent.
This is a developing Python codebase for research knowledge workflows. Rather than claiming a finished automated research assistant, the current implementation starts with typed document models, deterministic vector retrieval and automated tests.
01 / THE DESIGN QUESTION
What comes before an intelligent research workflow?
Scientific synthesis eventually needs ingestion, parsing, retrieval and provenance. But reliable systems start with consistent data types, testable search behavior and clear boundaries between components.
The source implements cosine similarity and a deterministic dense-search function with typed document records and tests. The wider paper-ingestion, multi-source synthesis, agent orchestration and end-user interface described in the design documents remain future architecture, not shipped functionality.
A research assistant is only as trustworthy as its evidence trail.
Imagine asking an AI to compare several papers and explain where their findings disagree. That requires far more than generating plausible text: it needs stable document identities, repeatable retrieval, source tracking and a way to detect when evidence is missing. The current repository begins below that application layer.
01
Represent evidence explicitly
A frozen Document dataclass stores an ID, text and metadata. SearchResult pairs a ranked document with a similarity score.
02
Rank consistently
The dense_search function compares supplied vectors using cosine similarity, sorts descending, and uses document IDs to break equal-score ties deterministically.
03
Handle edge cases
Tests cover mismatched dimensions, zero vectors, empty collections, invalid result counts and stable ranking.
04
Build upward later
Ingestion, document normalization, citation provenance, graph storage and synthesis APIs remain design goals, not implemented capabilities.
STATUS · CURRENTLY A WORK IN PROGRESS
This is a deliberately small, test-oriented engineering foundation. No autonomous paper-reading agent, fully integrated RAG product or deployed literature-synthesis service is claimed.
04 / THE PART THAT RUNS TODAY
A small retrieval primitive with predictable behavior.
The code accepts precomputed document vectors and a query vector. It validates their shape, computes cosine similarity and returns the highest-ranked documents with explicit ranks. It does not generate embeddings or scrape papers by itself.
01 / Data contracts
Document and SearchResult
Immutable dataclasses reject empty document IDs and nonpositive result ranks, keeping core data objects explicit.
02 / Numerical behavior
Cosine similarity
The implementation checks dimensionality, safely returns zero for zero-norm vectors and bounds small floating-point rounding errors.
03 / Reproducibility
Stable ranking
When two documents have identical similarity, sorting by document ID makes the result order predictable.
What would a full retrieval system still need?read the detail
Document ingestion, parsing, embedding-model integration, durable indexes, source-location metadata, query orchestration and evaluation datasets. The package currently provides vector-search utilities that a future system could compose with those layers.
05 / ROADMAP WITHOUT OVERPROMISING
The distinction between code and intention.
The design documents outline a future path from ingestion to synthesis. The portfolio separates that plan from the source files that already exist.
IN CODETyped results, cosine search, deterministic ordering, offline tests
Current research_os.retrieval package and its test suite.
PLANNEDConnectors and document normalization
Read publications from multiple formats, parse metadata and establish source provenance.
PLANNEDPersistent search and evidence linking
Store representations and connect claims back to underlying material.
PLANNEDQuery, comparison and synthesis interfaces
Only after the earlier layers can be independently tested and audited.
WHY IT MATTERS
My focus here is on making every later research claim traceable to a stable source and every retrieval choice testable. That is a development direction, not a completed product result.