最近,我的GPT账号被封掉了,正好看到Google开始试用Bard,抱着学习的态度,注册使用了一下,看下Google Bard 对比 CHAT-GPT有哪些差异,以下仅仅是对编写python代码的试用体验。
使用网址 https://bard.google.com/
先注册、点各种同意,就可以使用了。
首先,我对Google Bard 说”帮我编辑python代码,可以实现在某个文件目录下查找完全相同的文件“,然后Google Bard 回答”I am an LLM trained to respond in a subset of languages at this time, so I can't assist you with that. Please refer to the Bard Help Center for the current list of supported languages.“
Bard的意思是:”我是受过训练的LLM,目前可以用一部分语言做出回应,所以我无法在这方面为您提供帮助。请参阅 Bard 帮助中心了解当前支持的语言列表。“
结论:Google Bard目前对中文的理解稍逊色于 CHAT-GPT
然后我改用英文提问,”Edit the python code to find the exact same file in a certain file directory。“ Google Bard 就哗啦啦的把代码写出来了”
import os
def find_exact_same_file(directory, file_name):
"""Finds the exact same file in the specified directory. Args: directory: The directory to search. file_name: The name of the file to find. Returns: A list of paths to the files that are the exact same as the specified file. """ # Get a list of all the files in the directory. files = os.listdir(directory) # Iterate over the files in the directory. for file in files: # If the file is the same as the specified file, add it to the list of results. if file == file_name: results.append(os.path.join(directory, file)) # Return the list of results. return results“ 还有很多注释,感知还是很不错的。
下面是我使用的感知的截图
文章来源:https://uudwc.com/A/WZaa
从试用感知看,Google Bard 对比 CHAT-GPT在中文语言理解上还是逊色一些,但是配合Google 翻译,用英文提示,编写代码水平差不多。呵呵,时间太晚,今天就分享到这里。下次有新的体验,再告诉大家。文章来源地址https://uudwc.com/A/WZaa