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

Introduce support for extracting and processing grounding metadata from GoogleLLMService. #1030

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

Conversation

filipi87
Copy link
Contributor

@filipi87 filipi87 commented Jan 17, 2025

Introduce support for extracting and processing grounding metadata from Google LLM responses.
Created an example using Google Search using GoogleLLMService.

@filipi87 filipi87 changed the title Starting to create an example with Google Search using GoogleLLMService Google Search using GoogleLLMService Jan 17, 2025
@@ -720,6 +782,14 @@ async def _process_context(self, context: OpenAILLMContext):
except Exception as e:
logger.exception(f"{self} exception: {e}")
finally:
if grounding_metadata is not None and isinstance(grounding_metadata, dict):
llm_search_frame = LLMSearchResponseFrame(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

One nice improvement would be to create an RTVI message so we can share this response with the RTVI clients. What do you think? I can create a follow-up PR to implement the message.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe something like: RTVIBotLLMSearchResponse.

What do you think ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have included it in this PR: #1051

@filipi87 filipi87 force-pushed the gemini_grounding_metadata branch from 2d14532 to 9b61633 Compare January 20, 2025 14:28
@filipi87 filipi87 changed the title Google Search using GoogleLLMService Introduce support for extracting and processing grounding metadata from Google LLM responses. Jan 20, 2025
@filipi87 filipi87 marked this pull request as ready for review January 20, 2025 14:29
@filipi87 filipi87 changed the title Introduce support for extracting and processing grounding metadata from Google LLM responses. Introduce support for extracting and processing grounding metadata from GoogleLLMService. Jan 20, 2025
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