Skip to main content
Knives on Strings
The Stuff The Lab The Team About Store
X Gumroad KVR Audio Ko-fi
The Stuff The Lab The Team About Store
X Gumroad KVR Audio Ko-fi
The Lab / Lore

Lore

Lore — RESEARCH, LEARNING & FORECASTING IN DEV
PlatformsPython 3.14, Postgres/TimescaleDB

A scaled research, learning, and forecasting system. Acquisition from the internet, processing via FinBERT sentiment, SBERT embeddings, PCA feature extraction, and AI model sentiment analysis. Training and forecasting with LSTM, XGBoost, committee meta-model, and backtesting.

Built on Python 3.14 with pytorch-cuda, Postgres with TimescaleDB, and VectorDB.

Lore trades on paper only. It is a research project, not investment advice, and nothing on this page is a recommendation to buy or sell anything.

Recent development

October–November 2026 — Keeping the night shift honest

  • The nightly pipeline polices its own clock: every run has a deadline below the scheduler's hard limit, and forecasting waits for that night's processing to finish instead of quietly predicting from yesterday's data
  • The crawler checks what it fetched before saving it, so error pages and cookie-consent walls no longer get stored and scored as news
  • Sentiment failures stop pretending: a FinBERT error used to be written down as a neutral score. Now it is recorded as a failure and retried a bounded number of times
  • Each paper book takes its own lock, so two overlapping runs cannot place the same paper trade twice, and each book pays its own trading costs
  • Lore runs from its own hash-pinned environment rather than whatever Python the machine happens to have, and the test suite can no longer touch the live database or the experiment store
  • Topic modelling: a weekly BERTopic fit, with every new article assigned to its topics overnight
  • A pre-registered study asks whether news sentiment predicts forward returns at all. The first answer is inconclusive, so it gets re-run in May 2027 rather than reinterpreted until it says something nicer

July–September 2026 — Trying to break its own results

  • A run of pre-registered audits went after the buy-the-dip strategy: where its risk actually sits, how it would have fared back to 1993 (deeper drawdowns than the recent window suggests), and whether earnings dates matter (a real effect that turns out not to matter)
  • Volatility forecasting (EWMA, HAR-RV) beat the naive estimate on its own terms but changed none of the strategy's decisions, so it stays a reference rather than a voter
  • Sentiment scoring moved to Gemini's Batch API at roughly half the cost, with double submission and silently empty results ruled out before it went live
  • Price indicators are computed when read instead of stored, so the stored history is raw market data and nothing else

May 2026 — v1.7: more than one strategy

  • Paper trading runs independent books side by side, the model committee and a buy-the-dip overlay, each with its own cash, positions and equity curve, compared on the dashboard
  • New inputs: earnings surprise, plus oil, commodity and consumer macro series
  • Every training run is tracked in MLflow, and code and config changes are marked on the backtest charts, so a jump in a curve can be matched to whatever changed
  • Three would-be committee voters retired: one made the committee's predictions worse in testing, one was the wrong kind of model for the job, and one was only ever a benchmark

April 2026 — v1.6: the pipeline rescue

  • Paper trading had silently stopped. Four stacked bugs fixed, and the nightly jobs rescheduled so they stop treading on each other
  • Amazon's Chronos time-series model trialled as a committee voter (later dropped)
  • The forecasts tab split into predictions, model performance, committee, backtest and signal analysis

Data Flow

flowchart LR
    subgraph CRAWL["Crawl"]
        C[Crawler]
    end

    subgraph STORE["Storage"]
        SD[Sentiment Data]
        BS[Blob Store]
        NE[News Embeddings]
        CF[Context Features]
        TF[Topic Features]
        KG[Knowledge Graph]
        PT[Market Data]
        MP[Model Performance]
    end

    subgraph PROCESS["Process"]
        SP[Sentiment
Processor] EMB[Embedding
Manager] FE[Feature
Engineers] end subgraph TRAIN["Train"] MOD[Model
Trainers] end C -->|article text| BS C -->|metadata row| SD SD -->|blob_path FK| BS SP -->|read content| BS SP -->|scores + labels| SD SP -->|embedding| NE EMB -->|read content| BS EMB -->|384-dim vector| NE NE --> FE FE --> CF FE --> TF FE --> KG PT & CF & TF & KG & SD --> MOD MOD -->|predictions| MP MOD -->|model files| NAS[(NAS)]
knives on strings

© 2026 Knives on Strings

X Gumroad KVR Audio Ko-fi
Legal Terms Privacy On AI