4 ms·
Show HN: Hacker News AI built using function calling
Hi HN, I built an AI that can interact with the Hacker News API and answer questions about hackernews stories, whats trending, what on show etc..
Check it out here: https://hn.aidev.run
You can ask questions like:
- What's on hackernews about AI?
- What's on hackernews about iPhone?
- What's trending on hackernews?
- What are users showing on hackernews?
- What are users asking on hackernews?
- Summarize this story: https://news.ycombinator.com/item?id=39156778
- Tell me about the user pg
It uses function calling to query the HN api.
To answer questions about a particular topic, it’ll search its knowledge base (a vector db that is periodically updated with the “top stories”) and get details about those stories from the API.
This is pretty barebones and I built it today in < 2 hours, so it probably won’t meet your high standards. If you give it a try, I’d love your feedback on how I can improve it.
If you’re interested, I built this using phidata: https://github.com/phidatahq/phidata
Link to the HackerNews AI App: https://hn.aidev.run
Thanks for reading and would love to hear what you think.
- bediashpreet 3y agoI received feedback that the AI should be able to tell the user about their account/top posts, so I've added that functionality If you ask, "tell me about the user pg" or click on the "what are my top posts" button it will fetch user details from the hackernews API
- bediashpreet 3y agoAlso added ability to search the web as people wanted to ask questions that had basic context on the web and then use that context to search HN
- bediashpreet 3y agoImplemented another item from feedback, ability to summarize a user profile. Add your username to the `Ask about a user` input and the AI should summarize your hackernews profile