AI & CLI Assignment #1
Replies: 15 comments
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
My starting prompt was: Give me step by step instructions to perform the following in Terminal: I want to create a directory called "Welcome to my maze" that has 3 directories nested inside named the following: "Never ending corridor," "Cul-de-sac" and "Light at end of tunnel." Nested inside the directory called "Cul-de-sac" I want to create a text file called "you're lost." Nested inside the directory called "Light at end of tunnel" I want to create a text file called "You've made it to the center of the maze!" Comparison of AI platforms: I ran my prompt through the "Falcon" and "Mini Orca" models in GPT4All and through ChatGPT 3.5. ChatGPT is by far the fastest (followed by Mini Orca, Falcon is the slowest). I also found the response from ChatGPT was much more coherent, and when I followed up with other prompts it was way better at incorporating the previous information in the chat into its subsequent responses. The Falcon model in GPT4All is not as accurate. It kept on telling me to type "ruby" in advance of every command. It also produces some typos. For example- even though my prompt spelled "Cul-de-sac" with one "u," it kept on spelling it "Cuul-del-sac." The Mini Orca model's responses were not as detailed, and provided a more general description of the commands rather than step by step instructions. Process: The response I got from my initial prompt in ChatGPT. I was very effective and I was smooth sailing until I tried to create the "You've made it to the center of the maze!" text file. The symbols in the file name were causing confusion in my command so that the command was staying open and I was no longer working in a particular directory. I was stuck with it saying "quote" in terminal. By asking the following prompts in ChatGPT I was able to finish my maze:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I started this assignment by familiarizing myself with both chat AIs (I used ChatGPT and AskCodi) and the way they work and respond, as well as an introduction to command lines, since both of those things were unfamiliar to me. I started with Chat GPT, and will go through my process with that tool first! ChatGPT I also asked it to explain what iTerm was and what the basic commands I could use were! Then I came up with the following prompt for my maze: Honestly, the instructions were pretty easy to follow from there! Here are some screenshots from my maze: At one point, I got a bit stuck because the terminal kept displaying "dquote>" which I didn't understand and didn't know how to remove. I asked ChatGPT: I was really frustrated last night when I was just trying to understand how to use iTerm 2, which was why I pivoted when I started the assignment tonight and first asked it to explain to me how to do command lines. I found that ChatGPT gave pretty clear instructions but didn't really explain why it was doing what it was doing or explain if it was using a shortcut or what different symbols meant. I think in terms of learning, I missed out on some coding language explanations that would probably help me with coding in the future! AskCodi I asked AskCodi the same prompt: AskCodi also gave simple and effective instructions. One thing I liked was that AskCodi gave a few explanations or other ways to do things such as: Create a text file named "maze.txt" with the desired content using a text editor such as nano, vi, or echo. For example, using nano, you can run the following command... |
Beta Was this translation helpful? Give feedback.
-
I am using GPT4All Model GPT4All Falcon.Q: How do I create a directory in a command line? Q: How do I list all of the files in a directory in a command line? Q: How do I create a file with contents in the command line? Q: How to read a file in the command line? Q: How to edit a file in the command line? Now asking the same questions to ChatGPTFree.AI.Q: How do I create a directory in a command line? Q: How do I list all of the files in a directory in a command line? Q: How do I create a file with contents in the command line?
Remember to adjust the file name and content according to your needs. Q: How to read a file in the command line?
Q: How to edit a file in the command line?
Please note that the specific commands and key combinations may vary depending on the text editor you are using. If you are using a different text editor like vim or emacs, the process may be slightly different. MazeI made the maze in my file system based on the first model's suggestions for commands. ComparisonI feel like the local one provided very short answers and limited information in response to the questions. I could also tell that my computer was struggling to run the model (which was also a very large download at ~4GB). The second one provided a lot more context to the answers with examples. I thought that it was especially interesting that they both gave examples using nano instead of vi or vim for a CLI text editor, and that the second model also provided information on how to exit the text editor. They also provided incorrect information and in weird ways. The first chat bot suggested the touch command to create a file with contexts, but it just creates files and don't let you provide anything to put inside of them. And the second model said that the command "more" worked the same way as "less" (which I did not even know less was a command), and I find this to be a funny linguistic mix-up. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Unfortunately I could not get GPT4All to work on my personal computer, so I could only query the ChatGPT web client about command line functions. While the instructions seemed straightforward enough, when I would input the suggested commands on my own terminal, I was either getting error messages or not seeing the files in the domain where (I thought) I was directing them. After this initial difficulty, I switched over to Dawson's Introduction to the Windows Command Line with PowerShell, which immediately cleared up the confusion. His instructions provided two key bits of information that I (and ChatGPT) had somehow overlooked: 1) the "current location" is what is indicated on the command prompt line, and more importantly, 2) the parent directory is C:\Users\YOURUSERNAME. After these preliminaries were out of the way, I was able to go about the creation of my maze with relative ease. Attached below is a schematic I sketched before creating the actual directories and files, with screenshots from various command line attempts and the file maze itself. |
Beta Was this translation helpful? Give feedback.
-
|
AI & CLI Assignment #1 This assignment did not go well for me, and it has been a very frustrating experience trying to download what is needed to be able to do this assignment. I have been having trouble downloading GPT4All. Once I downloaded the client, I had trouble downloading the models. I didn't have many models to choose from. A great majority of the models didn't work with my PC specifications. It took over 2 hours to load the GPT4All Falcon model finally. It errored multiple times before downloading without any issues and seemingly worked properly. I could use the GPT4All Falcon model once it was successfully downloaded, but I found that ChatGPT 3.5 worked so much better than GPT4All. While experimenting with GPT4All just to work on learning commands to create a directory, create a file, and create nested directories, I got extremely frustrated with the responses provided by the AI. The AI kept giving me a response without enough instructions or explanation to understand how to create a directory. I altered my question prompts, and I altered the phrasing of my prompts, and I kept getting the same response without any variation. I didn't even explore how to create a file, create nested directories, or work on the assignment. I switched to GPTChat, which worked so much better for me. I could better understand the results from my prompts and successfully complete the tasks in CPTChat. Once I understood what I was doing better, I returned to GPT4All and worked through the assignment tasks in GPT4All. In my best attempt to follow the assignment instructions, I am posting my final prompt for the AI applications. But my route to accomplishing the tasks for the assignment didn’t bring me straight to this prompt. I found that breaking out each command task into separate AI prompts was necessary. I accomplished the tasks in the assignment by performing each task individually in both a prompt for the AI and in Terminal. AI Prompt: Full prompt that didn’t work in GPT4All Results in GPT4All: The results from ChatGPT 3.5 from the full prompt were much better for me: To create three nested directories with the names "nothing," "lost," and "success" and then create a text file with the text "You're Lost!" in it, and finally, read the text from the file, you can follow these step-by-step instructions using the Terminal (assuming you are using a Unix-like operating system like Linux or macOS):
What worked best for me was taking each task individually and working through the process step-by-step. I created a directory named IS578 and learned how to change directories with the command cd. I also remembered that to go backward in a full path directory, to use the command cd... I then created 3 nested directories and named them ‘nothing,’ ‘lost,’ and ‘success.’ I then proceeded to create 2 text files with text in 2 separate directories. I found that doing these tasks individually worked better and helped me understand what was happening in the AI applications and in Terminal command display. Here are the prompts and results in GPT4All: A) Give me step-by-step instructions on how to create a series of nested directories. B) Give me step by step instructions on how to create a text file with text in it. C) How do I create a text file with the text ‘You’re Lost!’ in Terminal? D) How do I read a file in Terminal? I still found that GPT4All responses did not solve all of the command issues. Some of the results did not work properly. I still needed ChatGPT4 to provide me with the best results to accomplish all the assignment tasks. Here are the results of the maze I was eventually able to create: As I have already noted, I thought ChatGPT 3.5 was much better at helping with this assignment than GPT4All. I probably would not recommend to anyone to even use GPT4All. Other than providing useful and accurate results, ChatGPT 3.5 has the great feature of copying the command. While I preferred to type my commands, the copy feature does make this AI more useful. GPT4All did not provide accurate results that told me what I needed to know or understand. I don’t think I could have completed this assignment if I only had GPT4All to utilize. GUI images of maze results: Success Directory: You can see nested directories by looking at the full path at the top of the window. |
Beta Was this translation helpful? Give feedback.
-
AI & CLI Assignment #1IS578 Intro to DHOcean V. Arboniés-FloresI was fortunate enough to not have any issues with this assignment. The only setback I faced was my computer's incompatibility with GPT4all due to lack of memory space. For this reason, I decided to use ChatGPT as my starting AI coding tool. My initial prompt: Using the Windows terminal create a root directory called "Maze Game" that has three nested directories within. The first one should be called "First Path". The second one should be called "Second Path" and should have a have with the text "You're lost" on it. The third one should be called "Third Path" and must contain a file with the text “You’ve made it to the center of the maze!” ChatGPT's response to this prompt was correct and led me to accomplish the assignment without any issue at all. The same happened when I gave AskCodi the same prompt. Comparison of AI coding tools: As I mentioned, both tools provided me with step-by-step instructions for the creation of my nested directory. They both led me to it successfully. However, in reading and comparing both responses I noticed that ChatGPT's response provided broad but direct directions, it had embedded in it other directions that one should already know given the nature of the prompt. AskCodi made apparent the small or assumed steps for a person to complete the task. It also broke down the components in numeric form. These observations of AskCodi make me perceive it as the more human centered designed of the two AI tools used. ChatGPT Response: Create the root directory "Maze Game" Navigate into the "Maze Game" directory Create the first nested directory "First Path" Create the second nested directory "Second Path" Create a text file with the text "You're lost" inside "Second Path" Create the third nested directory "Third Path" Create a text file with the text "You’ve made it to the center of the maze!" inside "Third Path" AskCodi Response: To create the root directory "Maze Game" with the three nested directories on the Windows terminal, you can follow these steps:
After running these commands, you will have the "Maze Game" root directory with the three nested directories and the respective files inside them. Screenshot of maze: Screenshot of Terminal: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I used the online Chat GPT 3.5 as that is the one that my computer didn't hate
I then tried to go to Directory D add the the "Your lost text" at first I had some trouble because I didn't realize I couldn't just navigate that Directory D without going though the Directories first so it took a minute to do that One I figured that out I followed GPT instruction to add a text file Final thoughts: Overall I found that chat GPT have me very simple and easy to follow instructions. The only thing that it didn't cover was how to navigate though the nested directories but that wasn't to difficult to work out and I probable could have asked chat GPT but I pretty quickly figured it out myself. By Abigail Barrett |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I started by using ChatGPT 3.5 (online version), and I think it spoiled me a bit. Whereas ChatGPT would provide screenshot snippets to enhance the explanations (with the 'bash' examples using colors to help differentiate commands), the GPT4All options I tried either didn't do that (Mistral OpenOrca) or didn't do it quite as well (GPT4All Falcon) [screenshots in that order]: Here is a .txt file of my final PowerShell script for creating the directories: I did include the prompts I entered when I, in attempting to add text to the files, typed "-Path" instead of "-FilePath". Fortunately, I was able to figure out the specific user error. I did some practicing and deleting of folders, but I finally came up with the desired product: |
Beta Was this translation helpful? Give feedback.













































































































Uh oh!
There was an error while loading. Please reload this page.
-
Post the results of your assignment here and share any problems or tricks you learned.
Beta Was this translation helpful? Give feedback.
All reactions