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!
Was there anything particularly interesting about how you built it or the prompts needed to get decent results?