Skip to content

Conversation

@ZhengyaoJiang
Copy link
Contributor

This PR adds the extract-line-plot example which demonstrates optimizing an AI feature that turns chart images into CSV tables using a VLM.

What's included:

  • prepare_data.py: Downloads ChartQA and prepares a 100-sample subset of line charts
  • optimize.py: Exposes extract_csv(image_path) which returns CSV text plus per-call cost
  • eval.py: Evaluation harness that reports accuracy and optional cost metrics
  • guide.md: Additional instructions for Weco optimization

Tested:

  • Data preparation works
  • Baseline evaluation runs successfully (accuracy: 0.613 on 10 samples)

@DhruvSrikanth DhruvSrikanth self-requested a review December 10, 2025 19:06
Copy link
Member

@DhruvSrikanth DhruvSrikanth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Lint/format the code and then feel free to merge.

@aliroberts aliroberts self-requested a review December 10, 2025 19:09
Copy link
Contributor

@aliroberts aliroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ZhengyaoJiang ZhengyaoJiang merged commit 38b3329 into main Dec 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants