How to use ChatGPT to troubleshoot your windows based PC? #DIY

How to use ChatGPT to troubleshoot your windows based PC? #DIY

Ah, welcome to another delightful day in the wacky world of ChatGPT! But before we dive into the depths of hilarity, here's a little heads-up: using OpenAI's APIs can come with a price tag. Yep, they're not handing out the goodies for free. So, consider this a gentle reminder to approach with caution and moderation, like a responsible grown-up.


Now, brace yourself for a mind-blowing revelation! Picture this: deep within the mystical realm of your PC lies a secret database holding the very essence of its existence. Behold, the mighty Events Journal! It's the keeper of all the juicy details about what goes down on your computer—hardware failures, app installations, security shenanigans, and even system meltdowns. It's like a little black box for your digital adventures. And guess what? Microsoft's got you covered with a nifty program called the event viewer, where you can peek into this magical journal. So, prepare to unlock the mysteries of your PC's life, one hilarious event at a time!

No alt text provided for this image


Welcome to the geeky world of the event viewer! It's a top-secret application that most people have no clue exists, but sysadmins absolutely adore it for troubleshooting on Windows PCs. To truly grasp the marvels I'm describing, go check it out yourself. Prepare for a mind-blowing experience as you uncover the hidden tales of your computer's life. Trust me, it's worth the adventure!

Chatgpt and the windows PC

Now, my non-tech-savvy friend, let's address the question at hand: the event viewer and its relevance to ChatGPT. You might wonder why it's worth your attention.


Well, imagine this scenario: your computer suddenly goes haywire with hardware or app failures. Typically, you'd reach out for help from family, friends, or support hotlines. But what if, armed with an AI Assistant like ChatGPT, you could play detective and understand the issue yourself? It could save you time and frustration. Intrigued?


If you're not sold on the idea, no worries! Feel free to stop reading. *Insert playful joke here.* But for those intrigued, my approach goes beyond geeky sysadmin stuff. It's about empowering you, dear reader, to unravel the mysteries of your computer. So, let's embark on this journey together and dive into the world of tech enlightenment. Stay focused, for exciting discoveries lie ahead!

1. First step : Install python on your PC.

Python is a popular programming language that is used for various purposes, including web development, data analysis, artificial intelligence, and automation. It has a simple and readable syntax, making it beginner-friendly.

To install Python on your computer, you can follow these simple steps:

  1. Visit the official Python website at python.org.
  2. Recommended version as of today(05/24/2023) : Download Python Windows64
  3. Or Go to the "Downloads" section. You'll see different versions of Python available for download. Choose the version that suits your needs. If you're just starting out, it's recommended to download the latest stable version.
  4. Click on the download link for your operating system. Python supports Windows, macOS, and Linux.
  5. Once the download is complete, open the installer.
  6. Follow the installation wizard's instructions. You can typically leave most of the settings as default unless you have specific requirements.
  7. During the installation, you may come across an option to add Python to your system's PATH. Enabling this option allows you to run Python from any location in the command prompt or terminal.
  8. Complete the installation process by clicking on "Finish" or "Close."

After installing Python, you can open a command prompt (Windows) or terminal (macOS/Linux) and type python. If Python is properly installed and added to the PATH, you should see the Python version and a prompt indicating that the Python interpreter is ready to accept commands.

Congratulations! You now have Python installed on your computer.

2. Create an OpenAI Api key

Creating an OpenAI API key allows you to access and use the powerful features provided by OpenAI's language models, like ChatGPT. Here's how you can create an API key:

1. Go to the OpenAI website (openai.com) and sign in or create an account if you don't have one already.

2. Once you're signed in, navigate to the API section of the website.

3. Look for the option to create a new API key. It might be called something like "Create API Key" or "Generate API Key."

4. Click on that option, and you will be prompted to provide some information.

5. Fill in the required details, such as the name for your API key and any other relevant information they ask for.

6. Once you've entered the necessary information, click on the button to generate or create the API key.

7. After a moment, your API key will be generated, and you should see it displayed on the screen. It will usually be a long string of characters.

8. It's important to keep your API key secure and treat it like a password. Anyone with access to your API key can make use of your OpenAI resources and potentially incur costs.

Congratulations! You have successfully created an OpenAI API key. You can now use this key to make requests to OpenAI's language models, such as ChatGPT, by including the key in your API calls. Make sure to follow any documentation or guidelines provided by OpenAI on how to use the API key effectively in your programming projects.


3. Download the following project on github :

Pdf-Analyze

Unzip the file in a folder like this (change the path to yours!) : D:\dev\pdf-analyze-streamlit

Open a command prompt (cmd.exe) and go into that folder cd yourfolder

Type in this order, the following commands.

python -m venv venv
source venv/bin/activate?
pip install -r requirements.txt
streamlit run qa_app.py

The last line will open a web browser (running locally on your machine).

No alt text provided for this image

5. Input your OpenAI api key

6. Open the Event Viewer

To open the Event Viewer in Windows, you can follow these steps:

  1. Press the Windows key on your keyboard or click on the Start button located at the bottom left corner of the screen.
  2. Type "Event Viewer" in the search bar or the "Type here to search" field.
  3. From the search results, click on the "Event Viewer" app or "Event Viewer" (Desktop app) to launch it.

No alt text provided for this image


Export for examples:

  1. Applications, save it as applications.txt
  2. System, save it as system.txt

Return to the browser window and click, upload and select the file applications.txt

Now let's have the fun!

See in the browser ? These are questions the application generated itself as examples...

No alt text provided for this image


What is the last application which failed on startup? What is the latest installed app*

upload and select the file system.txt

What the last hardware which failed on startup?,What is the hardware which the most often? your own questions...*

See?...

You can ask in a natural language these questions to your computer and get some non technical answers!*

* The questions and the answers could be very different from one user to another... That's how LLM work... NO RECLAMATION! But comments are welcomed!!

For PC troubleshooting, this is a great advantage!

This is a simple example of how to you can use AI for your personal gain...

Think about all the stuff you can use to feed the beast ;-)

BE CAREFUL DON'T USE PERSONAL DATA OR SENSITIVE MATERIAL!!

AND, THERE IS A HUGE COST!!!

The API are not free and the bigger are the files the more you'll pay!

So you use this technique wisely!

I'm studying other approaches to make it free like using GPT4ALL or other open source and free alternatives.

As of today, the results are not very compelling... Speed/accuracy etc...


But, I'm on it ;-)

If you're doing the same kind of research please let me know, we could share some tips... ;-)

Emmanuel KEITA

?? Being just Human in a woLRd of machines ! ★★ Senior xAI Data Scientist ? Human Potential's Optimization Instructor (TOP 2024) ★★ Consultancy+Training + Talks+Author ▲▲ Expert for France Numérique 2030 ▲ IHEDN

1 年

good article !

Asmaa Hidki. MD

Seeking New International Position: international Organisations, International Centres in Ehealth- Global Health Informatics- international Management. CMEO@SSVAR IS.

1 年

Interesting

Loucas Lalos

SUPPLY CHAIN AND LOGISTICS EXPERT Self -Employed

1 年

Wouah that's very clever. Thanks for sharing

Rupinder Dhillon

Generating 3-5 new clients monthly for IT and consulting professionals through expertly managed LinkedIn content marketing and social selling | Skyrocketing brand visibility | Stop cold calling & Paid ads ?? ??

1 年

It's a wonderful fusion of technology and magic, and I appreciate the emphasis on responsible AI usage and sharing research tips, Mohamed.

回复

要查看或添加评论,请登录

Mohamed Jean-Philippe Sangaré的更多文章

社区洞察

其他会员也浏览了