Google Bard AI 獲得生成程式和除錯的能力

Google logo displayed on a phone screen and Bard sign on Google website displayed on a screen are seen in this illustration photo taken in Krakow, Poland on February 6, 2023. (Photo by Jakub Porzycki/NurPhoto)
Google logo displayed on a phone screen and Bard sign on Google website displayed on a screen are seen in this illustration photo taken in Krakow, Poland on February 6, 2023. (Photo by Jakub Porzycki/NurPhoto)

Google Bard AI 最新獲得了生成程式和除錯的能力,支援 20 種不同的編程語言,包括 C++、Java、JavaScript 和 Python,同時能夠把程式碼整合至 Google 其他產品和匯出至 Colab 雲端 Python 筆電環境,也能編寫 Google Sheets 使用的函數公式。更妙的是 Bard 更會跟使用者提供解釋和除錯,特別適合編程新手能夠邊做邊學,省下在網路尋找原因。

Google Bard coding
Google Bard coding

Google 表示 Bard 現階段有機會生成出未如預期的代碼,但只要回覆「this code didn’t work, please fix it」就能讓 AI 除錯修正。另外也可以把自己的代碼輸入,讓 Bard 嘗試幫忙改進。

是說,ChatGPT 早有同類功能,今天 Google 就是追上對手的步伐。不過考慮到 Google 的保守取態,他們只會一步一步、慢慢地改進 Bard AI,像是早前才預告接入新的更大型語言模型 PaLM。大家如果想要追蹤 Bard 的更新步調,可以到「實驗性更新」頁面查看。