Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: WikiTimeline – AI-powered tool to visualize and compare timelines (wiki-timeline.com)
22 points by StevenLee2024 2 days ago | hide | past | favorite | 8 comments
I built WikiTimeline because of my fascination with history and the desire to easily visualize and compare the lives of historical figures. The tool converts any Wikipedia article into an interactive timeline.

For example, I created a timeline of America's Founding Fathers and discovered some interesting patterns I hadn't noticed before:

Benjamin Franklin was significantly older than the other Founding Fathers. He was already 70 when the Declaration of Independence was signed, while Alexander Hamilton was only 21!

John Adams and Thomas Jefferson both died on July 4, 1826 – exactly 50 years after signing the Declaration of Independence. What are the odds?

The entire project was built by AI, timelines are generated by openAI, code are written by Cursor/Claude, although myself an developer, I didn't write a single line of code, sometimes I literally just prompted "make it prettier", then magic happens, a modern like UI appears! I think I had this idea in the past, but without AI, I probably won't really implement it. Try it out: https://wiki-timeline.com You can compare any Wikipedia pages. Just search and select multiple articles to create comparative timelines. Would love to hear your feedback and interesting historical patterns you discover!






I've been interested in the history of the propagation of Maxwell's equations lately. Tried this,

https://wiki-timeline.com/timeline/History_of_Maxwell%27s_eq...

seems to be a limitation of the article though rather than the tool. Maybe such a tool will encourage more filled-out temporal content in articles. :)


hmm just tried https://en.wikipedia.org/wiki/Timeline_of_Reddit

which is pretty structured. OP's tool proudes a fairly sparse result from that. By the way, why try to parse keywords and do a url lookup instead of accepting a wikipedia url natively?


Thanks, good suggestion on accepting wikipedia URL natively, I actually started with that, but when I shared it with my friend, he though it takes extra step to get the wikipedia URL which may be not that user friendly. Although I guess I should support both ways.

In terms the spare result, I am still experimenting with how granular the timeline should be. Although now I prompt AI to include as many events as possible, it's still a mystery to me how to precisely control it.


Thanks for trying it out! Yeah, since I prompt to only include events where a date is available, it cannot output many events if article does not have much temporal info. Although your try there revealed a hard issue that I try to fix, that AI somehow output negative year for AD date although I tried hard asking it only do that for BC/BCE. I thought I fixed the issue, but obviously not for all cases.

Very cool! What sort of prompt did you use to parse the text into a timeline?

Thanks! I actually planned to learn some prompt engineering best practice and kept iterating, but the performance kept getting worse and I reverted to the first version. I ended up using a pretty straightforward one just asking to find events with dates, using the precision available for example, if only year is available just using year, otherwise it will make something up like YYYY/1/1, output the event in JSON format with a headline and a more detailed description. My experience tells me a better model is much more important than the prompt engineering (but ofc the prompt needs to be basically right). For cost consideration, I was trying to use openai 4o-mini and the performance was bad no matter how hard I tried for better prompt, but when I switch to 4o, it works for even a basic prompt.

One issue it's struggling is that I want it to output a negative year if it's BC/BCE, it sometimes messes it up, either using positive year for BC/BCE or negative year even it's AD. I changed the prompt to include date in the detailed description because I found most of the time the date in the description is actually right, and ask it correct the date by referring what's in the description to be positive or negative. I feel this fixed the issue for the most time, but seems still happens for some case.

Overall, the challenge here is that I don't really have a benchmark to evaluate the quality of the timelines yet, I basically do a manual random sampling of timelines to check the quality myself. The future work (if I keep my current interest on this) would be building a benchmark which can auto evaluate the quality so that the iteration of prompt can happen and also might try different LLMs.


Very interesting idea and nice website !

Thanks for checking it out! Glad you found it interesting.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: