Follow these steps to run the HackerNews AI
- Here's the repo with the HN AI app: https://github.com/phidatahq/ai-cookbook
- Here's the code that creates the HN Assistant: https://github.com/phidatahq/ai-cookbook/blob/main/hn_ai/assistant.py#L26
- Here's the code that loads the knowledge/vector db: https://github.com/phidatahq/ai-cookbook/blob/main/hn_ai/knowledge.py#L25
- Here are the tools the HN Assistant uses to interact with the HN API: https://github.com/phidatahq/ai-cookbook/blob/main/hn_ai/tools.py
- Here's the workflow that runs every 30 minutes to load top HN stories to the knowledge base: https://github.com/phidatahq/ai-cookbook/blob/main/.github/workflows/load-hn-knowledge-base.yml
Happy to answer any questions!