Generate forecasting datasets and fine-tune models using the Lightningrod Python SDK, with seed data from BigQuery, local files, web search, or public repositories, and guided training patterns for SFT or GRPO.
BigQuery seed sourcing patterns for Lightningrod. Use when sourcing seeds from BigQuery tables.
Production examples for content learning (SFT) training -- survival field guide (TopicTree + WebSearch), medical textbooks (FileSet + QuestionAndLabel). Use when teaching domain knowledge via Q&A pairs and SFT.
Seed generation from user-provided files and custom datasets. Use when converting local files, CSVs, PDFs, or user uploads into Lightningrod seeds.
Decision tree for choosing a training pattern (forward-looking GRPO, content learning SFT, tabular data). Use when starting a new project, choosing between RL and SFT, or selecting an answer type.
Standardised training-experiment tracking. One notebook per experiment under `./userland/<project>/experiments/`, plus a single `experiments.md` index table at the project root. Use whenever a training run's tracked config differs from the previous run.
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Foresight returns a calibrated probability for any question about the future — through an OpenAI-compatible API. No fine-tuning, no setup. Ranked #1 for forecasting accuracy on ProphetArena.
Trusted for high-stakes predictions by Numinous, Shore Capital Partners, Awardable (Tradewinds Solutions Marketplace), and ERIS Marketplace. Foresight processes billions of tokens and serves 100k+ inference requests every day.
Documentation · Get an API key · Research paper
Foresight is served behind an OpenAI-compatible endpoint, so any OpenAI client works — just point base_url at Lightning Rod.
pip install openai
from openai import OpenAI
client = OpenAI(
base_url="https://api.lightningrod.ai/api/public/v1/openai",
api_key="your-api-key",
)
completion = client.chat.completions.create(
model="LightningRodLabs/foresight-v4",
messages=[
{"role": "user", "content": "Will the Fed cut rates at its next meeting?"},
],
extra_body={
"research": True, # gather live web evidence before forecasting
"answer_type": "auto", # append a structured answer in <answer></answer> tags
},
)
print(completion.choices[0].message.content)
# Foresight weighs the evidence and returns a calibrated probability,
# e.g.: "... <answer>0.34</answer>"
That 0.34 is a calibrated probability — a 34% chance, not a confidence score or a yes/no. 0.5 means genuinely uncertain, and across many ~0.7 forecasts roughly 70% should come true. See the forecasting reference for answer types, research sources, and the full response shape.
lr.predict() wraps the same API and parses the structured answer for you:
pip install lightningrod-ai openai
import lightningrod as lr
client = lr.LightningRod(api_key="your-api-key")
result = client.predict(
"Will the Fed cut rates by 25bp in March 2026?",
answer_type="binary",
research=True,
)
print(result.binary.probability) # e.g. 0.62
Need a model tuned to your domain? Our enterprise platform enables companies to turn raw sources into labeled datasets and fine-tunes models on them — served through the same API.
pipeline = QuestionPipeline(...)
dataset = client.transforms.run(pipeline)
train_dataset, test_dataset = prepare_for_training(dataset)
train_config = GRPOTrainingConfig(base_model_id="openai/gpt-oss-120b")
training_job = client.training.run(train_config, train_dataset)
# your fine-tuned model is served through the same predict() / OpenAI API
client.predict("Will the Fed cut rates by 25bp in the next 3 months?", model=training_job.model_id)
We used this to generate the Future-as-Label training dataset from our paper, Future-as-Label: Scalable Supervision from Real-World Outcomes.
npx claudepluginhub lightning-rod-labs/lightningrod-python-sdk --plugin lightningrod-python-sdkGive Claude Code a research team. Forecast, score, classify, or research every row of a dataset.
Time series forecasting and analysis
Earth2Studio skills for weather and climate AI — discover models, install the package, fetch data, run deterministic forecasts, and create new data source or prognostic model wrappers.
Data engineering and time series analysis mastery. Expert in jq, SQL, pandas, time series forecasting, ETL pipelines, streaming, and analytics visualization.
Data analysis expert for SQL queries, BigQuery operations, and data insights. Use proactively for data analysis tasks and queries.
Self-documenting, self-improving framework for analytical repositories