• bitcoinBitcoin(BTC)$77,159.00-0.31%
  • ethereumEthereum(ETH)$2,522.01-0.67%
  • tetherTether(USDT)$1.000.02%
  • binancecoinBNB(BNB)$726.460.00%
  • rippleXRP(XRP)$1.370.15%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$101.41-1.15%
  • tronTRON(TRX)$0.3397950.71%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.00-2.83%
  • zcashZcash(ZEC)$1,124.32-4.60%
  • HyperliquidHyperliquid(HYPE)$79.94-1.00%
  • dogecoinDogecoin(DOGE)$0.0848760.47%
  • RainRain(RAIN)$0.0158911.75%
  • moneroMonero(XMR)$538.714.22%
  • USDSUSDS(USDS)$1.000.01%
  • whitebitWhiteBIT Coin(WBT)$80.22-0.33%
  • chainlinkChainlink(LINK)$11.52-0.84%
  • leo-tokenLEO Token(LEO)$9.15-0.12%
  • cardanoCardano(ADA)$0.2079210.76%
  • stellarStellar(XLM)$0.1802380.70%
  • Ethena USDeEthena USDe(USDE)$1.000.01%
  • daiDai(DAI)$1.000.01%
  • bitcoin-cashBitcoin Cash(BCH)$225.90-1.48%
  • USD1USD1(USD1)$1.000.01%
  • litecoinLitecoin(LTC)$53.760.25%
  • uniswapUniswap(UNI)$6.354.59%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.381.19%
  • CantonCanton(CC)$0.097201-1.26%
  • Global DollarGlobal Dollar(USDG)$1.00-0.01%
  • avalanche-2Avalanche(AVAX)$7.39-1.03%
  • hedera-hashgraphHedera(HBAR)$0.0745970.04%
  • shiba-inuShiba Inu(SHIB)$0.0000052.58%
  • nearNEAR Protocol(NEAR)$2.35-5.33%
  • suiSui(SUI)$0.72-0.59%
  • crypto-com-chainCronos(CRO)$0.0588544.15%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.01%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • MemeCoreMemeCore(M)$1.18-1.75%
  • tether-goldTether Gold(XAUT)$4,348.90-0.03%
  • Circle USYCCircle USYC(USYC)$1.140.00%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • okbOKB(OKB)$113.820.20%
  • BittensorBittensor(TAO)$232.18-1.52%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.23%
  • aaveAave(AAVE)$126.441.20%
  • pax-goldPAX Gold(PAXG)$4,353.75-0.01%
  • mantleMantle(MNT)$0.57-2.37%
  • AsterAster(ASTER)$0.680.40%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.0582477.25%
  • polkadotPolkadot(DOT)$1.03-2.19%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Building Agentic Document Intelligence Pipelines: Creating Scientific Figures with AutoFigure

August 21, 2026
in AI & Technology
Reading Time: 2 mins read
A A
Building Agentic Document Intelligence Pipelines: Creating Scientific Figures with AutoFigure
ShareShareShareShareShare

YOU MAY ALSO LIKE

Diablo V Is Coming Out In Spring 2029

Fly Language Model (FLM) Wires the Full Fruit Fly Connectome Into a Frozen 1.2B LLM, and Its Own Controls Show the Wiring Does Not Help

heading("4. Creating a custom reference figure")
reference_dir = OUTPUT_ROOT / "01_custom_references"
reference_dir.mkdir(parents=True, exist_ok=True)
reference_path = reference_dir / "reference_architecture_style.png"
W, H = 1333, 750
img = Image.new("RGB", (W, H), "white")
draw = ImageDraw.Draw(img)
try:
   title_font = ImageFont.truetype("DejaVuSans-Bold.ttf", 36)
   box_font = ImageFont.truetype("DejaVuSans-Bold.ttf", 24)
   small_font = ImageFont.truetype("DejaVuSans.ttf", 18)
except Exception:
   title_font = None
   box_font = None
   small_font = None
draw.text(
   (W // 2, 55),
   "Reference Layout: Modular Scientific Pipeline",
   anchor="mm",
   fill="black",
   font=title_font,
)
boxes = [
   (90, 215, 290, 120, "Input", "documents"),
   (365, 215, 290, 120, "Planner", "route by task"),
   (640, 215, 290, 120, "Experts", "summary / table / vision"),
   (915, 215, 290, 120, "Verifier", "grounded output"),
]
for i, (x, y, bw, bh, title, subtitle) in enumerate(boxes):
   draw.rounded_rectangle(
       [x, y, x + bw, y + bh],
       radius=22,
       fill=(245, 245, 245),
       outline=(20, 20, 20),
       width=3,
   )
   draw.text(
       (x + bw / 2, y + 45),
       title,
       anchor="mm",
       fill="black",
       font=box_font,
   )
   draw.text(
       (x + bw / 2, y + 82),
       subtitle,
       anchor="mm",
       fill=(70, 70, 70),
       font=small_font,
   )
   if i < len(boxes) - 1:
       ax = x + bw + 20
       ay = y + bh / 2
       bx = boxes[i + 1][0] - 20
       by = ay
       draw.line([ax, ay, bx, by], fill="black", width=5)
       draw.polygon(
           [(bx, by), (bx - 18, by - 10), (bx - 18, by + 10)],
           fill="black",
       )
draw.rounded_rectangle(
   [180, 500, 1150, 585],
   radius=24,
   fill=(252, 252, 252),
   outline=(80, 80, 80),
   width=2,
)
draw.text(
   (665, 542),
   "Design cue: aligned modules, sparse labels, strong flow direction, clean academic styling",
   anchor="mm",
   fill=(40, 40, 40),
   font=small_font,
)
img.save(reference_path)
print(f"Custom reference saved: {reference_path}")
display_file_if_possible(reference_path, "Custom reference figure")
heading("5. Configuring API-backed AutoFigure")
API_KEY = collect_api_key(PROVIDER)
if not API_KEY:
   print("No API key provided. Cloud generation sections will be skipped.")
else:
   print(f"Provider: {PROVIDER}")
   print(f"Generation model: {GENERATION_MODEL}")
   print("API key received. The key is not printed.")
config = None
agent = None
if API_KEY:
   config = Config(
       generation_api_key=API_KEY,
       generation_provider=PROVIDER,
       generation_model=GENERATION_MODEL,
       methodology_api_key=API_KEY,
       methodology_provider=PROVIDER,
       methodology_model=GENERATION_MODEL,
       enhancement_api_key=API_KEY if RUN_IMAGE_ENHANCEMENT else None,
       enhancement_provider=PROVIDER,
       enhancement_model=os.environ.get(
           "AUTOFIGURE_ENHANCEMENT_MODEL",
           "google/gemini-3.1-flash-image-preview"
           if PROVIDER == "openrouter"
           else "gemini-3.1-flash-image-preview",
       ),
       max_iterations=MAX_ITERATIONS,
       quality_threshold=QUALITY_THRESHOLD,
       output_dir=str(OUTPUT_ROOT / "02_text_to_figure"),
       custom_references=[str(reference_path)],
       art_style=ART_STYLE,
   )
   validation_errors = config.validate()
   print(f"Config validation errors: {validation_errors if validation_errors else 'none'}")
   print(f"References found by config: {len(config.get_references())}")
   agent = AutoFigureAgent(config)
heading("6. Prompt template preview")
prompt_preview = get_initial_prompt_template(
   topic="paper",
   content=FIGURE_DESCRIPTION[:2500],
   output_format="svg",
)
print(prompt_preview[:2500])
print("\n... prompt preview truncated ...")
if API_KEY and RUN_TEXT_TO_FIGURE:
   heading("7. Running text-to-figure generation")
   text_output_dir = OUTPUT_ROOT / "02_text_to_figure"
   text_output_dir.mkdir(parents=True, exist_ok=True)
   text_result = agent.generate(
       description=FIGURE_DESCRIPTION,
       max_iterations=MAX_ITERATIONS,
       quality_threshold=QUALITY_THRESHOLD,
       output_format=TEXT_OUTPUT_FORMAT,
       enable_enhancement=RUN_IMAGE_ENHANCEMENT,
       art_style=ART_STYLE,
       enhancement_input_type="code2prompt",
       enhancement_count=1,
       custom_references=[str(reference_path)],
       output_dir=str(text_output_dir),
       topic="paper",
   )
   summarize_generation_result(text_result, "Text-to-Figure Result")
else:
   print("Skipping text-to-figure generation.")

Credit: Source link

ShareTweetSendSharePin

Related Posts

Diablo V Is Coming Out In Spring 2029
AI & Technology

Diablo V Is Coming Out In Spring 2029

September 12, 2026
Fly Language Model (FLM) Wires the Full Fruit Fly Connectome Into a Frozen 1.2B LLM, and Its Own Controls Show the Wiring Does Not Help
AI & Technology

Fly Language Model (FLM) Wires the Full Fruit Fly Connectome Into a Frozen 1.2B LLM, and Its Own Controls Show the Wiring Does Not Help

September 12, 2026
Altman Says OpenAI Will Match Anthropic’s Embedded Evaluator Pledge – Unite.AI
AI & Technology

Altman Says OpenAI Will Match Anthropic’s Embedded Evaluator Pledge – Unite.AI

September 12, 2026
Anthropic’s CEO Proposes A Three-Step Plan To Curb AI Development
AI & Technology

Anthropic’s CEO Proposes A Three-Step Plan To Curb AI Development

September 12, 2026
Next Post
How U.S. sanctions are crushing Cuba’s economy

How U.S. sanctions are crushing Cuba's economy

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Police launch criminal investigation into Reform UK donations – BBC

Police launch criminal investigation into Reform UK donations – BBC

September 9, 2026
The Commuter’s Paradox | Choiceology Podcast Clip

The Commuter’s Paradox | Choiceology Podcast Clip

September 8, 2026
The Housing Market’s Demographic Reckoning (With Ivy Zelman)

The Housing Market’s Demographic Reckoning (With Ivy Zelman)

September 11, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!