[Enhancement]: Implement Google Vertex AI 'Web Grounding for Enterprise' for Data Privacy Compliance #8707
Replies: 2 comments 4 replies
-
I'm happy to explore this but seems odd on Google's part to offer LLM services with enterprise assurances, while also providing a feature for them that is not. It may be a simple toggle so will take the time this week. |
Beta Was this translation helpful? Give feedback.
-
We have done more research on this and would be interested in taking on this feature in a way that it could be useable with any model/agent. It's more of a black box approach since you don't have control over how Google does it's AI summaries. The current set up has a lot of controls but requires a very specific set up to be secure (local SearXNG and Firecrawl and maybe a Cohere agreement change). My first thought it to start by implementing this as a Tool that you can add to any agent. It would also need a small chat UI web search button handler to invoke the tool from the chat pane. Starting as a tool would be faster and have less impact on the core project. @danny-avila thoughts? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What features would you like to see added?
Problem Description
The current implementation of Google Search Grounding for Vertex AI models in LibreChat presents a significant data privacy concern for enterprise users, especially those operating under strict regulations like GDPR in the EU.
https://cloud.google.com/vertex-ai/generative-ai/docs/data-governance
According to Google's documentation for Grounding with Google Search:
This 30-day data retention policy, with no option to opt-out, is a non-starter for many businesses and makes the feature unusable in a production/enterprise environment. For our organization, this is a blocker that prevents us from updating to the latest versions of LibreChat.
Proposed Solution
Google provides a direct solution to this problem with Web Grounding for Enterprise. This service is specifically designed for compliance and data privacy.
According to the documentation for Web Grounding for Enterprise:
Key benefits of the Enterprise version include:
This would resolve the data privacy blocker and make the grounding feature viable for enterprise use.
More details
Technical Implementation Details
https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/web-grounding-enterprise
The implementation appears to be a straightforward change in the API call to the Vertex AI Gemini model. Instead of the standard grounding tool, the
enterprise_web_search
tool should be provided.Here is the example code provided by Google:
Desired Outcome / Acceptance Criteria
To enforce compliance across an entire LibreChat instance, this feature should be configured by a system administrator, not an end-user. The ideal location for this setting is in the
librechat.yaml
file (or.env
if more appropriate for the architecture).A new configuration key should be added under the
endpoints.google
section inlibrechat.yaml
to allow administrators to select the grounding type.Implementation Logic:
groundingType
: Add agroundingType
key to the Google endpoint configuration.enterprise
: When set, the backend must use theTool(enterprise_web_search=EnterpriseWebSearch())
for all grounding requests to Google models.standard
: When set, the backend should use the current, standard Google Search grounding method.groundingType
key is omitted or left empty, it should default tostandard
to ensure backward compatibility and not break existing installations.If thats not possible, the following would be an alternative:
For example, in the Google endpoint configuration UI, a dropdown or radio button could be added:
Grounding Type:
Standard Google Search (30-day data logging)
Enterprise Web Search (No data logging)
This would empower administrators to select the appropriate, compliant option for their organization's needs.
Thank you for considering this critical feature for the enterprise-readiness of LibreChat.
Which components are impacted by your request?
No response
Pictures
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions