Showing posts with label chatGPT. Show all posts
Showing posts with label chatGPT. Show all posts

Tuesday, September 19, 2023

How trust worthy is AI?

 AI seems to be very promising. It is supposed to make a continental shift type of change. Has that time arrived, yet?

Health care professional, nutritionists, patients of all kinds seek information about what they eat. AI seems to be an ideal tool to get a summarized report of what can be eaten, by who. 

I tried to find about 'Ragi' also known as Finger Millet which has properties superior to rice for its energy and fiber content. I used the easily available Bing AI. I find it awfully lacking in the information it can find.

As I am concerned about diabetes control, I wanted to find nutrition information about 100 grams of Ragi flour.

Here is a picture of what Bing AI (on the right) thinks it is and what the web brings up (on the left).


This is by AI copied from the above:

I apologize for the confusion. You are correct, and I apologize for the incorrect information in my previous response. The values I provided for 10 grams of uncooked ragi powder were mistakenly repeated for 25 grams of uncooked ragi powder. Here are the correct values for 25 grams of uncooked ragi powder:

  • Carbohydrates: Around 0.89 grams.
  • Protein: Approximately 0.13 grams.
  • Potassium: Around 26.66 milligrams.
  • Cholesterol: Cholesterol is found only in animal products, so ragi powder does not contain any cholesterol.
  • Calories: The calorie content of 25 grams of uncooked ragi powder is not available in the search results I found.

I apologize for any confusion caused by my previous response. Please let me know if there’s anything else I can help with!

This is from the web page (Ragi Nutritional Value Per 100g, Finger Millet Health Benefits, Ragi Recipes, Ragi Flour Nutrition Facts | ParentCircle).

Ragi nutritional value (per 100g)

Energy  320kcal

Dietary fiber  11.18g

Total carbohydrate  66.82g

Total fat  1.92g

Protein  7.16g

Total folates  34.66mcg

Vitamin B1 (thiamin)  0.37mg

Vitamin B2 (riboflavin)  0.17mg

Vitamin B3 (niacin)  1.34mg

Vitamin B6 (pyridoxine)  0.05mg

Vitamin K  0.9mcg

Calcium  364mg

Iron  4.62mg

Magnesium  146mg

Phosphorus   210mg

Potassium   443mg

Manganese   3.19mg

Zinc  2.53mg

These is a huge difference in carbohydrate value between these.


Wednesday, May 3, 2023

What is chatGPT and how do you get a copy of chatGPT onto your computer (Windows 10)?

ChatGPT is a member of a family of language models. It may be somewhat trivializing let us start a sentence with some blank,

for example,

John is <blank> to Japan. 

What follows 'is' not hard to guess. These are two possibilities that come to mind. 'going' or 'coming' to insert in the <blank> space. My knowledge of the grammar suggested these based on the language I know. I learned from studying the language and have seen it used many times. 

More generally, a language model uses machine learning to conduct a probability distribution over words used to predict the most likely next word based on a previous entry. Language models learn from the text that can be used for producing original text, predicting the next word in the text, speech recognition, optical speech recognition, and handwriting recognition. ChatGPT is one such language model.

The following describes how we may get it installed on a local computer: 

In order to work with chatGPT you need to get a copy of the program to your local computer. Of course, there are other ways to work without a local copy.

You use the GIT program to get a copy from the remote location to your local computer. The Git tool(program) is used to access the GitHub service. Git is a version control tool that you can run from the command line on your desktop/laptop. 

In the present case, GitHub has the files/directory for working with chatGPT. Using GIT you can bring a copy from the cloud(Internet) hosted service to create a local directory on your computer. Make sure you read the README.md file.


The following block shows all the command line arguments for the GIT command. I may write GIT or Git and they mean the same. It is a rich command and you can do a lot of stuff with it.

============================================================

Microsoft Windows [Version 10.0.19045.2846]

(c) Microsoft Corporation. All rights reserved.


C:\Users\TestUser>Git

usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]

           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]

           [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]

           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]

           <command> [<args>]


These are common Git commands used in various situations:


start a working area (see also: git help tutorial)

   clone      Clone a repository into a new directory

   init       Create an empty Git repository or reinitialize an existing one


work on the current change (see also: git help everyday)

   add        Add file contents to the index

   mv         Move or rename a file, a directory, or a symlink

   reset      Reset current HEAD to the specified state

   rm         Remove files from the working tree and from the index


examine the history and state (see also: git help revisions)

   bisect     Use binary search to find the commit that introduced a bug

   grep       Print lines matching a pattern

   log        Show commit logs

   show       Show various types of objects

   status     Show the working tree status


grow, mark and tweak your common history

   branch     List, create, or delete branches

   checkout   Switch branches or restore working tree files

   commit     Record changes to the repository

   diff       Show changes between commits, commit and working tree, etc

   merge      Join two or more development histories together

   rebase     Reapply commits on top of another base tip

   tag        Create, list, delete or verify a tag object signed with GPG


collaborate (see also: git help workflows)

   fetch      Download objects and refs from another repository

   pull       Fetch from and integrate with another repository or a local branch

   push       Update remote refs along with associated objects


'git help -a' and 'git help -g' list available subcommands and some

concept guides. See 'git help <command>' or 'git help <concept>'

to read about a specific subcommand or concept.

===================================================================

Now all I need to do is run this command:

git clone https://github.com/chatgptui/desktop.git

Friday, March 31, 2023

How do you use the AI chat features in the Microsoft Edge browser? Is it better than Google Search?

This is my first encounter with this feature in Microsoft Edge. I got in by sheer accident and decided to try it out. I just posted a few random questions to see the result of the search. It looks great and is a very easy tool to use. It gives results based on its search and nicely summarizes with references. For software developers, it should be very useful. The present embodiment, it is a better tool than Google Search without any AI add-ins. However, Google has come out with its own AI-powered search tool, AI Chatbot called Bard. Bard is also based on chatGPT.  ChatGPT is owned by Sam Altman and Microsoft has invested $10 billion into chatGPT.


How do you start the chat?

If you notice the following at the top right of your Microsoft Edge (Microsoft EdgeVersion 111.0.1661.44 (Official Build) (64-bit), you will be able to start the chat.


Question 1. I wanted to find out what version of Microsoft Edge would I be able to do chat. Here is the exact question and answer.


Question 2: I taught courses on SQL Server at the Pacific Center of Advanced Technology Training in Honolulu for many years and I wanted to see how it can leverage the chat.

Here is the exact question and answer:


Looks like it could be a good training and learning tool not only for SQL servers but also for all other kinds of software. At this point, I am not sure it can access an available server via the browser to answer specific questions.

Question 3: How many Vietnamese are in Poland?

The Vietnamese embassy and Vietnamese community leaders in Poland estimate that about **20,000 to 30,000 Vietnamese people** may reside in Poland, although the Polish government in 2002 put the upper possible range at about 50,000². The Vietnamese-Polish community is the fourth-largest Vietnamese community in the European Union, after France, Germany, and Czechia¹.


Source: Conversation with Bing, 3/22/2023(1) Vietnamese people in Poland - Wikipedia. https://en.wikipedia.org/wiki/Vietnamese_people_in_Poland Accessed 3/22/2023.

(2) Vietnamese people in Poland - Wikipedia. https://en.wikipedia.org/wiki/Vietnamese_people_in_Poland Accessed 3/22/2023.

(3) How many Vietnamese live in Poland? - 2022. https://wisoky.jodymaroni.com/asia/how-many-vietnamese-live-in-poland/ Accessed 3/22/2023.

(4) Overseas Vietnamese - Wikipedia. https://en.wikipedia.org/wiki/Overseas_Vietnamese Accessed 3/22/2023.


Question 4: A Windows question:

I just wanted to see what it comes up with.

I have over 100 folders each of which has a single image file. What is the most effective way to retrieve all the images and save them to a single folder?

One way to do this is to make a batch file, which searches recursively for a specific file type, and copy all instances of it to a folder of your choice. This script should do the job for one partition at a time: 


```for /R "C:\" %%G in (*.png *.jpg *.jpeg *.gif) do copy "%%G" "E:allPictures" pause```


Another way is to use Windows (File) Explorer. You can search for a specific file type and copy all instances of it to a folder of your choice. Here's how to do it:


1. Open File Explorer and navigate to the location you want to search.

2. In the search box, type `*.<file extension>` (e.g., `*.jpg`) and press Enter.

3. Once the files are visible, press Ctrl-A to select all of them.

4. Drag and drop them to the right location.

This should work admirably!

If you want to look in multiple adjacent folders, you can use Python. Here's an example script that reads multiple images from multiple folders:


```

root_folder = '[whatever]/data/train'

folders = [os.path.join(root_folder, x) for x in ('Type_1', 'Type_2', 'Type_3')]

all_images = [img for folder in folders for img in load_images_from_folder(folder)]

```


I hope this helps!


Source: Conversation with Bing, 3/22/2023(1) I want to copy all images on my computer to a single folder. https://superuser.com/questions/813865/i-want-to-copy-all-images-on-my-computer-to-a-single-folder Accessed 3/22/2023.

(2) Gather similar files from multiple folders and copy them in ... - PCWorld. https://www.pcworld.com/article/444210/gather-similar-files-from-multiple-folders-and-copy-them-in-one-simple-step.html Accessed 3/22/2023.

(3) I want to copy all images on my computer to a single folder. https://superuser.com/questions/813865/i-want-to-copy-all-images-on-my-computer-to-a-single-folder Accessed 3/22/2023.

(4) Easiest way to extract the contents of many folders at once?. https://superuser.com/questions/523816/easiest-way-to-extract-the-contents-of-many-folders-at-once Accessed 3/22/2023.

(5) Python Read multiple images from multiple folders. https://stackoverflow.com/questions/44002577/python-read-multiple-images-from-multiple-folders Accessed 3/22/2023.

(6) How to Find All the Photos Stored on Your Windows 10 PC. https://www.howtogeek.com/393290/how-to-find-all-photos-stored-on-your-windows-10-pc/ Accessed 3/22/2023.


Question 5: How soon will hydrogen overtake gasoline in the industrial and transport sectors?


It is difficult to predict when hydrogen will overtake gasoline in the industrial and transport sectors. However, hydrogen has the potential to significantly reduce air pollution in the form of greenhouse gases from trucks, buses, planes, and ships⁵. The transport industry should prepare for a hydrogen-powered future². 

Hydrogen demand in the transportation and industry sectors is expected to grow, especially from 2025 onward, when more vehicles become available². By 2030, when projects are expected to be transitioning from the pilot stage to commercialization, the most attractive carriers are ammonia and LOHC with a transport cost (excluding hydrogen production) of $2.5-4.5/kg of hydrogen (for 10,000 km)³. 

Supplying hydrogen to industrial users is now a major business around the world. Demand for hydrogen, which has grown more than threefold since 1975, continues to rise – almost entirely supplied by fossil fuels, with 6% of global natural gas and 2% of global coal going to hydrogen production⁴. 


I hope this helps!


Source: Conversation with Bing, 3/22/2023(1) Hydrogen’s Role in Transportation | Department of Energy. https://www.energy.gov/eere/vehicles/articles/hydrogens-role-transportation Accessed 3/22/2023.

(2) Unlocking hydrogen’s power for long-haul freight transport. https://www.mckinsey.com/capabilities/operations/our-insights/global-infrastructure-initiative/voices/unlocking-hydrogens-power-for-long-haul-freight-transport Accessed 3/22/2023.

(3) Hydrogen costs hang on solving transportation - Reuters Events. https://www.reutersevents.com/renewables/renewables/hydrogen-costs-hang-solving-transportation Accessed 3/22/2023.

(4) The Future of Hydrogen – Analysis - IEA. https://www.iea.org/reports/the-future-of-hydrogen Accessed 3/22/2023.

(5) Hydrogen Could Become A $130 Billion U.S. Industry By 2050 ... - Forbes. https://www.forbes.com/sites/energyinnovation/2019/10/07/how-hydrogen-could-become-a-130-billion-us-industry-and-cut-emissions-by-2050/ Accessed 3/22/2023.

(6) Fact Sheet: Biden-Harris Administration Advances Cleaner Industrial .... https://www.whitehouse.gov/briefing-room/statements-releases/2022/02/15/fact-sheet-biden-harris-administration-advances-cleaner-industrial-sector-to-reduce-emissions-and-reinvigorate-american-manufacturing/ Accessed 3/22/2023.


Next was a general question.


Question 6:

Is India a success story?

India is a land of diversity, with people from different religions, states, and cultures. India has been an unprecedented story of success but challenges remain⁵. India is a story of democracy that has beaten all odds, yet it is also a story of unfulfilled potential⁵. There is no dearth of Indian success stories that are keeping up-and-coming entrepreneurs motivated⁴. 

I hope this helps!

Source: Conversation with Bing, 3/22/2023(1) India has an unprecedented story of success, but challenges remain. https://www.hindustantimes.com/india-news/india-an-unprecedented-story-of-success-but-challenges-remain/story-yKSQrsgKd3ivixEJJjLMvM.html Accessed 3/22/2023.

(2) Indian Success Stories | Read The Inspiring Stories | Global Indian. https://www.globalindian.com/story/indian-success-stories/ Accessed 3/22/2023.

(3) Success Story News | Latest News on Success Story - Times of India. https://timesofindia.indiatimes.com/topic/success-story/news Accessed 3/22/2023.

(4) Success Story News | Latest News on Success Story - Times of India. https://timesofindia.indiatimes.com/topic/success-story/news Accessed 3/22/2023.

(5) Top 10 Success Stories of Inspiring Indian Entrepreneurs [2023]. https://digitalscholar.in/indian-entrepreneurs-success-stories/ Accessed 3/22/2023.

(6) Digital India is a global success story. https://timesofindia.indiatimes.com/blogs/thedanispost/digital-india-is-a-global-success-story/ Accessed 3/22/2023.


Question 7:

Is India a success story looking at world news and not just Indian news sources?

India has been a success story in many ways, and it has been recognized globally. For example, Digital India is a global success story². India's democratic project is a success, and no other post-colonial democracy, with India's level of economic backwardness and social diversity, has sustained an almost uninterrupted democratic run⁹. However, India has its share of challenges, and unless it fixes its institutions, it will not become a developed nation in 25 years¹. 


I hope this helps!

Source: Conversation with Bing, 3/22/2023(1) Digital India is a global success story. https://timesofindia.indiatimes.com/blogs/thedanispost/digital-india-is-a-global-success-story/ Accessed 3/22/2023.

(2) India has an unprecedented story of success, but challenges remain. https://www.hindustantimes.com/india-news/india-an-unprecedented-story-of-success-but-challenges-remain/story-yKSQrsgKd3ivixEJJjLMvM.html Accessed 3/22/2023.

(3) Success Story News | Latest News on Success Story - Times of India. https://timesofindia.indiatimes.com/topic/success-story/news Accessed 3/22/2023.

(4) India is an unprecedented story of success, but challenges remain. https://www.hindustantimes.com/india-news/india-an-unprecedented-story-of-success-but-challenges-remain/story-yKSQrsgKd3ivixEJJjLMvM.html Accessed 3/22/2023.

(5) Under Modi, India’s Press Is Not So Free Anymore. https://www.nytimes.com/2020/04/02/world/asia/modi-india-press-media.html Accessed 3/22/2023.

(6) India’s global success should be celebrated and not criticized. https://timesofindia.indiatimes.com/entertainment/hindi/bollywood/news/rrr-the-elephants-whisperers-all-that-breathes-indias-global-success-should-be-celebrated-and-not-criticized/articleshow/98749022.cms Accessed 3/22/2023.

(7) PM Modi’s jibe at Rahul: Some can’t stomach India’s success, so attacking it. https://www.msn.com/en-in/news/other/pm-modi-s-jibe-at-rahul-some-can-t-stomach-india-s-success-so-attacking-it/ar-AA18NQ3g Accessed 3/22/2023.

(8) Tristar: A success story. https://www.khaleejtimes.com/kt-network/tristar-a-success-story Accessed 3/22/2023.

(9) success stories - The Times of India. https://timesofindia.indiatimes.com/topic/success-stories Accessed 3/22/2023.

(10) Is India the new success story of the coronavirus pandemic?. https://www.wionews.com/india-news/is-india-the-new-success-story-of-coronavirus-pandemic-363890 Accessed 3/22/2023.


Question 8:

What institutions need fixing for India to achieve guaranteed success?

India needs to fix its institutions to become a developed nation in 25 years¹. The banking system is one of the institutions that need fixing². The union government has revealed a fiscal strategy for growth that seems to comprise three elements: protectionism through tariff hikes, production-linked incentives, and capital expenditure to create infrastructure¹. India has created several democratic institutions, like the International Solar Alliance, Coalition for Disaster Resilient Infrastructure, NITI Aayog, NCLT, and GST council³. 


I hope this helps!


Source: Conversation with Bing, 3/22/2023(1) India’s Technological Knowhow and Growth Opportunities | Fixing Urban .... https://bing.com/search?q=What+institutions+needs+fixing+for+India+to+achieve+a+guaranteed+success%3f Accessed 3/22/2023.

(2) Here’s why fixing the banking system should be a top priority for India. https://www.brookings.edu/opinions/heres-why-fixing-the-banking-system-should-be-a-top-priority-for-india/ Accessed 3/22/2023.

(3) Success of India's democracy, institutions causing envy among some: PM .... https://www.indiatoday.in/india/story/success-of-indias-democracy-institutions-causing-envy-among-some-pm-modi-2348550-2023-03-18 Accessed 3/22/2023.


Question 9:

Why do you say the Indian banking system needs fixing since they suffered the least when two major banks failed in the USA and a major bank failed in Europe?


I apologize for the confusion. I did not mean to imply that the Indian banking system is not doing well. However, the Indian banking system has had far higher non-performing loan ratios than other Asian banking systems since the mid-2010s and Indian banks have had far lower levels of capital³. This has weighed on banks' ability to extend credit because non-performing loans have reduced banks' profitability and risk depleting already low capital buffers³. 


I hope this helps!


Source: Conversation with Bing, 3/22/2023(1) The Indian Banking System | Bulletin – December 2021 | RBA. https://www.rba.gov.au/publications/bulletin/2021/dec/the-indian-banking-system.html Accessed 3/22/2023.

(2) History of Banking In India - Evolution of Indian Banking System - BYJUS. https://byjus.com/bank-exam/history-banking-india/ Accessed 3/22/2023.

(3) Silicon Valley Bank collapse: Indian Banks are ‘not at risk’ from SVB .... https://www.zeebiz.com/personal-finance/banking/news-silicon-valley-bank-collapse-indian-banks-are-not-at-risk-from-svb-contagion-say-experts-here-s-why-226273 Accessed 3/22/2023.

(4) Silicon Valley Bank collapse: No major impact on Indian banking system .... https://economictimes.indiatimes.com/markets/stocks/news/silicon-valley-bank-collapse-no-major-impact-on-indian-banking-system-say-experts/articleshow/98584861.cms Accessed 3/22/2023.