<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Artificial-Intelligence on digikar's microblog</title><link>http://digikar.online/microblog/tags/artificial-intelligence/</link><description>Recent content in Artificial-Intelligence on digikar's microblog</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 17 Feb 2026 00:28:43 +0100</lastBuildDate><atom:link href="http://digikar.online/microblog/tags/artificial-intelligence/index.xml" rel="self" type="application/rss+xml"/><item><title>How do I use AI (LLMs)?</title><link>http://digikar.online/microblog/p/ai-llm-use/</link><pubDate>Tue, 17 Feb 2026 00:28:43 +0100</pubDate><guid>http://digikar.online/microblog/p/ai-llm-use/</guid><description>&lt;p&gt;Over the past few days, I have been asked the &amp;ldquo;How do I use AI?&amp;rdquo; question a few times. So, here&amp;rsquo;s an attempt at a common answer along with a few potential FAQs.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I think AI will replace us soon (= next 5 years)?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;My own long term interest has been in the development of AI that can be at par with humans in certain ways. And to the extent it is not at par with humans, it will remain a topic of research. What certain ways? Answering that can be multiple research programs in itself! One aspect is causality, and perhaps, the most accessible resource is &lt;a class="link" href="https://bayes.cs.ucla.edu/WHY/why-ch1.pdf" target="_blank" rel="noopener"
&gt;the first chapter of Judea Pearl&amp;rsquo;s The Book of Why&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;AI &lt;em&gt;looks&lt;/em&gt; great only at tasks you are bad at, because you don&amp;rsquo;t even (i) have the basic knowledge to judge it (ii) have not spent enough time to judge its output. Mere readability and plausible sounding is not understanding, remember?&lt;/p&gt;
&lt;p&gt;Briefly, no, I do not think AI will replace us in the next 5 years. One reason is causality. But, there are multiple reasons.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I think companies will replace human employees because of AI?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is a concern I share. To the extent that companies want to &lt;em&gt;cut down costs&lt;/em&gt; and generate &lt;em&gt;plausible looking progress&lt;/em&gt;, AI seems like a great deal, unfortunately. Crony capitalism at its best. I&amp;rsquo;d guess the only good way out is unionizing. Employee unions are also helpful in other ways beyond the employment threats that AI supposedly places.&lt;/p&gt;
&lt;p&gt;In fact, I now fear, that before the apocalypse due to climate change, we will end up in a situation, where many critical softwares are written by AI which has no causal understanding or any of the other forms of understanding evolution has endowed us with. The critical softwares written by AI and unverified by humans will have many edge cases which would have been detected by human teams. These critical softwares will then trigger system failures affecting the lives of many. I can only hope there are enough safeguards in place before AI written softwares reach hospitals, medical devices, nuclear systems, power grids, flight systems, car softwares, and unimaginably many others. If you are using Windows, you might already have received a taste of &lt;a class="link" href="https://tech.yahoo.com/computing/articles/broken-patches-ai-code-windows-193024345.html" target="_blank" rel="noopener"
&gt;things to come&lt;/a&gt;. Also see &lt;a class="link" href="https://www.techrepublic.com/article/ai-generated-code-outages/" target="_blank" rel="noopener"
&gt;other&lt;/a&gt; &lt;a class="link" href="https://www.bugsink.com/blog/copilot-induced-crash/" target="_blank" rel="noopener"
&gt;posts&lt;/a&gt; &lt;a class="link" href="https://www.reddit.com/r/engineering/comments/1oxqh9d/young_engineers_do_not_trust_ai_at_its_word/" target="_blank" rel="noopener"
&gt;like these&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I think AI is totally useless? Do I use AI? What do I use it for?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;At its core, generative AI &amp;ndash; the LLMs powering ChatGPT &amp;ndash; are based on word/picture embeddings generated using &amp;ldquo;fill in the missing word/token/picture given the context&amp;rdquo;. In other words, these tools are &lt;em&gt;amazing&lt;/em&gt; at finding statistical regularities in the text. And to some extent, these also approximate semantic understanding. They key word is &lt;em&gt;some&lt;/em&gt;. Given a question or query, these tools can allow you to easily narrow down your search to a 100 documents in a million. Which of those documents are most relevant is for &lt;em&gt;you&lt;/em&gt; to find out. In this sense, they are amazing.&lt;/p&gt;
&lt;p&gt;In other words, I think AI works great as glorified search engines. However, a critical step is to not trust the output it generates, but, depending on the stakes involved, go and check the references it cites.&lt;/p&gt;
&lt;p&gt;Many times the AI will say something that the citation does not say at all! Additionally, in an attempt to summarize the reference, it loses the nuance. For instance, on stackexchange websites, if an answer is bad, someone will point it out in the comments. Amongst two answers, if one answer has 900 upvotes and the other has 10, it&amp;rsquo;s more plausible that the one with the 900 upvotes is better in some way. (In what way? For that you might need to dig around more.) AI can lose out this context. It can also lose out the context that someone answered, someone countered, the answerer countered and clarified, and therefore, the answer is actually good and not bad as the first comment might make one think.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m also aghast to say, AI can sometimes provide references that even my supervisors might not have felt relevant. Instead of asking AI the question, &amp;ldquo;How do I &amp;hellip;&amp;rdquo; or &amp;ldquo;What is the &amp;hellip;&amp;rdquo;, ask it &amp;ldquo;Who has written an article or resource on how do I &amp;hellip;&amp;rdquo; or &amp;ldquo;Who has written an article or resource on what is the &amp;hellip;&amp;rdquo;. Then check out the references it cites, and use your own brains.&lt;/p&gt;
&lt;p&gt;I don&amp;rsquo;t need to write repetitive emails often. And it is also acceptable (and preferred) to reply to emails briefly in one sentence. So, that, hasn&amp;rsquo;t been my common use.&lt;/p&gt;
&lt;p&gt;I think there are better tools for spelling and grammar than general purpose LLMs. (Looks at &lt;a class="link" href="https://www.grammarly.com/" target="_blank" rel="noopener"
&gt;Grammarly&lt;/a&gt;.) I still think it is better than nothing to ask them to review short sections of your work. Again, take their answers with skepticism. As you learn more about different kinds of writing, you will discover new rules of thumbs to keep in mind.&lt;/p&gt;
&lt;p&gt;I use AI to generate code templates as well as for &amp;ldquo;function finding&amp;rdquo;: Quick, &lt;em&gt;How do I remove whitespaces from the end of a string in Python? In Javascript? In Common Lisp?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Based on examples I see in the wild (eg. &lt;a class="link" href="https://www.reddit.com/r/Julia/comments/1p4i7yd/building_standalone_julia_binaries_a_complete/" target="_blank" rel="noopener"
&gt;this in Julia&lt;/a&gt;, &lt;a class="link" href="[posts]%28https://www.bugsink.com/blog/copilot-induced-crash/%29" &gt;the above in Python&lt;/a&gt;, &lt;a class="link" href="https://www.reddit.com/r/Common_Lisp/comments/1qtwd45/comment/o37p1lx/" target="_blank" rel="noopener"
&gt;this in Common Lisp&lt;/a&gt;, I don&amp;rsquo;t trust AI to generate good code. And no, it is not a matter of giving &lt;a class="link" href="https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20does%20not%20follow%20instructions" target="_blank" rel="noopener"
&gt;more&lt;/a&gt; &lt;a class="link" href="https://github.com/google-gemini/gemini-cli/issues?q=is%3Aissue%20state%3Aopen%20does%20not%20follow%20instructions" target="_blank" rel="noopener"
&gt;specific instructions&lt;/a&gt; &amp;ndash; it is an open issue that coding agents do not obey your instructions. Perhaps, because they do not have any notion of an &amp;ldquo;instruction&amp;rdquo; at all. All they are generating is plausible looking text given the context. Additionally, writing code is not the hard part. Reading, understanding, maintaining, and writing code that is easy to read, understand and maintain is hard. Better to do it on your own than read through someone&amp;rsquo;s shit.&lt;/p&gt;
&lt;p&gt;The developer of Claude Code &amp;ndash; Anthropic itself &amp;ndash; highlights that &lt;a class="link" href="https://www.anthropic.com/research/AI-assistance-coding-skills" target="_blank" rel="noopener"
&gt;the benefits from AI might be just about 10% even while the impact on understanding and skill formation can be larger&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;That said, given some possibilities highlighted above, I have also been experimenting with &lt;a class="link" href="https://ollama.com/" target="_blank" rel="noopener"
&gt;ollama&lt;/a&gt; and &lt;a class="link" href="https://github.com/ggml-org/llama.cpp" target="_blank" rel="noopener"
&gt;llama.cpp&lt;/a&gt;. I thought I wasn&amp;rsquo;t ever going to need more than 32GB RAM. Boy, I am wrong, I&amp;rsquo;m going to need 64GB RAM, particularly with modern chips coming with powerful GPUs and NPUs.&lt;/p&gt;
&lt;p&gt;I also tried to think up a method by which AI can be made to respect the possibilities it is provided with. Unfortunately, it seems that unless one constrains those possibilities externally, there is no way to constrain them internally. But as soon as one imposes external constraints, one loses out on the composability that AI seemingly provides. In other words, human-like intelligence is an unsolved problem.&lt;/p&gt;
&lt;p&gt;Lastly, &lt;a class="link" href="https://character.ai/" target="_blank" rel="noopener"
&gt;Character AI&lt;/a&gt; can be surprisingly good for general chat as well as if you enjoy roleplays but haven&amp;rsquo;t formed your own roleplay-group. Still, they can get quite unreasonable at times.&lt;/p&gt;
&lt;p&gt;Briefly, AI is useful for querying its vast knowledge base to find references that you can judge for yourself. And also for some creative tasks.&lt;/p&gt;
&lt;p&gt;Bonus: &lt;a class="link" href="https://www.nytimes.com/2023/03/08/opinion/noam-chomsky-chatgpt-ai.html" target="_blank" rel="noopener"
&gt;Noam Chomsky: The False Promise of ChatGPT&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Some issues with Probabilities and Bayesianism for Unified Models of Cognition or Artificial General Intelligence</title><link>http://digikar.online/microblog/p/prob-issues/</link><pubDate>Fri, 14 Nov 2025 13:49:34 +0100</pubDate><guid>http://digikar.online/microblog/p/prob-issues/</guid><description>&lt;p&gt;Bayesian Methods provide a reasonable model of updating Probabilities of Beliefs in the face of upcoming information. Taken as a framework theory (unfalsifiable) of cognition or intelligence for a particular task, these can be pretty good for providing a precise null theory to compare cognition against (citation needed). Similarly, it also provides a good alternative to the Frequentist approaches to statistical inference.&lt;/p&gt;
&lt;p&gt;However, it becomes problematic when it starts being used as a model of unified cognition or general intelligence.&lt;/p&gt;
&lt;p&gt;Wikipedia provides the motivation for &lt;a class="link" href="https://en.wikipedia.org/wiki/Probability_theory" target="_blank" rel="noopener"
&gt;Probability Theory&lt;/a&gt; as:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Probability is a way of assigning every &amp;ldquo;event&amp;rdquo; a value between zero and one, with the requirement that the event made up of all possible results (in our example, the event {1,2,3,4,5,6}) be assigned a value of one. To qualify as a probability distribution, the assignment of values must satisfy the requirement that if you look at a collection of mutually exclusive events (events that contain no common results, e.g., the events {1,6}, {3}, and {2,4} are all mutually exclusive), the probability that any of these events occurs is given by the sum of the probabilities of the events.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This already presents several issues:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;You require a well-specified set. There&amp;rsquo;s no specification how to assign probability to a new event that is outside the set.&lt;/li&gt;
&lt;li&gt;Probabilities should be kept consistent with each other, respecting &lt;a class="link" href="https://en.wikipedia.org/wiki/Probability_axioms" target="_blank" rel="noopener"
&gt;its axioms&lt;/a&gt;. Not doing so leads to &lt;a class="link" href="https://en.wikipedia.org/wiki/Dutch_book_theorems#Dutch_books" target="_blank" rel="noopener"
&gt;Dutch books&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;The uncertainties quantified by probabilities are relative uncertainties rather than absolute ones. This relates to the first point. &lt;a class="link" href="https://digikar99.github.io/microblog/p/nars-prob-nov-2025/" target="_blank" rel="noopener"
&gt;I have argued about this before.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;When one tries to quantify the uncertainty of all beliefs by probabilities, and tries to remain consistent, this can require updation across a wide range of beliefs. This can be computationally expensive. It is also dissimilar to humans who seem to be able to hold mutually contradictory beliefs (as long as they are &amp;ldquo;far apart&amp;rdquo; in reasoning chains).&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To actually state the resulting unified model of cognition or general intelligence rigorously, one needs to specify what the probabilities are &lt;em&gt;of&lt;/em&gt;, that is, what are the elements of the set? I have seen zero discussion of this in Cognitive Science. Fortunately, there is a relevant entry in the &lt;a class="link" href="https://plato.stanford.edu/entries/logic-probability/" target="_blank" rel="noopener"
&gt;Stanford Encyclopaedia of Philosophy&lt;/a&gt; that discusses Modal Probability Logics and First-order Probability Logic.&lt;/p&gt;
&lt;p&gt;Classical mathematical (first-order) logic has several issues. Chapter 1 of Pei Wang&amp;rsquo;s book on &lt;a class="link" href="https://www.worldscientific.com/worldscibooks/10.1142/8665#t=aboutBook" target="_blank" rel="noopener"
&gt;Non-Axiomatic Logic&lt;/a&gt; discusses these. Several of them remain even after mixing probabilities and first order logics:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The truth-value itself may be dependent on assumptions. Thus, a change of assumptions (which a unified model of cognition must be able to handle) can necessitate revision of truth-values.&lt;/li&gt;
&lt;li&gt;Reasoning involves induction, abduction, analogy, and other types of inference beyond deduction itself.&lt;/li&gt;
&lt;li&gt;Classical logic leads to logically correct but intuitively problematic inferences. See &lt;a class="link" href="https://en.wikipedia.org/wiki/Paradoxes_of_material_implication" target="_blank" rel="noopener"
&gt;Paradoxes of Material Implication&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;There is talk on how bayesian updates provides revision. There is work on how hierarchical bayesian models can be used for induction, abduction, etc. There is work on incorporating causality into probabilities. Intuitively, until they are fully specified, that is, as good as a mathematical theory, they are simply models of cognition with unspecified assumptions in the researchers&amp;rsquo; heads. They are not yet unified models of cognition that can be implemented in a machine to yield artificial general intelligence. Concretely, I still do not grasp the arguments.&lt;/p&gt;
&lt;p&gt;Is there an alternative? There are already &lt;a class="link" href="https://en.wikipedia.org/wiki/Outline_of_logic#Branches_of_logic" target="_blank" rel="noopener"
&gt;many branches of logic&lt;/a&gt;. There&amp;rsquo;s also a book written by Graham Priest on &lt;a class="link" href="https://en.wikipedia.org/wiki/An_Introduction_to_Non-Classical_Logic" target="_blank" rel="noopener"
&gt;Non-Classical Logic&lt;/a&gt;. And finally, the one that introduced me to these issues is Pei Wang&amp;rsquo;s work on &lt;a class="link" href="https://www.worldscientific.com/worldscibooks/10.1142/8665#t=aboutBook" target="_blank" rel="noopener"
&gt;Non-Axiomatic Logic&lt;/a&gt; that tries to draw upon several non-classical logics at once.&lt;/p&gt;</description></item></channel></rss>