Notebook LM Manages Something Where chatGPT Utterly Fails. But, Watch Out - Output Ain't Entirely Clean. Google Is Nothing If Not Sneaky


Google has a brand, that's for sure. They try to get useful stuff to people as soon as possible. That being said, they're not known for quality the way Apple is. A lot of stuff still stinks, but we use it because it empowers us. Manure has its place.

Here, I have a file the configures my Cadence setup. I know (mostly) what setting (keyboard shortcut) is for what. But, can I put in comments (automatically of course, in the age of LLMs) that will enable someone else to search the file WITHOUT an LLM (using the simple search.pl perl script) and get useful information?

Here's the prompt that did it for me. But, like I said, you have to do a side by side comparison with Meld to make sure you're completely clean.

The PDF contains information on bindkeys. Other text files contain code in Cadence SKILL in which semicolon denotes start of a line-oriented comment.

We want to add comments to the lines in the bindkeys.txt file which are NOT 100% commens, and which contain "load(....)" or hiSetBindKey. For example, for the line

hiSetBindKey("Schematics" "Alt" "inc_wire_inst(1.25)")

from the source code, it can be inferred that it thickens wires, or increases bus numbers on instance names and net names. Also, ALT Btn4Down means the ScrollWheel is being rotated down. So, in this case, the line can be transformed as:

hiSetBindKey("Schematics" "Alt" "inc_wire_inst(1.25)") ; increase wire thickness or bus number for instance and net names with ALT Scroll Wheel Down

For a line such as

load("~/SKILL/CCS/CCSToggleSelectMode.il")

Where a functionName.il file is loaded, if a functionName procedure is found in the code, it can be analyzed to add short comment. In this case, the appropriate comment would be "CTRL-M toggles selection mode" By analyzing the code it was even determined what bindkey (keyboard shortcut was assigned to the function)

So, the transformed version:

load("~/SKILL/CCS/CCSToggleSelectMode.il") ; CTRL-M toggles selection mode

For reporting bindkeys (which need not be done the hiSetBindKey lines which explicitly mention the bindkey), use the format UPPERCASE for names of keys like CTRL and ALT and use hyphens as separators - for example: CTRL-ALT-N

Only modify a line by starting with a semicolon character.

for a hiSetBindKey line, you MUST NOT specify the bindkey in the comment because it is already clearly spelled out in the source code. We only want to add clarity as to the function by adding the comment.

Can you give me an updated bindkeys.txt? All lines must be retained

What didn't go 100% right? 

Did you really change this line

load("~/SKILL/CCS/zoom_kais.il")

to

load("~/SKILL/utils/zoom_kais.il")

?

Wow! How sneaky is that? How can an LLM even do that?

Then, it changed (only in one place. How??) awviClosePrintWindowMenuCB to awviClosePrintWindowCB

Wow! What is the scientific explanation for it? Curiosity is my greatest asset. Thank you Anne Lorimor.

And, it chopped off the last two lines, and won't even admit to doing so. Like it denies the other goof ups.

Other than that, some unnecessary whitespace in the input was removed - I mention it because these are the things that light up when you run me.

So, to sum up:

Prepping

for fil in utils/*.il ; do cat $fil >> utils_files.txt; done # because Notebook LM has a file limit

Then, once you get the output, to check it out:

perl -n -e 's/;[^"\047\n]+// unless /^\h*;/; print unless /^\h*;/' bindkeys.txt | perl -n -e 'print if /\S/;' > no_com_orig.txt

perl -n -e 's/\h*;[^"\047\n]+// unless /^\h*;/; print unless /^\h*;/' bk_nblm_orig.txt | perl -n -e 'print if /\S/;' > no_com_nblm.txt

And you can run meld on the "no comment" versions and hope to have something that passes QC :)

Comments

Popular posts from this blog

How You Can Solve Lumosity's Pet Detective Puzzle with chatGPT and OpenCV Without Writing a Single Line of Code

Modern Magic - How Do They Do It?

Why Does chatGPT Fail Utterly with this One?