Skip to content

About

No description, website, or topics provided.

Resources

Stars

43 stars

Watchers

0 watching

Forks

Repository files navigation

InsightPro

Paper: InsightPro: Condensed Domain Knowledge as a First Step toward Autonomous Research (arXiv:2611.40962) · Homepage: https://lab.einsia.ai/insightpro · Dataset: Einsia/InsightPro · InsightPro API: https://insightpro-api.einsia.ai · Demo: https://insightpro-demo.einsia.ai

Research-idea generation on top of InsightPro, plus the evaluation code. This repository contains Single Full / Single API, Multi Full / Multi API, IdeaScientist and CoI: the prompts, the 38 domain tasks, the generation workflow, the Research Blueprint writing stage, and the three benchmarks Generation, Reconstruction and IS, each reported separately for the GPT and the Claude judge.

Layout

Path Contents
system/single-full/ Five isolated one-idea sessions per domain; full domain insights/problems + InsightPro API + web
system/single-api/ Five isolated one-idea sessions per domain; retrieves from InsightPro on its own, web optional, no domain material pre-loaded
system/multi-full/ Six Full authors with five candidates each; discussion → one revision round → independent Top5 selection
system/multi-api/ The same collaboration workflow with API-access authors
system/runtime/ Shared native execution, stage checks, retries, source verification and Blueprint writing
system/baselines/ Native adapters, shared model bridge, recovery and scoring source of the seven offline AR baselines
system/single-api-web/ Web version of Single: prompt, web_search.py and egress proxy of the 2026-11-27 Astra S11 web-draft batch (source snapshot)
baselines/ideascientist/ IdeaScientist native multi-role workflow and adapter
baselines/coi/ CoI paper chains, novelty check and internal review, with adapter
benchmarks/generation/ Generation: C (Contribution), N (Novelty), S (Soundness), I (Importance); original Reviewer and Interesting source
benchmarks/reconstruction/ Reconstruction: grade, direction hit and mechanism hit for historical contributions; 69 target papers, 58 tasks, 37 domains; Founder tasks, answers and scoring source
benchmarks/is/ IS: six quality dimensions, literature novelty and structural transfer; original IdeaScientist rubric and source
benchmarks/evaluate.py Single entry point for the three benchmarks, with separate GPT / Claude reports
benchmarks/reviewer/web_evidence_v1/ Web-evidence C/I/S judging (web-evidence-v1): bounded public search on top of the offline raw-paper corpus
data/ The 38 domain definitions and the 7,641-entry domain material snapshot used by Full
provenance/ Hashes of source and release files

In Multi, discussion and revision form a single round. Top1 is the selector's first choice recorded before any external judging; it is never re-picked from judge scores. Every system delivers five complete Idea Cards per domain; the Blueprint stage can be run afterwards.

Language. Everything in this repository is in English by default. The experiments were run in Chinese: the prompts and judge rubrics were translated into English in place on 2026-11-29 (Chinese originals in the git history up to commit c5351db), and on 2026-12-01 the data followed: the InsightPro domain material (data/insightpro-context/, from the English edition of the InsightPro dataset), the domain records and task texts, and the Reconstruction tasks and answers. The Chinese files exactly as used in the experiments are kept under zh/ at the same relative paths; python3 zh/use_chinese.py puts them back in place to reproduce a Chinese run, and git restore . returns to English.

Copy-paste prompt

The Single API prompt already contains the public InsightPro address. Change the "domain" line and hand it to any agent that can make HTTP requests; no database download or repository script is needed. It retrieves domain material on demand and keeps the six research perspectives, the prior-work check and the requirement to deliver one complete idea; run it five times in separate sessions for five ideas per domain, as in the experiments.

Public read-only InsightPro API: https://insightpro-api.einsia.ai (service root, without /api/v1), no InsightPro API key required. The API description can be given to an agent directly, and the full specification is at /openapi.json. List endpoints return at most 100 rows per page; follow page.next_after to page through. Model calls come from your own agent environment.

The copy-paste version only adapts direct HTTP calls, the domain field and the output directory; the prompt used in the experiments is system/single-api/prompts/generation.md. The Full version with pre-loaded domain material is the Full prompt; Full still needs the complete material of the chosen domain.

The demo's web-search prompt downloads two helper scripts from tools/ (public sources and the public InsightPro API only; no key needed).

Demo

https://insightpro-demo.einsia.ai

Offline AR baselines

The seven baseline sources are AutoResearchClaw, Dr. Claw, ResearchAgent, CycleResearcher, SciAgents, DeepScientist and, listed separately, AI-Scientist v3 ideation; with IdeaScientist and CoI at the repository root they make the nine compared systems. They share one offline corpus, Astra / xhigh, and a common ceiling of 250 actual model requests for generation and scoring. Each method records its pinned upstream commit, native rules and a source checksum list.

This is a source snapshot of the deployed adapters. Corpora, upstream dependencies, machine paths and per-slot admission must be prepared separately; credentials of earlier batches cannot be reused for new tasks. See that directory's README for details and the zero-model-call check.

Installation

Requires Linux, Python 3.12, bubblewrap, and Codex and Claude CLIs that support the configured model and effort. Generation runs in native Codex sessions; judging uses separate Codex / Claude sessions. The default generation model is Astra / xhigh; the two judges are Astra / xhigh and Opus 5.5 / xhigh.

git clone git@github.com:Einsia/InsightPro.git
cd InsightPro
python3.12 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
# Fill in the service addresses in .env and point it at your own protected credentials.
set -a
source .env
set +a

The Full domain snapshots ship with the code; reading linked papers and cross-domain material at run time still needs a working InsightPro API. API workspaces never receive the Full material. The complete InsightPro paper library, the Svalbard database, historical run logs and personal credentials are not in this repository.

Generation models

Generation in the paper uses five generation models (38 domains × 5 slots each, same prompts and workflow). Claude Opus is not one of the main-result generators (it is one of the judges; the appendix has additional results generated with Opus 5.5).

Name in the paper Model ID Serving Context
GPT-6 Astra (xhigh) gpt-6-astra Hosted API (OpenAI-compatible) Codex window 1,050,000
Qwen3.8-27B Qwen/Qwen3.8-27B Self-hosted vLLM (OpenAI-compatible) 262,144 total tokens per request
Qwen3.8-Flash-Next Qwen/Qwen3.8-Flash-Next Self-hosted vLLM (OpenAI-compatible) 262,144 total tokens per request
DeepSeek-V4.1-Flash-1017 deepseek-v4.1-flash-1017 Hosted API (OpenAI-compatible) 1M window, 384K max output
GLM-5.3-Flash glm-5.3-flash Hosted API (OpenAI-compatible) 1M window, 131,072 max output

All five models are reached through an OpenAI-compatible Responses endpoint from the same native Codex session, with the same prompts, workflow and output validation. The default is gpt-6-astra / xhigh; to switch, pass --model (optionally --effort and --base-url) or set INSIGHTPRO_GENERATION_MODEL / INSIGHTPRO_GENERATION_EFFORT / INSIGHTPRO_GENERATION_BASE_URL. Credentials are configured as below, and the credential's base URL must equal the generation endpoint. Every run's run.json records the model, effort and endpoint actually used.

# Example: Single API with Qwen3.8-27B served by a local vLLM
OPENAI_BASE_URL=http://127.0.0.1:8000/v1 python system/run.py single-api run --execution runs/single-api \
  --model Qwen/Qwen3.8-27B --effort high --base-url http://127.0.0.1:8000/v1 --gpt-budget 1 --external-gpt-reserved 0

Web version

  • Generation: system/single-api-web/ holds the prompt, web_search.py and egress proxy actually used by the 2026-11-27 Astra S11 web-draft batch; its only difference from the offline batch is logged public search.
  • Judging: benchmarks/reviewer/web_evidence_v1/ adds 5–6 bounded arXiv / OpenAlex public searches to the offline raw-paper evidence (abstracts only; work first published after the card was generated is hidden).

Running InsightPro generation

# Check the 38 domain materials, prompts and runtime dependencies; no model calls.
python system/run.py single-full check

# Prepare one domain; use --domains all for all 38.
python system/run.py single-full prepare --domains agent-memory --out runs/single-full
python system/run.py single-full run --execution runs/single-full --gpt-budget 1 --external-gpt-reserved 0
python system/run.py single-full status --execution runs/single-full
python system/run.py single-full export --execution runs/single-full

Replace single-full with one of the other three directory names to switch systems. Single runs five isolated one-idea sessions per domain and Multi six authors, so --gpt-budget is counted in sessions and must be at least 5 for Single and 6 for Multi; a stage that fails validation never advances to the next. --external-gpt-reserved is the capacity the same account already uses for other jobs. Each run keeps its prompts, tool access, failed attempts, native sessions and source checks.

Baseline, Blueprint and benchmark commands are in the running guide. Scoring versions and protocols that must not be mixed are described in the benchmark notes. Sources and third-party licenses are in THIRD_PARTY.md.

Offline checks

python scripts/check_release.py
python -m unittest discover -s tests -v

The checks cover the four configurations, Full/API material isolation, prompt hashes, collaboration-stage constraints, benchmark input preparation and scoring completeness. They launch no generation and no paid judging. Packaging changed paths and dispatch entry points, and the paper's experiments were not re-run through these new entry points; importing successfully or passing the offline checks does not mean the paper's scores were reproduced.

About

No description, website, or topics provided.

Resources

Stars

43 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages