From 30582309c2d26c36c9b735ebb737449b42413cfa Mon Sep 17 00:00:00 2001 From: ShubhamSaboo Date: Thu, 28 Nov 2024 14:23:35 -0600 Subject: [PATCH] chore: udpated the demo --- .../ai_business_insider_agent/README.md | 41 ------------------ .../ai_startup_trend_analysis_agent/README.md | 42 +++++++++++++++++++ .../requirements.txt | 0 .../startup_trends_agent.py} | 12 +++--- 4 files changed, 48 insertions(+), 47 deletions(-) delete mode 100644 ai_agent_tutorials/ai_business_insider_agent/README.md create mode 100644 ai_agent_tutorials/ai_startup_trend_analysis_agent/README.md rename ai_agent_tutorials/{ai_business_insider_agent => ai_startup_trend_analysis_agent}/requirements.txt (100%) rename ai_agent_tutorials/{ai_business_insider_agent/business_insider_agent.py => ai_startup_trend_analysis_agent/startup_trends_agent.py} (89%) diff --git a/ai_agent_tutorials/ai_business_insider_agent/README.md b/ai_agent_tutorials/ai_business_insider_agent/README.md deleted file mode 100644 index cc8ca8e..0000000 --- a/ai_agent_tutorials/ai_business_insider_agent/README.md +++ /dev/null @@ -1,41 +0,0 @@ -## 📈 AI Business Insider Agent -The AI Business Insider is a user-friendly news summarization and analysis tool built using the Phidata framework. It leverages built-in tools like Newspaper4k and DuckDuckGo to efficiently retrieve and read articles, creating a detailed report of the emerging trends in that particular sector/industry and also gives potential business opportunities. The application utilizes Anthropic Claude's LLM for advanced language processing, enabling users to gain insights and identify potential business opportunities based on current trends. - -### Features -- **User Prompt**: Users can input a topic of interest for research. -- **News Collection**: The system gathers recent news articles using DuckDuckGo based on the provided topic. -- **Summary Generation**: Concise summaries of verified information are generated using Newspaper4k. -- **Trend Analysis**: The system identifies trends and patterns across the analyzed news stories, providing deeper insights for users' potential business ideas. -- **Streamlit UI**: The application features a user-friendly interface built with Streamlit for easy interaction. - -### How to Get Started -1. **Clone the repository**: - ```bash - git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git - cd ai_agent_tutorials/ai_business_insider_agent - ``` - -2. **Create and activate a virtual environment**: - ```bash - # For macOS/Linux - python -m venv venv - source venv/bin/activate - - # For Windows - python -m venv venv - .\venv\Scripts\activate - ``` - -3. **Install the required packages**: - ```bash - pip install -r requirements.txt - ``` - -4. **Run the application**: - ```bash - streamlit run business_insider_agent.py - ``` -### Important Note -- The system specifically uses Claude's API for advanced language processing. You can obtain your Anthropic API key from [Anthropic's website](https://www.anthropic.com/api). - - diff --git a/ai_agent_tutorials/ai_startup_trend_analysis_agent/README.md b/ai_agent_tutorials/ai_startup_trend_analysis_agent/README.md new file mode 100644 index 0000000..378c411 --- /dev/null +++ b/ai_agent_tutorials/ai_startup_trend_analysis_agent/README.md @@ -0,0 +1,42 @@ +## 📈 AI Startup Trend Analysis Agent +The AI Startup Trend Analysis Agent is tool for budding entrepreneurs that generates actionable insights by identifying nascent trends, potential market gaps, and growth opportunities in specific sectors. Entrepreneurs can use these data-driven insights to validate ideas, spot market opportunities, and make informed decisions about their startup ventures. It combines Newspaper4k and DuckDuckGo to scan and analyze startup-focused articles and market data. Using Claude 3.5 Sonnet, it processes this information to extract emerging patterns and enable entrepreneurs to identify promising startup opportunities. + + +### Features +- **User Prompt**: Entrepreneurs can input specific startup sectors or technologies of interest for research. +- **News Collection**: This agent gathers recent startup news, funding rounds, and market analyses using DuckDuckGo. +- **Summary Generation**: Concise summaries of verified information are generated using Newspaper4k. +- **Trend Analysis**: The system identifies emerging patterns in startup funding, technology adoption, and market opportunities across analyzed stories. +- **Streamlit UI**: The application features a user-friendly interface built with Streamlit for easy interaction. + +### How to Get Started +1. **Clone the repository**: + ```bash + git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git + cd ai_agent_tutorials/ai_business_insider_agent + ``` + +2. **Create and activate a virtual environment**: + ```bash + # For macOS/Linux + python -m venv venv + source venv/bin/activate + + # For Windows + python -m venv venv + .\venv\Scripts\activate + ``` + +3. **Install the required packages**: + ```bash + pip install -r requirements.txt + ``` + +4. **Run the application**: + ```bash + streamlit run business_insider_agent.py + ``` +### Important Note +- The system specifically uses Claude's API for advanced language processing. You can obtain your Anthropic API key from [Anthropic's website](https://www.anthropic.com/api). + + diff --git a/ai_agent_tutorials/ai_business_insider_agent/requirements.txt b/ai_agent_tutorials/ai_startup_trend_analysis_agent/requirements.txt similarity index 100% rename from ai_agent_tutorials/ai_business_insider_agent/requirements.txt rename to ai_agent_tutorials/ai_startup_trend_analysis_agent/requirements.txt diff --git a/ai_agent_tutorials/ai_business_insider_agent/business_insider_agent.py b/ai_agent_tutorials/ai_startup_trend_analysis_agent/startup_trends_agent.py similarity index 89% rename from ai_agent_tutorials/ai_business_insider_agent/business_insider_agent.py rename to ai_agent_tutorials/ai_startup_trend_analysis_agent/startup_trends_agent.py index 7fc0a15..6c46cf7 100644 --- a/ai_agent_tutorials/ai_business_insider_agent/business_insider_agent.py +++ b/ai_agent_tutorials/ai_startup_trend_analysis_agent/startup_trends_agent.py @@ -9,10 +9,10 @@ import logging logging.basicConfig(level=logging.DEBUG) # Setting up Streamlit app -st.title("AI Business Insider Agent 🌐") -st.caption("Get the latest trend analysis and business opportunities based on your topic of interest in a click!.") +st.title("AI Startup Trend Analysis Agent 📈") +st.caption("Get the latest trend analysis and startup opportunities based on your topic of interest in a click!.") -topic = st.text_input("Enter the topic for research:") +topic = st.text_input("Enter the area of interest for your Startup:") anthropic_api_key = st.sidebar.text_input("Enter Anthropic API Key", type="password") if st.button("Generate Analysis"): @@ -53,7 +53,7 @@ if st.button("Generate Analysis"): name="Trend Analyzer", role="Analyzes trends from summaries", model=anthropic_model, - instructions=["Identify emerging trends and business opportunities"], + instructions=["Identify emerging trends and startup opportunities"], show_tool_calls=True, markdown=True, ) @@ -67,7 +67,7 @@ if st.button("Generate Analysis"): "Important: you must ensure that the summary writer receives all the article links to read.", "Next, the summary writer will read the articles and prepare concise summaries of each.", "After summarizing, the summaries will be passed to the trend analyzer.", - "Finally, the trend analyzer will identify emerging trends and potential business opportunities based on the summaries provided in a detailed Report form so that any young entreprenur can get insane value reading this easily" + "Finally, the trend analyzer will identify emerging trends and potential startup opportunities based on the summaries provided in a detailed Report form so that any young entreprenur can get insane value reading this easily" ], show_tool_calls=True, markdown=True, @@ -90,7 +90,7 @@ if st.button("Generate Analysis"): # st.subheader("News Summaries") # # st.write(summaries) - st.subheader("Trend Analysis and Potential Business Opportunities") + st.subheader("Trend Analysis and Potential Startup Opportunities") st.write(analysis) except Exception as e: