-
Notifications
You must be signed in to change notification settings - Fork 2.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(google-common): Google Search grounding tool formatter #7448
feat(google-common): Google Search grounding tool formatter #7448
Conversation
…nstantiation of it
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
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.
Some small nits but otherwise looks nice!
Is this the commonly accepted way to show sources vs. just having the developer do it themselves?
Nits addressed.
The markdown one mimics what AI Studio provides, but the base class makes it pretty flexible so people can create their own formats if necessary (such as a pure HTML one). |
Thanks! |
Based on results provided by the Google Search Grounding tool, format the result text.
There is a
BaseGoogleSearchOutputParser
which is abstract and which handles a lot of the work.Two specific output formatters are provided:
SimpleGoogleSearchOutputParser
which is just a simple implementationMarkdownGoogleSearchOutputParser
which returns (mostly) markdown that matches how AI Studio tends to format search grounded results.