What it does
Weaves spooky Halloween tales by combining AI with real-world stories from the web
Tech Stack
Ruby - because I like it and it makes me happy
Gems
- HTTParty - to get search results from DuckDuckGo and to make requests to Claude API
- Nokogiri - to parse html and remove styling, and JS
- ruby-openai - to make requests to OpenAI
Challenges I ran into
I ran into some issues with using the APIs that at first weren't clear. OpenAI allows you to create an API key without entering billing info but it doesn't work unless you buy some credits.
Accomplishments that we're proud of
Happy with keeping the scope contained to a few hours of dev time, yet still able to learn and have fun trying new things.
What I learned
- The newer AI models are way better. I accidentally used an old OpenAI model 3.5 and it's results were terrible compared to the newer 4o one.
- Generative AI can do a pretty good job incorporating data into a narrative. It's probably not as good as an expert writer, but it's able to create an engaging story.
- Anthropic & OpenAI's models seem pretty close in results. They are different but I'm not sure one is much better than the other.
- Ruby is great for web related things and being the glue between things.
What's next for Nightmare Narrative AI
Create nightmares for all of humanity. No, not really. Maybe try some different models such as Gemini or local models using Ollama.
Built With
- anthropic
- openai
- ruby
Log in or sign up for Devpost to join the conversation.