Skip to content

Add DocumentUrl and support document via BinaryContent #987

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

Merged
merged 20 commits into from
Mar 13, 2025

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Feb 25, 2025

There are two model families that understand documents:

The Anthropic models seems to give more insights than Gemini. We need to make decisions regarding the API given that.

The current implementation by the time I wrote this is not enough - it didn't include context, nor cache_control, nor citations from Anthropic.

Copy link

github-actions bot commented Feb 25, 2025

Docs Preview

commit: 1ff69e3
Preview URL: https://ca30ae74-pydantic-ai-previews.pydantic.workers.dev

@Kludex Kludex marked this pull request as ready for review February 26, 2025 10:04
Copy link
Contributor

hyperlint-ai bot commented Mar 10, 2025

PR Change Summary

Enhanced document input capabilities by introducing support for DocumentUrl and BinaryContent, along with clarifications on model compatibility and usage.

  • Added support for document input via DocumentUrl and BinaryContent.
  • Updated documentation to clarify model compatibility with document inputs.
  • Included warnings regarding binary data handling in Gemini models.

Modified Files

  • docs/input.md

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

What is Hyperlint?

Hyperlint is an AI agent that helps you write, edit, and maintain your documentation.

Learn more about the Hyperlint AI reviewer and the checks that we can run on your documentation.

@Kludex Kludex enabled auto-merge (squash) March 13, 2025 10:25
@Kludex Kludex merged commit 3267e3a into main Mar 13, 2025
15 checks passed
@Kludex Kludex deleted the documents-input-support branch March 13, 2025 10:26
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.

1 participant