TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

So Google's Gemini Doesn't Like Python Programming and Sanskrit?

97 点作者 shantnutiwari大约 1 年前

24 条评论

ParacelsusOfEgg大约 1 年前
I wonder if the Saraswati mantra question was censored due to some context that occured earlier in the conversation with Gemini.<p>From the screenshot, it looks like the title of that conversation is &quot;Hindi hate&quot; which is a little bit suspect.
评论 #39505856 未加载
评论 #39505561 未加载
ArchD大约 1 年前
I tried it for myself. The prompt for the Python was not given, so I skipped it, but I asked in a new session &quot;What is mantra for Saraswati?&quot;<p>An excerpt from the result: ॐ ऐं वाग्देव्यै विद्महे कामराजाय धीमहि। तन्नो देवी प्रचोदयात्॥ (Om Aim Vagdevyai Vidmahe Kamarajaya Dhimahi। Tanno Devi Prachodayat)<p>So, there is Sanskrit in the response.<p>IDK what the article is on about, especially when the complete prompts were not given. Or, maybe Google fixed the problem.
YaBa大约 1 年前
It&#x27;s worthless, 90% of programming related questions (that ChatGPT can answer) are blocked in Gemini for &quot;security reasons&quot; (regular questions, not funny business like the article). Google lost the AI race. No matter how good Gemini turns in the future, people will only use all the other alternatives.
评论 #39505755 未加载
评论 #39505565 未加载
评论 #39505813 未加载
rafram大约 1 年前
This isn&#x27;t Gemini, it&#x27;s Poe. The blog post even admits that! I entered the exact same messages into Google AI Studio and it happily translated it to Sanskrit without any complaints about safety.
评论 #39506257 未加载
评论 #39505994 未加载
ummonk大约 1 年前
Gemini safety functions being baffling as usual.<p>Regarding the article though, it’s very normal to use a cache decorator in Python: <a href="https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;functools.html" rel="nofollow">https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;functools.html</a><p>Additionally, Sanskrit, Hindi, and English aren’t scripts. The standard scripts for English and Hindi respectively are Latin and Devanagari but there is no one correct script for Sanskrit.
labrador大约 1 年前
I say this as a huge Google fan: Google needs a new CEO immediately. This is their &quot;iPhone moment.&quot; I&#x27;m referring to 2007 when Microsoft&#x27;s CEO Steve Balmer said the iPhone would never take off, leading to his replacement with Satya Nadella. Does anyone think Microsoft would be the most valuable company the world today if Steve Balmer stayed in charge? Things looked bleak for Microsoft in 2007 like things look bleak for Google today. Clearly, someone needs to come in an shake Google employees up to get them out of their bubble.
评论 #39506076 未加载
haolez大约 1 年前
Why won&#x27;t a big player just bite the bullet and release &quot;unsafe&quot; models? The backlash can&#x27;t be worse than creating crippled products that will be surpassed by competitors (from the US and the rest of the world). What additional risks would a free model add to something like Google Search?
评论 #39506054 未加载
评论 #39505867 未加载
评论 #39505865 未加载
评论 #39505783 未加载
poszlem大约 1 年前
Of all tyrannies, a tyranny sincerely exercised for the good of its victims may be the most oppressive. It would be better to live under robber barons than under omnipotent moral busybodies. The robber baron&#x27;s cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end for they do so with the approval of their own conscience.<p>― C. S. Lewis<p>I think of this quote a lot every time I see how neutered gemini got by the google do-gooders.
评论 #39505507 未加载
评论 #39505741 未加载
necovek大约 1 年前
Yeah, chatbots are still dumb, and &quot;safeguards&quot; even more so.<p>I am still surprised you are not familiar with @lru_cache when you want to write about decorators in Python.
评论 #39505391 未加载
评论 #39505304 未加载
danans大约 1 年前
It handles Sanskrit just fine. I asked regular Gemini:<p>Translate this Sanskrit phrase to English: &quot;Gajah vrkSam khaadati&quot;<p>The response was:<p>Sure. Here is the translation of the Sanskrit phrase &quot;Gajah vrkSam khaadati&quot; to English:<p>&quot;The elephant eats the tree.&quot;<p>The phrase is composed of the following words:<p>Gajah (गज) - elephant vrkSa (वृक्ष) - tree khaadati (खादति) - eats The phrase is in the present tense, and the subject is the elephant. The object is the tree. The verb &quot;khaadati&quot; is in the third person singular form, which agrees with the subject &quot;gajah.&quot;<p>I hope this helps! Let me know if you have any other questions.
gyudin大约 1 年前
Who would have thought that mass layoffs of QAs and SDETs would affect quality of the products :)
评论 #39505808 未加载
Thorrez大约 1 年前
This article seems to be confusing generators with decorators.<p>Disclosure: I work at Google but not on Gemini.
评论 #39505855 未加载
coldtea大约 1 年前
&gt;<i>It gave me a few tips, but there was one thing I didn&#x27;t understand: It said &quot;Adding caching to functions&quot;. Though I knew what caching is, I&#x27;d never heard anyone do it to Python functions</i><p>Not related to the Gemini issue, but what it describes as &quot;adding caching to functions&quot; is what is regularly called &quot;memoization&quot;. Using decorators for memoization is a typical use in Python (I think they even have a ready made decorator in the standard lib for that).
DrNosferatu大约 1 年前
Age checks should be sufficient.<p>When the internet became popular in the 90s, no one censored it.
评论 #39505747 未加载
评论 #39505736 未加载
rsynnott大约 1 年前
&gt; I had just asked about projects using generators in Python. Gemini suggested caching. But then it decided I could be breaking the law just by writing code that runs on my laptop and censored itself.<p>No, that&#x27;s not what happened. It didn&#x27;t &#x27;decide&#x27; anything; they don&#x27;t do that. The censorship misfired, as is common on these things; no-one, whether human or magic robot, has decided that caching is dangerous illegal behaviour (in the general case; there are obviously edge cases where it is both).
ajross大约 1 年前
This whole &quot;I asked a LLM something a little weird or out of context and got a funny response, which confirms all my priors about this list of conspiracies&quot; gotcha genre is already getting tiresome.
评论 #39505726 未加载
akomtu大约 1 年前
The big tech doesn&#x27;t like that the big mirror they&#x27;ve built reflects the reality, for indeed, it would be too dangerous to let a society see what it really is. Now they&#x27;re trying to warp this mirror to align the reflection with their desires.
banthar大约 1 年前
100% agree with the AI on @cache decorator. It&#x27;s a footgun and should never be recommended without a proper disclaimer. Unless it&#x27;s a simple &quot;single shoot&quot; script, you really do not want the cache global like that.
sweezyjeezy大约 1 年前
re: caching python functions, is it referring to functools.lru_cache maybe?
评论 #39505431 未加载
brigadier132大约 1 年前
Ai safety is so absurd, most people when they refer to Ai safety they mean &quot;don&#x27;t connect skynet to the nuclear warheads&quot;.
ldjkfkdsjnv大约 1 年前
Its funny, when you censor a model its performance goes down. You are introducing illogical data into the model, which degrades its ability to perform in the real world. The same thing happens with human beings.<p>Also, all this censorship is in Google search, you just cant see it. For the first time, the bias is laid bare. Big tech wont be able to censor these models in the way they think
评论 #39505327 未加载
评论 #39505762 未加载
评论 #39507409 未加载
评论 #39505789 未加载
accurrent大约 1 年前
From the article:<p>&gt; Evidently, Sanskrit or Hindi are not banned in China<p>Err... isnt this a bit bigoted.<p>I mean I get that there is beef between India and China. Annecdotely Ive lived in China as an Indian and never really faced the issue of being banned from using my mothertongue with my family.<p>Also: No sanskrit is not banned in china, a lot of old sanskrit documents that survived the cultural revolution are actually preserved. There are even some chinese who worship saraswati... a lot of hindu deities are incorporated into Chinese folk religion.
bluedemon大约 1 年前
Gemini keeps disappointing me. It keeps making code up that is not accurate. I asked it some questions about a python library and the answers were inaccurate. I even instructed it to refer to the docs, but it still fails as Gemini made up methods that don&#x27;t exist.<p>I also asked Gemini about git and that didn&#x27;t go well either.
评论 #39507398 未加载
typeofhuman大约 1 年前
Or white people