借助 AI Applications,开发者可以充分利用 Google 的基础模型、搜索专业知识和对话式 AI 技术来创建企业级生成式 AI 应用。
作为早期技术,它的不断发展的功能和用途可能会造成误用、滥用以及意外或不可预见的后果。例如,AI 应用可能会生成意料之外的输出,包括令人反感、不顾他人感受或事实上不正确的文本。
鉴于这些风险和复杂情况,AI Applications 在设计时考虑到了 Google 的 AI 原则。但是,开发者必须了解和测试其模型,以便以负责任的方式安全部署。为了帮助开发者,AI Applications 具有内置的安全过滤条件,可帮助客户在其使用场景中阻止潜在的有害输出。如需了解详情,请参阅 Vertex AI Search 的安全设置。
将 AI Applications 集成到客户独特的应用场景和语境中时,可能需要考虑其他 Responsible AI 注意事项和模型限制。我们鼓励客户利用公平性、可解释性、隐私权和安全推荐做法。
Vertex AI Search 的安全设置
Vertex AI Search 提供安全搜索过滤器,用于过滤含有露骨内容的网站搜索结果。含有露骨内容的搜索结果可能包括色情内容、暴力内容和血腥内容。安全搜索过滤功能不适用于私密内容。
安全搜索可应用于 Vertex AI Search 编入索引的公开内容,例如网站。安全搜索功能处于开启状态时,无论客户是查询图片、视频还是网站,Vertex AI Search 都有助于从客户的 Vertex AI Search 搜索结果中滤除露骨内容。虽然这些过滤器的准确度并非 100%,但我们会不断评估和更新过滤功能。
在某些情境和使用情形下,客户可能需要访问各种信息(即使其中包含露骨内容),才能从 Vertex AI Search 中获得全面的数据洞见和结果。客户可以使用 API 通过将 safe_search 设置为“true”或“false”来启用和停用安全过滤条件。
safe_search 设置适用于搜索结果,也适用于 Vertex AI Search 输出(例如基于搜索结果的总结)。
Vertex AI Search 输出(例如总结)会根据安全属性列表进行评估,即使 safe_search 处于关闭状态,也会过滤掉可能有害的内容。
针对不公开的内容和网站搜索的总结功能
Vertex AI Search 输出(例如总结)会根据安全属性列表进行评估,该列表会过滤掉可能有害的内容,例如诋毁性、露骨色情、恶意或暴力信息,即使网站搜索的 safe_search 处于关闭状态也是如此。此外,您还可以在 Vertex AI Search API 响应中使用 safetyAttributes 过滤掉包含“有害类别”和可能被视为敏感的主题的回答。
后备响应
如果总结模型对请求的回答是空字符串或通用回答,则表示输入或输出会触发安全过滤条件。在 Vertex AI Search API 响应中,如果检测到潜在的违规情况,SummarySkippedReason 会设置为 BLOCKED_DUE_TO_POTENTIAL_POLICY_VIOLATION。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-05。"],[[["\u003cp\u003eVertex AI Agent Builder utilizes Google's AI technology to create generative AI applications, but developers should be aware of potential risks like generating offensive, incorrect, or unintended content.\u003c/p\u003e\n"],["\u003cp\u003eGoogle's AI Principles guide Vertex AI Agent Builder's design, and built-in safety filters are included to help block harmful outputs, although these are not 100% accurate.\u003c/p\u003e\n"],["\u003cp\u003eVertex AI Search offers SafeSearch filters for public content to help filter out explicit materials, with the option to enable or disable these filters via API settings.\u003c/p\u003e\n"],["\u003cp\u003eVertex AI Search outputs, such as summarization, are automatically filtered for harmful content, including derogatory, sexually explicit, toxic, or violent information, even if SafeSearch is turned off.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers are encouraged to follow Responsible AI best practices and be mindful of the model's limitations, especially when using private data, while also recognizing that human validation and oversight are crucial.\u003c/p\u003e\n"]]],[],null,["# Responsible AI\n\nAI Applications lets developers tap into the power of Google's foundation\nmodels, search expertise, and conversational AI technologies to create\nenterprise-grade generative AI applications.\nAs an early-stage technology, its\nevolving capabilities and uses create potential for misapplication, misuse, and\nunintended or unforeseen consequences. For example, AI Applications can\ngenerate output that you don't expect, including text that's offensive,\ninsensitive, or factually incorrect.\n\nGiven these risks and complexities, AI Applications is designed with\nGoogle's [AI Principles](https://ai.google/principles/) in mind. However, it is\nimportant for developers to understand and test their models to deploy safely\nand responsibly. To aid developers, AI Applications has built-in safety\nfilters to help customers block potentially harmful outputs within their use\ncase. For more information, see [Safety settings for Vertex AI Search](#safety-settings-search).\n\nWhen AI Applications is integrated into a customer's unique use case and\ncontext, additional responsible AI considerations and model limitations might need\nto be considered. We encourage customers to leverage fairness, interpretability,\nprivacy, and security [recommended\npractices](https://ai.google/responsibilities/responsible-ai-practices/).\n\nSafety settings for Vertex AI Search\n------------------------------------\n\nVertex AI Search offers SafeSearch filters to filter explicit website\nsearch results. Explicit results might include content like pornography, violence,\nand gore. SafeSearch filtering is not available for private content.\n\nSummarization (both for website search and private content) filters out\nresponses such as derogatory, sexually explicit, toxic, or violent information.\nAdditionally, the summarization response contains safety attributes, which\ninclude \"harmful categories\" and topics that might be considered sensitive.\n\n### Website search\n\nSafeSearch can be applied to public content indexed by\nVertex AI Search, such as\n[websites](/generative-ai-app-builder/docs/enterprise-search-introduction#websites). When SafeSearch is on,\nVertex AI Search helps filter out explicit content in a customer's\nVertex AI Search results for all queries across images, videos, and\nwebsites. While those filters are not 100% accurate, we continuously evaluate\nand update filtering capabilities.\n\nIn certain contexts and use cases, customers might require access to a wide range\nof information, even if it includes explicit content, to gather comprehensive\ninsights and results from Vertex AI Search. Customers can enable and\ndisable safety filters using the API by setting `safe_search`\nto \"true\" or \"false\".\n\nTo enable SafeSearch for Vertex AI Search, use the following API\ncall: \n\n curl -X POST\\\n -H \"Authorization: Bearer $(gcloud auth application-default print-access-token)\"\n -H \"Content-Type: application/json\"\\\n \"https://discoveryengine.googleapis.com/v1/projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/global/collections/default_collection/dataStores/\u003cvar translate=\"no\"\u003eDATA_STORE_ID\u003c/var\u003e/servingConfigs/default_config:search\"\n -d '{\n \"query\": { \"input\": \"\u003cvar translate=\"no\"\u003eFREE_TEXT\u003c/var\u003e\"},\n \"serving_config\": \"\u003cvar translate=\"no\"\u003eSERVING_CONFIG_ID\u003c/var\u003e\",\n \"safe_search\": \"true\",\n }'\n\nTo enable SafeSearch for Search with follow-ups in Vertex AI Search,\nuse the following API call: \n\n curl -X POST \\\n -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n -H \"Content-Type: application/json\" \\\n \"https://discoveryengine.googleapis.com/v1beta/projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/global/collections/default_collection/dataStores/\u003cvar translate=\"no\"\u003eDATA_STORE_ID\u003c/var\u003e/conversations/\u003cvar translate=\"no\"\u003eCONVERSATION_ID\u003c/var\u003e:converse\" \\\n -d '{\n \"query\": { \"input\": \"\u003cvar translate=\"no\"\u003eFREE_TEXT\u003c/var\u003e\"},\n \"serving_config\": \"\u003cvar translate=\"no\"\u003eSERVING_CONFIG_ID\u003c/var\u003e\",\n \"safe_search\": \"true\",\n }'\n\nThe `safe_search` setting applies to search results and also to\nVertex AI Search outputs like summarization (which is based on the search\nresults).\n\nVertex AI Search outputs, such as summarization, are assessed against a list of\nsafety attributes which filter potentially harmful content even when\n`safe_search` is turned off.\n\n### Summarization for private content and website search\n\nVertex AI Search outputs, such as summarization, are assessed against a list of\nsafety attributes, which filters potentially harmful content such as derogatory,\nsexually explicit, toxic, or violent information, even when `safe_search` for\nwebsite search is turned off. Additionally, you can filter out responses which\ninclude \"harmful categories\" and topics that might be considered sensitive by\nusing `safetyAttributes` in the Vertex AI Search API response.\n\n### Fallback responses\n\nIf the summarization model responds to a request with an empty string or a\ngeneric response, it means that either the input or the output is triggering a\nsafety filter. In the Vertex AI Search API response,\n`SummarySkippedReason` is set to `BLOCKED_DUE_TO_POTENTIAL_POLICY_VIOLATION` if\na potential policy violation is detected.\n\nIf you think that a safety filter is being inappropriately\ntriggered, [report this issue](/support/docs/issue-trackers) via the\nGoogle Cloud console.\n\nAdditional resources\n--------------------\n\n- Learn more about Google's recommendations for [Responsible AI practices](https://ai.google/responsibility/responsible-ai-practices/)\n- Read our blog, [A shared agenda for responsible AI progress](https://blog.google/technology/ai/a-shared-agenda-for-responsible-ai-progress/)"]]