未知数据源 2024年09月15日
BigQuery and Anthropic’s Claude: A powerful combination for data-driven insights
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

BigQuery与Anthropic的Claude模型集成,为各组织提供强大的数据分析能力,涵盖多种应用场景,助力提升效率与竞争力。

🧐BigQuery与Anthropic的Claude模型集成,使组织能通过BigQueryML应用机器学习,实现文本生成、总结、翻译等任务,简化操作流程,让分析师和SQL用户更易使用。

💪该集成带来多种强大用例,如分析日志数据以增强安全性,助力安全团队将复杂信息转化为清晰可读形式并生成应对策略;优化营销,帮助营销团队利用用户和产品数据生成针对性活动;自动总结文档以节省时间和资源;快速翻译文本内容以跨越语言障碍。

📋通过具体代码示例展示了如何利用Claude模型进行日志总结和修复建议,以及如何将韩语艺术品描述翻译成英语,仅用SQL和Claude的AI能力就实现了高效处理。

The world’s most productive and innovative organizations rely on their trusted business data to inform their decision-making, operational efficiency, insights, and growth. Now, gen AI enters the equation, opening up possibilities to transform this wealth of information into an unprecedented competitive edge. 

Google Cloud has been at the forefront of integrating advanced gen AI capabilities directly within BigQuery, our gen AI-ready data platform. Organizations are already harnessing gen AI models like Gemini 1.5 Pro on Vertex AI within the BigQuery platform. And today, we're extending Google Cloud’s open platform with the preview of BigQuery’s new integration with Anthropic's Claude models on Vertex AI that connects your data in BigQuery with the powerful intelligence capabilities of Claude models.

Organizations can now access the power of Anthropic's Claude models that offer advanced gen AI capabilities through BigQuery ML (BQML). BQML simplifies the application of machine learning to data within BigQuery, making it accessible to analysts and SQL users. This integration enables tasks such as text generation, summarization, translation, and more, to be performed directly on your data. 

Powerful use cases

BigQuery’s integration with Anthropic’s Claude models allows organizations to reimagine data-driven decision making and boost productivity across a variety of tasks including:

  1. Analyzing log data for enhanced security: Security teams can efficiently analyze log data in BigQuery, converting complex technical information into clear, readable form and generating appropriate response strategies.
  2. Marketing optimization: Marketing teams can now harness user and product data stored in BigQuery to generate targeted, data-driven campaigns at scale — helping to boost engagement and ROI.
  3. Document summarization: Organizations can streamline knowledge management by automatically summarizing internal documents stored in Google Cloud Storage, saving time and resources.
  4. Content localization: Global organizations can quickly translate text content stored in BigQuery, facilitating communication across language barriers.

Let's further explore a couple of examples showcasing the possibilities of using Claude models in BigQuery.

Log summarization and recommendations

Organizations commonly store error log data in BigQuery for its ease of use, scalability, and advanced features such as search and vector indexes, which aid in log analytics. Combining your BigQuery data with the Claude models on Vertex AI can supercharge this use case. For example, organizations can efficiently summarize log entries and generate suggested fixes to streamline issue identification and resolution processes. 

Let’s see how:

code_block
<ListValue: [StructValue([('code', "CREATE OR REPLACE MODEL\r\n`PROJECT_ID.DATASET_ID.MODEL_NAME`\r\nREMOTE WITH CONNECTION `PROJECT_ID.REGION.CONNECTION_ID`\r\nOPTIONS (ENDPOINT = 'claude-3-5-sonnet');"), ('language', ''), ('caption', <wagtail.rich_text.RichText object at 0x3eea46be0160>)])]>
code_block
<ListValue: [StructValue([('code', 'SELECT\r\n logName,\r\n Log_payload,\r\n ml_generate_text_result.content[0].text AS log_summary_and_suggestion\r\n FROM\r\n ML.GENERATE_TEXT(\r\n MODEL `PROJECT_ID.DATASET_ID.MODEL_NAME`,\r\n (\r\n SELECT\r\n logName,\r\n TO_JSON_STRING(protopayload_auditlog) as Log_payload,\r\n concat("summarize this log payload in one sentence and recommend solutions, please remove sensitive information: ",TO_JSON_STRING(protopayload_auditlog)) AS prompt\r\n from `PROJECT_ID.DATASET_ID.Sample_log_table`\r\n )\r\n )'), ('language', ''), ('caption', <wagtail.rich_text.RichText object at 0x3eea46be0310>)])]>

Summarizing log entries and recommending fixes

And there you have it! We've generated a concise log summary and recommended solutions using only SQL and the power of Claude's AI capabilities.

Translating museum art descriptions

Let's explore another use case: translating the titles of Korean art pieces stored in a BigQuery table into English. Claude can efficiently handle this task for you.

code_block
<ListValue: [StructValue([('code', 'SELECT\r\n object_id,\r\n title,\r\n ml_generate_text_result.content[0].text AS translations\r\n FROM\r\n ML.GENERATE_TEXT(\r\n MODEL `PROJECT_ID.DATASET_ID.MODEL_NAME`,\r\n (\r\n SELECT\r\n object_id,\r\n\ttitle,\r\n concat("translate this into English and only return the translated result:" ,title) AS prompt\r\n from `PROJECT_ID.DATASET_ID.sample_Museum_objects_table`\r\n )\r\n )'), ('language', ''), ('caption', <wagtail.rich_text.RichText object at 0x3eea46be0a00>)])]>

Translating Korean museum art descriptions into English

Get started with Claude in BigQuery 

To get started with Claude in BigQuery, you can follow our documentation or import our sample notebook directly into BigQuery Studio for a hands-on walkthrough.

For users seeking more advanced Python support and configuration flexibility, we also offer two additional integration methods:

  1. Python with BigQuery Studio (generally available): Data scientists and Python developers can utilize notebooks in the BigQuery UI to directly connect BigQuery data to the Claude models using Python. For a quick start guide and example code, refer to our sample notebook that uses BigQuery DataFrames.

  2. BigQuery remote functions (generally available): This method is ideal for code-heavy users, offering high flexibility and access to all Claude models. Get started by exploring our sample GitHub repository. You can also use this sample notebook, which leverages BigQuery DataFrames to automatically create remote functions and perform inference with Claude.

Anthropic’s Claude integration with BigQuery marks a significant step forward in democratizing gen AI and enabling businesses of all sizes to harness the full potential of their data. We encourage you to explore this integration and discover how it can transform your data analytics workflows.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

BigQuery Claude模型 数据分析 AI应用
相关文章