Writing
Notes on the methods I use, written so that a second-year student can follow them: retrieval and language models, quantum chemistry, molecular simulation, and the software in between. Every worked example was run before it was published.
- BM25, explained through this site's search box
How BM25 scores a document, term by term: saturation with k1, length normalisation with b, a never-negative IDF, and a worked example by hand.
- Drawing benzene's π orbitals from Hückel theory
How the benzene figure on the homepage is made: Hückel π orbitals, Slater 2p functions, and points sampled from the probability density, coloured by sign.
- Reading an MD trajectory: radial distribution function and mean squared displacement
How to compute g(r) and the mean squared displacement from a periodic MD trajectory, with a short numpy implementation tested on cases with known answers.
- Molecule3D: a LAMMPS workbench that runs in your browser
What Molecule3D (LAMMPS Web GUI) does, who it is for, and what a first session looks like, from a starter script to a trajectory and its RDF.
- Sycophancy in LLMs, and why we test it on court cases
What sycophancy in language models is, why legal reasoning exposes it sharply, and how the SycoLex benchmark measures it with paired, opposite prompts.
- Kohn–Sham DFT on one page
The chain of ideas behind a DFT calculation, from Born–Oppenheimer and the Hohenberg–Kohn theorems to the Kohn–Sham equations, functionals and basis sets.
- AgriIR, a configurable RAG pipeline for agricultural questions
How AgriIR answers agricultural questions with small open models in six configurable stages, attaches citations deterministically, and how it was evaluated.
- Hybrid search with BM25, dense embeddings and reciprocal rank fusion
Why a RAG system should run keyword and embedding search side by side, and how reciprocal rank fusion merges them without calibrating scores.
- Tip-of-the-tongue search at TREC 2024, with BM25 and rewritten queries
How our TREC 2024 Tip-of-the-Tongue runs rewrote vague queries with an LLM in four phases and used layered BM25 retrieval to reach Recall@1000 of 0.8067.
Earlier posts
- Computational Chemistry in the Age of AI: From DFT to Neural Potentials
A comprehensive look at how Machine Learning is revolutionizing computational chemistry, bridging the gap between quantum accuracy and classical speed.
- Building a RAG system: lessons from a campus intranet
Lessons from a retrieval-augmented generation system for the IISER Kolkata intranet: the data pipeline, hybrid dense and BM25 search, chunking, cited answers.
- Building Scalable Web Apps with Modern Stacks
A guide to modern web architecture, focusing on performance, scalability, and the shift towards edge computing and serverless patterns.
- The Future of Computational Chemistry: AI & Quantum Computing
Exploring how Artificial Intelligence and Quantum Computing are revolutionizing the field of computational chemistry, from drug discovery to materials science.
- Large Language Models: A Deep Dive into Architecture and Capabilities
An in-depth exploration of Transformer architecture, Attention mechanisms, and the evolution of LLMs from GPT-1 to GPT-4 and beyond.
- Understanding DFT methods in catalyst design
How density functional theory is used to design catalysts: the workflow, choosing a functional and basis set, the main pitfalls, and where the field is going.
- Python libraries for computational chemistry
The Python libraries computational chemists use most (RDKit, ASE, PySCF, MDAnalysis, py3Dmol), what each is for, and a worked example joining them.