Sahaj.blogs

Day page

24 Apr 2026

Study

LangChain · Document loaders

The Document object (page_content + metadata), writing a small custom loader for text and CSV files, and why metadata matters later for filtering and citing sources.

  • A loader's only job is to turn some source into Document objects: text plus metadata.
  • Metadata like source file and row number is what lets a RAG answer cite where it came from.

Read the post →

Projects

Built this: Orbit-Wars strategy agent

A rule-based strategy agent for the Kaggle Orbit Wars environment using predictive intercepts, economic target scoring, defensive "fortress" logic and sun-avoidance manoeuvres.

  • Fleets aim at where a planet will be when they arrive, using its angular velocity, not where it is now.
  • Targets are scored by production value, distance and garrison size.

Read the post →