News for hackers. Stuff that matters.
Re:Show HN: Create mind maps to learn new things using AI by airstrike on Sunday October 20, 2024 @04:38PM (#41898270)
I'd say the README should have a pic of the results otherwise I have to install it and run it to see if I want to install it and run it

Also why not host it online and let users bring their own keys?

Re:Show HN: Create mind maps to learn new things using AI by arthurtakeda on Sunday October 20, 2024 @04:57PM (#41898396)
just updated the readme with the video: https://www.youtube.com/watch?v=Y-9He-tG3aM

I considered that but if I were the user I'd be wary of adding my own keys to a random person's website haha, but now that you mentioned that, since the code it's open-source I guess it's fine, thanks for the feedback!

Re:Show HN: Create mind maps to learn new things using AI by airstrike on Sunday October 20, 2024 @05:39PM (#41898702)
Thanks for that! You can use something like gifski to turn that video into a gif so that you can embed it into the README. Here's an example from the gifski repo: https://github.com/ImageOptim/gifski

You can use the CLI version but they also have executables with a dead simple GUI if you're so inclined. I have only ever used the GUI and it's perfect on a Mac (just drag and drop your video into it). Not sure if it's the exact same on Windows but I imagine it's amazing there too

Re:Show HN: Create mind maps to learn new things using AI by arthurtakeda on Sunday October 20, 2024 @06:09PM (#41898899)
Nice! Will replace the screenshot with a gif, if that doesn’t work for me I guess ffmpeg may be able do that too, thanks!
Re:Show HN: Create mind maps to learn new things using AI by nosioptar on Sunday October 20, 2024 @08:55PM (#41899782)
Ffmpeg can output a gif. The only difficult part might be figuring out which options you need to get the quality you want.
Re:Show HN: Create mind maps to learn new things using AI by airstrike on Sunday October 20, 2024 @11:11PM (#41900363)
FYI your current demo is 25MB. Not sure if you used gifski but usually it's super helpful for making gifs smaller
Re:Show HN: Create mind maps to learn new things using AI by cj on Sunday October 20, 2024 @05:09PM (#41898490)
That’s cool! It would be great if you could easily expand each subtopic into further sub-subtopics.

Was there anything particularly interesting about how you built it or the prompts needed to get decent results?

Re:Show HN: Create mind maps to learn new things using AI by arthurtakeda on Sunday October 20, 2024 @05:18PM (#41898557)
I noticed that, at least with the models I tested (gpt 3.5, 4o and llama 3.1 8b), to get a response with just the JSON and then have it follow the exact structure so it correctly renders the topic and subtopics was the hardest part.

Ended up having to prompt I think twice (at the beginning and the end) so it finally followed the exact JSON structure.

Re:Show HN: Create mind maps to learn new things using AI by airstrike on Sunday October 20, 2024 @05:40PM (#41898714)
You can use structured outputs to tell ChatGPT-4o to create specific JSON matching a schema: https://platform.openai.com/docs/guides/structured-outputs/i...

It's a bit annoying because the schema has some limitations but it works with enough elbow grease

Re:Show HN: Create mind maps to learn new things using AI by arthurtakeda on Sunday October 20, 2024 @06:11PM (#41898911)
interesting, didn’t know about that feature, thanks for sharing!