Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PDF extraction example agent with verification #176

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

crjaensch
Copy link

@crjaensch crjaensch commented Mar 15, 2025

Summary

Add PDF extraction example agent with verification

  • Create a dedicated extract_doc folder for document processing examples
  • Implement PDF extraction agent using OpenAI responses API with file input support
  • Add sample document generator with ReportLab for testing
  • Include verification step to ensure extracted data is grounded in the source document
  • Support structured data extraction with customizable schema
  • Handle JSON parsing from various response formats

Test plan

Issue number

Checks

  • I've added new tests (if relevant)
  • I've added/updated the relevant documentation
  • I've run make lint and make format
  • I've made sure tests pass

- Create dedicated extract_doc folder for document processing examples
- Implement PDF extraction agent using OpenAI responses API with file input support
- Add sample document generator with ReportLab for testing
- Include verification step to ensure extracted data is grounded in source document
- Support structured data extraction with customizable schema
- Handle JSON parsing from various response formats
Copy link
Collaborator

@rm-openai rm-openai left a comment

Choose a reason for hiding this comment

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

Thank you for this PR! We're trying to keep the examples here universally helpful and dependency light. We're internally discussing the best way to add examples like this that use dependencies like reportlab, and will get back to you soon!

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.

2 participants