-
Notifications
You must be signed in to change notification settings - Fork 44.4k
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
feat(blocks): Add jina fact checker block #8409
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made some changes in #8403 that will likely impact this
validate that the API key works via .env as I wouldn't expect that to work with credits and what not based on current system design
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
@@ -180,3 +190,82 @@ def run(self, input_data: Input, **kwargs) -> BlockOutput: | |||
yield "condition", weather_data["weather"][0]["description"] | |||
else: | |||
raise RuntimeError(f"Expected keys not found in response: {weather_data}") | |||
|
|||
|
|||
class FactCheckerBlock(Block, GetRequest): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to /jina folder and reuse the _auth.py there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do :)
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Background
This adds the new Jina fact checker api as a block
https://jina.ai/news/fact-checking-with-new-grounding-api-in-jina-reader/
video to show it working with the new auth system!
2024-10-23.15-20-57.mp4