Home / use case

Extracting clean data from old SEC filings with small models

At a glance
Key gotcha
Broad prompts like 'summarize file x' don't work

What they built

u/luvs_spaniels studies financial bubbles. The useful filings are late-1990s and early-2000s text files with little metadata, and a small local LLM turns them into clean, usable data.

They also strip company names and tickers before asking about red flags, so the model isn't biased by knowing it's Enron.

How it works

  1. Break the target information into small components (a single table or paragraph)
  2. Use many narrow prompts per table, sometimes ten
  3. Strip identifying names and tickers before analysis

Results & numbers

  • Tabular extraction/matching around 97% on the latest random sample
  • Some 7B-13B models hallucinated less on this task than larger ones

Gotchas

  • Broad prompts like 'summarize file x' don't work
  • Assigning meaning to abnormal wording is the hard part
“You might end up with 10 prompts for a single table. That's okay because you're not paying by the token.”— u/luvs_spaniels

Do it yourself

  1. Chunk each filing so one prompt sees one table or paragraph
  2. Ask for one field or table at a time, in JSON
  3. Remove company names and tickers first
  4. Spot-check a random sample to measure accuracy
Source: Reddit r/LocalLLaMA · Published 2025-08-17 · Added 2026-10-18. This write-up summarizes the original source; see it for full details.

Similar setups

A local news-reading agent on Ollama that loses internet access while it thinks

A developer built News Scout, a Qwen3 14B agent on Ollama that picks IT stories from five RSS feeds, then split each run so the model reads the cached feeds inside a macOS sandbox with no internet.

DEV Community (MediBlackSand) · 2026-12-03

Fixing empty Ollama replies in a meeting-minutes-to-tasks script

A script that turned meeting minutes into a JSON task list with qwen3.5:9b on Ollama hung for a minute and returned nothing, because the model spent the whole 4,096-token context on hidden reasoning.

DEV Community (Davidrs) · 2026-11-26

Stress-testing a local 4B search agent in Ollama: it caught fake sources but trusted a stale official page

Prompt Engineer 48 built DeepStress-Mini, a 30-question offline test inspired by the DeepStress paper, and ran it against qwen3:4b in Ollama on an 8 GB RTX 4060 laptop to see how a small search agent handles bad sources.

Prompt Engineer 48 on X · 2026-11-17

A private ChatGPT alternative on a six-year-old RTX 3090 with Ollama, Open WebUI and imported chat history

Pascal Hetzscholdt turned an older desktop with an RTX 3090 into a local research assistant running GPT-OSS 20B through Ollama and Open WebUI, then imported years of ChatGPT conversations so the local model can search them.

Pascal Hetzscholdt (beehiiv) · 2026-11-16